nginx

check_nginx

Description:

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

Current Version

1.0.1

Last Release Date

2010-12-09

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x

Owner

License

GPL


Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Project Files
Project Notes
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) Add a Review
In this Version the Plugin doesn#t provide any perf data
by amueller, June 30, 2020
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.
Helpful? Yes  No 
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
3 (1)
Favorites
0
Views
109,132