Skip to content

PowerDNS

PowerDNS

An authoritative DNS server: https://www.powerdns.com/auth.html

  1. 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
  1. Make the script executable.
chmod +x /etc/snmp/powerdns.py
  1. Edit your snmpd.conf file and add:
extend powerdns /etc/snmp/powerdns.py
  1. 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"]