NGINX SNMP
From KlavoWiki
Jump to navigationJump to search
To retrieve NGINX counters from SNMP.
apt install python3-pip python3-dateutil
wget https://github.com/librenms/librenms-agent/raw/master/snmp/docker-stats.py -O /etc/snmp/docker-stats.py chmod +x /etc/snmp/docker-stats.py
usermod -a -G docker Debian-snmp
vi /etc/snmp/snmpd.conf
extend nginx /etc/snmp/nginx