Nginx - http://nginx.net/
Provide graphing nginx clients statistics (active, reading, writing, waiting) and nginx socket statistics (accepts, handled, requests). It's a formal devision used only for graphs usability.
For use do next steps:
1. Enable nginx http_stub_status_module at configure stage (if requared).
2. Enable stub status. Add to nginx.conf (in any server context):
Code: Select all
location /nginx_status {
stub_status on;
# disable access_log if requared
access_log off;
#allow XX.YY.AA.ZZ;
#allow YY.ZZ.JJ.CC;
#deny all;
}
3.
Code: Select all
cp get_nginx_clients_status.pl <path_cacti>/scripts/
cp get_nginx_socket_status.pl <path_cacti>/scripts/
chmod 0755 <path_cacti>/scripts/get_nginx_socket_status.pl
chmod 0755 <path_cacti>/scripts/get_nginx_clients_status.pl
Code: Select all
get_nginx_clients_status.pl http://nginx.server.tld/nginx_status
Code: Select all
nginx_accepts:113869 nginx_handled:113869 nginx_requests:122594
6. Add nginx graphs to your hosts.
P.S. Sorry for my english