Skip to content

PureFTPd

SNMP extend script to monitor PureFTPd.

SNMP Extend

  1. Download the script onto the desired host

    wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/pureftpd.py -O /etc/snmp/pureftpd.py
    
  2. Make the script executable

    chmod +x /etc/snmp/pureftpd.py
    
  3. Edit your snmpd.conf file (usually /etc/snmp/snmpd.conf) and add:

    extend pureftpd sudo /etc/snmp/pureftpd.py
    
  4. Edit your sudo users (usually visudo) and add at the bottom:

    snmp ALL=(ALL) NOPASSWD: /etc/snmp/pureftpd.py
    

    or the path where your pure-ftpwho is located

  5. If pure-ftpwho is not located in /usr/sbin

    you will also need to create a config file, which is named /etc/snmp/.pureftpd.json:

    {"pureftpwho_cmd": "/usr/sbin/pure-ftpwho"
    }
    
  6. Restart snmpd on your host