I recently had problems trying to install Netdata on FreeBSD; remember that Netdata can be installed via "PKG" but the package is out of date, so I decided to compile and install Netdata as requested by the tutorial on GitHub: install Netdata, guide from GitHub
The problem is that whenever I tried to install the official install it didn't compile correctly, because it claimed that the lib "uuid-deve" (or something similar) was missing. The thing about the cat here is the cmake package, which contains this missing lib, preventing the Netdata script from correctly compiling the software.
=> Install the dependencies (need root permission):
=> Download Netdata:
=> Unpack:
=> Install Netdata in /opt/netdata, if you want to enable automatic updates, add --auto-update or -u for install netdata-updater in cron (need root permission):
=> You also need to enable the netdata service in /etc/rc.conf:
=> Finally, and very importantly, update Netdata using the script provided by the Netdata team (need root permission):
=> IMPORTANT:
1 -> All set, we can now access the Netdata Web Interface. Ex:
2 -> Repeat the last step to update Netdata whenever a new version becomes available. The netdata-updater.sh script will update your Agent.
=> And finally, enjoy...
The problem is that whenever I tried to install the official install it didn't compile correctly, because it claimed that the lib "uuid-deve" (or something similar) was missing. The thing about the cat here is the cmake package, which contains this missing lib, preventing the Netdata script from correctly compiling the software.
=> Install the dependencies (need root permission):
pkg install bash e2fsprogs-libuuid git curl autoconf automake pkgconf pidof Judy liblz4 libuv json-c cmake
=> Download Netdata:
fetch https://github.com/netdata/netdata/releases/download/v1.22.1/netdata-v1.22.1.tar.gz
=> Unpack:
gunzip netdata*.tar.gz && tar xf netdata*.tar && rm -rf netdata*.tar
=> Install Netdata in /opt/netdata, if you want to enable automatic updates, add --auto-update or -u for install netdata-updater in cron (need root permission):
cd netdata-v* && ./netdata-installer.sh --disable-telemetry --install /opt
=> You also need to enable the netdata service in /etc/rc.conf:
sysrc netdata_enable="YES"
=> Finally, and very importantly, update Netdata using the script provided by the Netdata team (need root permission):
cd /opt/netdata/usr/libexec/netdata/ && ./netdata-updater.sh
=> IMPORTANT:
1 -> All set, we can now access the Netdata Web Interface. Ex:
http://server.ip:19999
:2 -> Repeat the last step to update Netdata whenever a new version becomes available. The netdata-updater.sh script will update your Agent.
=> And finally, enjoy...
Last edited: