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 token
from Pi-hole server and change theAPI_AUTH_KEY
entry inside the snmp script. -
Restard snmpd.
sudo systemctl restart snmpd
The 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 Extend
heading top of page.