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

Directory Tree

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
License
GPL
Hits
17202
Files:
FileDescription
check_http_wrapper.plcheck_http_wrapper.pl
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!
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.