Prometheus Node Exporter
Check Available Version
sudo apt-cache policy prometheus-node-exporter
It should show version 0.18 or above. If not, then you can download the version manually using the commands below, and then you will need to manually set it up as a service.
If you have versions 0.18 or above then you can install using
sudo apt install prometheus-node-exporter
Check its status is active running
sudo service prometheus-node-exporter status
You can check it responds
You should also try a curl request from the perspective of your Zabbix server. Furthermore, you may need to modify your firewall rules to allow your Zabbix server to query port 9100 on the host where your Prometheus Node Exporter is running.
The Prometheus Node Exporter service is responding to unauthenticated HTTP requests on port 9100. These responses are not encrypted so if the data is travelling across a public network, then you will need to implement some kind of SSL/TLS layer. A Nginx reverse proxy is useful for this, or you can use a dedicated VPN.
Manually Download Prometheus Node Exporter Binary and Configure as a Service
Do this step if your apt cache has a version of
prometheus-node-exporter less than 0.18.
tar xzf node_exporter-0.18.1.linux-amd64.tar.gz
cp node_exporter-0.18.1.linux-amd64/node_exporter /usr/local/bin/
Now we will configure Prometheus Node Exporter as a Service so that we can keep it running in the background.
Create a file called node-exporter.service
sudo nano /etc/systemd/system/node-exporter.service
Add the script and save
1 2 3 4 5 6 7 8 9 10
Now start and check the service is running.
systemctl daemon-reload sudo service node-exporter start sudo service node-exporter status
If you want to try a more detailed course on Prometheus, then you can visit my Prometheus tutorials.