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.conffile and add:
extend powerdns /etc/snmp/powerdns.py
- Restart snmpd on your host.
LibreNMS discovers the application automatically, as described at the top of the page. If the discovery fails, do the steps under the SNMP Extend heading at the top of the page.
If this device has no agent, install the agent
and copy the powerdns script to /usr/lib/check_mk_agent/local/
If snmpd runs as an unprivileged user, 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"]