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.conf file 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 snmpdThe application should be auto-discovered as described at the top of the page. If it is not, please follow the steps set out under
SNMP Extendheading top of page.