Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_nginx

Current Version
1.0.1
Last Release Date
2010-12-09
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
License
GPL
Hits
108508
Files:
FileDescription
check_nginxcheck_nginx
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
python use 2.5.2

check_nginx is a Nagios to monitor nginx status
Usage:

check_nginx [-h|--help][-U|--url][-P|--path][-u|--user][-p|--passwd][-w|--warning][-c|--critical]

Options:
--help|-h)
print check_nginx help.
--url|-U)
Sets nginx status url.
--path|-P)
Sets nginx status url path. Default is: off
--user|-u)
Sets nginx status BasicAuth user. Default is: off
--passwd|-p)
Sets nginx status BasicAuth passwd. Default is: off
--warning|-w)
Sets a warning level for nginx Active connections. Default is: off
--critical|-c)
Sets a critical level for nginx Active connections. Default is: off
Example:
The url is www.nginxs.com/status
./check_nginx -U www.nginxs.com -P /status -u eric -p nginx -w 1000 -c 2000
if dont't have password:
./check_nginx -U www.nginxs.com -P /status -w 1000 -c 2000
if don't have path and password:
./check_nginx -U www.nginxs.com -w 1000 -c 2000
Usage:

check_nginx [-h|--help][-U|--url][-P|--path][-u|--user][-p|--passwd][-w|--warning][-c|--critical]

Options:
--help|-h)
print check_nginx help.
--url|-U)
Sets nginx status url.
--path|-P)
Sets nginx status url path. Default is: off
--user|-u)
Sets nginx status BasicAuth user. Default is: off
--passwd|-p)
Sets nginx status BasicAuth passwd. Default is: off
--warning|-w)
Sets a warning level for nginx Active connections. Default is: off
--critical|-c)
Sets a critical level for nginx Active connections. Default is: off
Example:
The url is www.nginxs.com/status
./check_nginx -U www.nginxs.com -P /status -u eric -p nginx -w 1000 -c 2000
if dont't have password:
./check_nginx -U www.nginxs.com -P /status -w 1000 -c 2000
if don't have path and password:
./check_nginx -U www.nginxs.com -w 1000 -c 2000
Reviews (1)
On Icinga 2 this check does not provide any per data, because of wrong Perf data output format.

To fix this it is required to change the line from
perfdata = 'ActiveConn:%s,reading:%s,writing:%s,waiting:%s' % (ActiveConn,reading,writing,waiting)
to
perfdata = 'ActiveConn=%s; reading=%s; writing=%s; waiting=%s' % (ActiveConn,reading,writing,waiting)

This works for me to get it working for icinga 2.