Hello Team,
We have a scenario where a URL is getting monitored via "check_http".
The check is throwing warning alert which is not getting monitored by our monitoring team.
This plugin will attempt to open an HTTP connection with the host. Successful connects return STATE_OK, refusals and timeouts return STATE_CRITICAL other errors return STATE_UNKNOWN.
Successful connects, but incorrect response messages from the host result in STATE_WARNING return values.
Can you please help, how we can convert this warning into critical alert, so that we can get this monitored.
Your help will be much appreciated.
Need help in check_http
- rexconsulting
- Posts: 60
- Joined: Fri May 04, 2012 4:27 pm
- Location: Oakland, CA
- Contact:
Re: Need help in check_http
Hi Aditya,
See /usr/local/nagios/libexec/negate. You'll want "-w critical" and "-s". Check out this example:
See /usr/local/nagios/libexec/negate. You'll want "-w critical" and "-s". Check out this example:
Code: Select all
/usr/local/nagios/libexec/negate -s --warning=2 "/usr/local/nagios/libexec/check_dummy 1 WARNING"CP
--
Chris Paul
Rex Consulting, Inc
5652 Florence Terrace, Oakland, CA 94611
email: [email protected]
web: http://www.rexconsulting.net
phone, toll-free: +1 (888) 403-8996 ext 1
--
Chris Paul
Rex Consulting, Inc
5652 Florence Terrace, Oakland, CA 94611
email: [email protected]
web: http://www.rexconsulting.net
phone, toll-free: +1 (888) 403-8996 ext 1
Re: Need help in check_http
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.