Monitorix/README.nginx

37 lines
896 B
Plaintext
Raw Normal View History

2012-10-22 15:26:37 +01:00
NOTES FOR THOSE WHO WANT TO MONITOR 'nginx' WEB SERVER
===============================================================================
Since the 1.3.0 version and thanks to Aleksandr Miroshnychenko
(al.miroshnychenko AT gmail.com) it is possible to enable the monitorization
of the Nginx web server (http://nginx.net/).
Here are the steps:
1) Edit the 'monitorix.conf' file to enable the 'nginx' monitorization and set
the correct network port where Nginx is listening on:
<graph_enable>
2012-10-22 15:26:37 +01:00
[...]
nginx = y
2012-10-22 15:26:37 +01:00
[...]
</graph_enable>
2012-10-22 15:26:37 +01:00
<nginx>
[...]
port = 80
[...]
</nginx>
2012-10-22 15:26:37 +01:00
2) Make sure 'nginx' has been compiled with the flag:
2012-10-22 15:26:37 +01:00
--with-http_stub_status_module
3) Edit the 'nginx.conf' file and add or uncomment in the server section the
following:
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
4) Restart Nginx and Monitorix.