PowerDNS
PowerDNS
An authoritative DNS server: https://www.powerdns.com/auth.html
- Copy the shell script, powerdns.py, to the desired host
wget https://github.com/librenms/librenms-agent/raw/master/snmp/powerdns.py -O /etc/snmp/powerdns.py
- Make the script executable
chmod +x /etc/snmp/powerdns.py
- Edit your snmpd.conf file and add:
extend powerdns /etc/snmp/powerdns.py
- Restart snmpd on your host
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.
Install the agent on this device if it isn't already
and copy the powerdns
script to /usr/lib/check_mk_agent/local/
If snmpd is running as an unpriveledged user, you may need to use sudo. Here is a rough outline of one way to accomplish this.
Add Debian-snmp ALL=(ALL) NOPASSWD: /usr/bin/pdns_control list
to your sudoers file
In powerdns.py, modify the process from [pdnscontrol, "list"]
to ["/usr/bin/sudo", pdnscontrol, "list"]