0

RedHat Red Hat Enterprise Linux Server 7.7 版 (Maipo)

尝试在我的 EC2 机器上安装最新的 netdata监控工具。

运行以下命令:

bash <(curl -Ss https://my-netdata.io/kickstart.sh)   --disable-telemetry

得到以下错误。

$ bash <(curl -Ss https://my-netdata.io/kickstart.sh)
System            : Linux
Operating System  : GNU/Linux
Machine           : x86_64
BASH major version:
 --- Fetching script to detect required packages... ---
[/tmp/netdata-kickstart-jvcHm3]$ curl -sSL --connect-timeout 10 --retry 3 https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/install-required-packages.sh  OK

 --- Running downloaded script to detect required packages... ---
[/tmp/netdata-kickstart-jvcHm3]$ sudo /usr/bin/bash /tmp/netdata-kickstart-jvcHm3/install-required-packages.sh netdata Loading /etc/os-release ...
/tmp/netdata-kickstart-jvcHm3/install-required-packages.sh: line 1050: validate_tree_rhel: command not found

/etc/os-release information:
NAME            : Red Hat Enterprise Linux Server
VERSION         : 7.7 (Maipo)
ID              : rhel
ID_LIKE         : fedora
VERSION_ID      : 7.7

We detected these:
Distribution    : rhel
Version         : 7.7
Codename        : 7.7 (Maipo)
Package Manager : install_yum
Packages Tree   : rhel
Detection Method: /etc/os-release
Default Python v: 2 (will install python3 too)

Searching for distro_sdk ...
Searching for autoconf_archive ...
WARNING
package autoconf-archive is not available in this system.
You may try to install without it.

Searching for autogen ...
 > Checking if package 'autogen' is installed...
Searching for libz_dev ...
 > Checking if package 'zlib-devel' is installed...
Searching for libuuid_dev ...
 > Checking if package 'libuuid-devel' is installed...
Searching for libmnl_dev ...
 > Checking if package 'libmnl-devel' is installed...
Searching for libuv ...
 > Checking if package 'libuv-devel' is installed...
Searching for lz4 ...
 > Checking if package 'lz4-devel' is installed...
Searching for openssl ...
 > Checking if package 'openssl-devel' is installed...
Searching for judy ...
 > Checking if package 'Judy-devel' is installed...
Searching for python3_pymongo ...
 > Checking if package 'python3-pymongo' is installed...

The following command will be run:

 >> IMPORTANT <<
    Please make sure your system is up to date
    by running:   yum update

yum install autogen libmnl-devel lz4-devel python3-pymongo


Press ENTER to run it >
yum install autogen libmnl-devel lz4-devel python3-pymongo
Loaded plugins: amazon-id, langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
No package autogen available.
No package libmnl-devel available.
No package lz4-devel available.
No package python3-pymongo available.
Error: Nothing to do



We are very sorry!

Installation of required packages failed.

What to do now:

  1. Make sure your system is updated.
     Most of the times, updating your system will resolve the issue.

  2. If the error message is about a specific package, try removing
     that package from the command and run it again.
     Depending on the broken package, you may be able to continue.

  3. Let us know. We may be able to help.
     Open a github issue with the above log, at:

           https://github.com/firehol/netdata/issues


 FAILED

 WARNING  It failed to install all the required packages, but installation might still be possible.

Press ENTER to attempt netdata installation > ^C

我检查了,yum.repos.d 文件(仅显示epel-testing条目,启用 = 0,我将其更改为 1),仍然收到上述错误:

 [epel-testing]
 name=Extra Packages for Enterprise Linux 7 - Testing - $basearch
 #baseurl=http://download.fedoraproject.org/pub/epel/testing/7/$basearch
 metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-epel7&arch=$basearch&infra=$infra&content=$contentdir
 failovermethod=priority
 enabled=1
 gpgcheck=1
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

我是否需要查看其他一些 repo 配置文件或更改其他内容?安装其他 yum 模块、pip 安装等工作正常。

4

2 回答 2

0

最好使用官方安装方法bash <(curl -Ss https://my-netdata.io/kickstart.sh),而不是 linux 发行版提供的软件包,因为它们不包含 Netdata 当前拥有的所有功能。

我建议您使用我们的脚本卸载并安装它。如果您还有其他问题,我很乐意回答:)

于 2020-10-23T06:34:25.237 回答
0

因此,无需按^C,只需按键盘ENTER键即可成功完成安装。

 ...
 ......
 OK

Setting netdata.tarball.checksum to 'new_installation'

The following non-fatal errors were encountered during the installation process:

* Failed to build JSON-C. Netdata Cloud support will be disabled.

 --- We are done! ---

  ^
  |.-.   .-.   .-.   .-.   .-.   .  netdata                          .-.   .-
  |   '-'   '-'   '-'   '-'   '-'   is installed and running now!  -'   '-'
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

  enjoy real-time performance and health monitoring...

 OK

[ec2-user@elk-stack dump]$ echo $?
0
于 2020-09-25T22:12:19.850 回答