Pi hole
Pi-hole
Pi-hole is a DNS server that can be used to block ads and other unwanted content. This script reports the status of Pi-hole.
SNMP Extend
-
Copy the shell script, pi-hole, to the desired host.
wget https://github.com/librenms/librenms-agent/raw/master/snmp/pi-hole -O /etc/snmp/pi-hole -
Make the script executable.
chmod +x /etc/snmp/pi-hole -
Edit your
snmpd.conffile and add:extend pi-hole /etc/snmp/pi-hole -
To get all data you must get your
API auth tokenfrom Pi-hole server and change theAPI_AUTH_KEYentry inside the snmp script. -
Restard snmpd.
sudo systemctl restart snmpdLibreNMS discovers the application automatically, as described at the top of the page. If the discovery fails, do the steps under the
SNMP Extendheading at the top of the page.