PureFTPd
SNMP extend script to monitor PureFTPd.
SNMP Extend
-
Download the script onto the desired host
wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/pureftpd.py -O /etc/snmp/pureftpd.py
-
Make the script executable
chmod +x /etc/snmp/pureftpd.py
-
Edit your snmpd.conf file (usually
/etc/snmp/snmpd.conf
) and add:extend pureftpd sudo /etc/snmp/pureftpd.py
-
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
-
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" }
-
Restart snmpd on your host