Home Directory Plugins Network Protocols HTTP check_http_wrapper.pl

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

check_http_wrapper.pl

Current Version
1.0
Last Release Date
2014-08-11
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
  • Nagios Fusion
  • Nagios Reactor
  • Nagios Network Analyzer
Owner
E-mail
License
GPL
Hits
12370
Files:
FileDescription
check_http_wrapper.plcheck_http_wrapper.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This perl script reads the output of a verbose check_http and creates a file with this content when status is not HTTP OK.
In order to use it, you must edit commands.cfg:
- Before:
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
- After:
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ -v | $USER1$/check_http_wrapper.pl /some/dir/$HOSTNAME$_$SERVICEDESC$_$SHORTDATETIME$

DonĀ“t forget to change the directory above. I also edit nagios.cfg to make date_format=strict-iso8601 and avoid a space on the file name.