Need help in check_http

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
aditya.c.anand
Posts: 56
Joined: Mon Mar 20, 2017 7:16 am

Need help in check_http

Post by aditya.c.anand »

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.
User avatar
rexconsulting
Posts: 60
Joined: Fri May 04, 2012 4:27 pm
Location: Oakland, CA
Contact:

Re: Need help in check_http

Post by rexconsulting »

Hi Aditya,

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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Need help in check_http

Post by cdienger »

Thanks for the assist, Chris!

@aditya.c.anand, let us know if this has resolved your problem.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked