LibreNMS - snmp extend nginx: Difference between revisions
From Wiki.IT-Arts.net
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...") |
imported>Z No edit summary |
||
Line 10: | Line 10: | ||
Unzip and copy it where you need. Make it executable. | Unzip and copy it where you need. Make it executable. | ||
;Adapt the url in the script to your configuration, eg: | |||
: data = urlopen('http://127.0.0.1/nginx_status').read() | |||
Line 28: | Line 31: | ||
deny all; | deny all; | ||
} | } | ||
} | }</nowiki> | ||
</nowiki> | |||
= Sources = | |||
* https://docs.librenms.org/Extensions/Applications/#nginx | |||
---- |
Revision as of 10:45, 1 May 2020
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.
- Adapt the url in the script to your configuration, eg
- data = urlopen('http://127.0.0.1/nginx_status').read()
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; } }
Sources