When I installed netdata on my AmazonLinux2 EC2 instance:
wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --claim-token xxxxxxxxxxxxxxxxxxx --claim-url https://app.netdata.cloud
It evidently does not have a native package for installation and seemed to just extract files beneath /opt/netdata:
[rpalmer@ip-xxx-xx-xx-xxx_qa ~]$ rpm -qa | grep netdata
[rpalmer@ip-xxx-xx-xx-xxx_qa ~]$
[rpalmer@ip-xxx-xx-xx-xxx_qa ~]$ ls -l /opt/netdata
total 0
drwxrwxr-x 3 netdata netdata 145 Nov 14 00:23 bin
drwxrwxr-x 3 netdata netdata 32 Nov 14 00:23 etc
drwxr-xr-x 3 netdata netdata 18 Nov 14 00:20 include
drwxr-xr-x 3 netdata netdata 58 Nov 14 00:20 lib
lrwxrwxrwx 1 netdata netdata 11 Nov 14 04:01 netdata-configs -> etc/netdata
lrwxrwxrwx 1 netdata netdata 15 Nov 14 04:01 netdata-dbs -> var/lib/netdata
lrwxrwxrwx 1 netdata netdata 15 Nov 14 04:01 netdata-logs -> var/log/netdata
lrwxrwxrwx 1 netdata netdata 17 Nov 14 04:01 netdata-metrics -> var/cache/netdata
lrwxrwxrwx 1 netdata netdata 19 Nov 14 04:01 netdata-plugins -> usr/libexec/netdata
lrwxrwxrwx 1 netdata netdata 21 Nov 14 04:01 netdata-web-files -> usr/share/netdata/web
lrwxrwxrwx 1 netdata netdata 3 Nov 14 04:01 sbin -> bin
drwxrwxr-x 7 netdata netdata 66 Nov 14 00:23 share
drwxrwxr-x 2 netdata netdata 216 Nov 14 00:23 system
drwxrwxr-x 5 netdata netdata 81 Nov 14 04:01 usr
drwxrwxr-x 6 netdata netdata 52 Nov 14 00:23 var
[rpalmer@ip-xxx-xx-xx-xxx_qa ~]$
My installation is kinda working, but there are errors on systemctl status and the journalctl report complains that /usr/sbin/netdata is missing:
[root@ip-xxx-xx-xx-xxx_qa ~]# systemctl status netdata
● netdata.service - Real time performance monitoring
Loaded: loaded (/usr/lib/systemd/system/netdata.service; enabled; vendor preset: disabled)
Active: inactive (dead) (Result: exit-code) since Fri 2022-11-11 14:33:48 UTC; 2min 38s ago
Process: 32682 ExecStart=/usr/sbin/netdata -D $EXTRA_OPTS (code=exited, status=203/EXEC)
Main PID: 32682 (code=exited, status=203/EXEC)
Nov 11 14:33:43 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: Unit netdata.service entered failed state.
Nov 11 14:33:43 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: netdata.service failed.
Nov 11 14:33:48 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: Stopped Real time performance monitoring.
[root@ip-xxx-xx-xx-xxx_qa ~]#
Nov 11 14:32:34 ip-xxx-xx-xx-xxx.us-east-2.compute.internal sudo[31943]: rpalmer : TTY=pts/0 ; PWD=/home/rpalmer/tmp ; USER=root ; COMMAND=/bin/su -
Nov 11 14:32:34 ip-xxx-xx-xx-xxx.us-east-2.compute.internal sudo[31943]: pam_unix(sudo:session): session opened for user root by rpalmer(uid=0)
Nov 11 14:32:34 ip-xxx-xx-xx-xxx.us-east-2.compute.internal su[31944]: (to root) rpalmer on pts/0
Nov 11 14:32:34 ip-xxx-xx-xx-xxx.us-east-2.compute.internal su[31944]: pam_unix(su-l:session): session opened for user root by rpalmer(uid=0)
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal groupadd[32333]: group added to /etc/group: name=netdata, GID=991
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal groupadd[32333]: group added to /etc/gshadow: name=netdata
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal groupadd[32333]: new group: name=netdata, GID=991
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal useradd[32340]: new user: name=netdata, UID=995, GID=991, home=/opt/netdata, shell=/usr/sbin/nologin
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal usermod[32351]: add 'netdata' to group 'docker'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal usermod[32351]: add 'netdata' to shadow group 'docker'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal usermod[32369]: add 'netdata' to group 'adm'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal usermod[32369]: add 'netdata' to shadow group 'adm'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal usermod[32388]: add 'netdata' to group 'nobody'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal usermod[32388]: add 'netdata' to shadow group 'nobody'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: Reloading.
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: [/usr/lib/systemd/system/netdata.service:13] Unknown lvalue 'CacheDirectory' in section 'Service'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: [/usr/lib/systemd/system/netdata.service:14] Unknown lvalue 'StateDirectory' in section 'Service'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: [/usr/lib/systemd/system/netdata.service:15] Unknown lvalue 'LogsDirectory' in section 'Service'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: [/usr/lib/systemd/system/netdata.service:17] Unknown lvalue 'StateDirectoryMode' in section 'Service'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: [/usr/lib/systemd/system/netdata.service:18] Unknown lvalue 'CacheDirectoryMode' in section 'Service'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: [/usr/lib/systemd/system/netdata.service:19] Unknown lvalue 'LogsDirectoryMode' in section 'Service'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: Reloading.
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: [/usr/lib/systemd/system/netdata.service:13] Unknown lvalue 'CacheDirectory' in section 'Service'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: [/usr/lib/systemd/system/netdata.service:14] Unknown lvalue 'StateDirectory' in section 'Service'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: [/usr/lib/systemd/system/netdata.service:15] Unknown lvalue 'LogsDirectory' in section 'Service'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: [/usr/lib/systemd/system/netdata.service:17] Unknown lvalue 'StateDirectoryMode' in section 'Service'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: [/usr/lib/systemd/system/netdata.service:18] Unknown lvalue 'CacheDirectoryMode' in section 'Service'
Nov 11 14:33:08 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: [/usr/lib/systemd/system/netdata.service:19] Unknown lvalue 'LogsDirectoryMode' in section 'Service'
Nov 11 14:33:13 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: Started Real time performance monitoring.
-- Subject: Unit netdata.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit netdata.service has finished starting up.
--
-- The start-up result is done.
Nov 11 14:33:13 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[32607]: Failed at step EXEC spawning /usr/sbin/netdata: No such file or directory
-- Subject: Process /usr/sbin/netdata could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The process /usr/sbin/netdata could not be executed and failed.
--
-- The error number returned by this process is 2.
Nov 11 14:33:13 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: netdata.service: main process exited, code=exited, status=203/EXEC
Nov 11 14:33:13 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: Unit netdata.service entered failed state.
Nov 11 14:33:13 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: netdata.service failed.
Nov 11 14:33:35 ip-xxx-xx-xx-xxx.us-east-2.compute.internal dhclient[4504]: XMT: Solicit on eth0, interval 118240ms.
Nov 11 14:33:43 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: netdata.service holdoff time over, scheduling restart.
Nov 11 14:33:43 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: Stopped Real time performance monitoring.
-- Subject: Unit netdata.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit netdata.service has finished shutting down.
Nov 11 14:33:43 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: Started Real time performance monitoring.
-- Subject: Unit netdata.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit netdata.service has finished starting up.
--
-- The start-up result is done.
Nov 11 14:33:43 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[32682]: Failed at step EXEC spawning /usr/sbin/netdata: No such file or directory
-- Subject: Process /usr/sbin/netdata could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The process /usr/sbin/netdata could not be executed and failed.
--
-- The error number returned by this process is 2.
Nov 11 14:33:43 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: netdata.service: main process exited, code=exited, status=203/EXEC
Nov 11 14:33:43 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: Unit netdata.service entered failed state.
Nov 11 14:33:43 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: netdata.service failed.
Nov 11 14:33:48 ip-xxx-xx-xx-xxx.us-east-2.compute.internal systemd[1]: Stopped Real time performance monitoring.
-- Subject: Unit netdata.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit netdata.service has finished shutting down.
Nov 11 14:33:53 ip-xxx-xx-xx-xxx.us-east-2.compute.internal [32749]: CONFIG: cannot load user config '/opt/netdata/etc/netdata/netdata.conf'. Will try the stock version.
Nov 11 14:33:53 ip-xxx-xx-xx-xxx.us-east-2.compute.internal [32749]: CONFIG: cannot load stock config '/opt/netdata/usr/lib/netdata/conf.d/netdata.conf'. Running with internal defaults.
Nov 11 14:33:53 ip-xxx-xx-xx-xxx.us-east-2.compute.internal [32749]: CONFIG: cannot load cloud config '/opt/netdata/var/lib/netdata/cloud.d/cloud.conf'. Running with internal defaults.
Nov 11 14:33:53 ip-xxx-xx-xx-xxx.us-east-2.compute.internal [32749]: Found 0 legacy dbengines, setting multidb diskspace to 256MB
Nov 11 14:33:53 ip-xxx-xx-xx-xxx.us-east-2.compute.internal [32749]: Created file '/opt/netdata/var/lib/netdata/dbengine_multihost_size' to store the computed value
Nov 11 14:33:54 ip-xxx-xx-xx-xxx.us-east-2.compute.internal [438]: Does not have a configuration file inside `/opt/netdata/etc/netdata/ebpf.d.conf. It will try to load stock file.
Nov 11 14:33:54 ip-xxx-xx-xx-xxx.us-east-2.compute.internal [438]: Your environment does not have BTF file /sys/kernel/btf//vmlinux. The plugin will work with 'legacy' code.
Nov 11 14:33:54 ip-xxx-xx-xx-xxx.us-east-2.compute.internal [438]: Name resolution is disabled, collector will not parser "hostnames" list.
Nov 11 14:33:54 ip-xxx-xx-xx-xxx.us-east-2.compute.internal [438]: The network value of CIDR 127.0.0.1/8 was updated for 127.0.0.0 .
Nov 11 14:33:54 ip-xxx-xx-xx-xxx.us-east-2.compute.internal [438]: Cannot read process groups configuration file '/opt/netdata/etc/netdata/apps_groups.conf'. Will try '/opt/netdata/usr/lib/netdata/conf.d/apps_groups.conf'
Nov 11 14:35:34 ip-xxx-xx-xx-xxx.us-east-2.compute.internal dhclient[4504]: XMT: Solicit on eth0, interval 108950ms.
Do you not have an AmazonLinux2 native rpm install?
Is there a better way for me to install and run Netdata?
-RP