Home Directory Plugins Web Servers check_nginx_stats.pl (Advanced Nagios Plugins Collection)

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_stats.pl (Advanced Nagios Plugins Collection)

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
Hits
34259
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Checks Nginx stats from the nginx stub_status page
Part of the Advanced Nagios Plugins Collection, download it here:

https://github.com/harisekhon/nagios-plugins

./check_nginx_stats.pl --help

Nagios Plugin to check Nginx stats from the nginx stub_status page

usage: check_nginx_stats.pl [ options ]

-H --host Host to connect to
-P --port Port to connect to (defaults to 80)
-u --url Nginx Status URL (usually something like /nginx_status - must be compiled with support and enabled in the nginx config using stub_status)
--no-keepalives Use only when nginx config has 'keepalive_timeout 0' to enable an extra sanity check against the Handled/Request counts where Handled >= Requests must be true. A sanity check of Accepted >= Handled is performed regardless
-w --warning Warning threshold or ran:ge (inclusive) for Active Connections count
-c --critical Critical threshold or ran:ge (inclusive) for Active Connections count
-h --help Print description and usage options
-t --timeout Timeout in secs (default: 10)
-v --verbose Verbose mode
-V --version Print version and exit