LibreNMS - snmp extend nginx

From Wiki.IT-Arts.net
Revision as of 10:42, 1 May 2020 by imported>Z (Created page with "Category:Post-It = NginX LibreNMS script = Get the script: <nowiki> wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/nginx -O /etc/snmp/ngin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



NginX LibreNMS script

Get the script:

wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/nginx -O /etc/snmp/nginx

Unzip and copy it where you need. Make it executable.


vHOST

Adapt your config with:

server {
                listen 127.0.0.1:80;
                server_name 127.0.0.1;

                location /nginx_status {
                        stub_status on;
			access_log   off;
			allow 127.0.0.1;
			allow ::1;
			deny all;
                }
}