Page 1 of 1

Issue with HTTP URL monitoring

Posted: Fri Oct 03, 2014 1:27 pm
by plakshmi
Recently we have implemented monitoring for couple of HTTP URL's in Nagios XI 2012R2.9. We are seeing below issues.

1) If we monitor URL with threshold 120 seconds we are getting "Service check timed out" intermittently. The default check timeout in nagios.cfg is 60 seconds.
Command - /usr/local/nagios/libexec/check_http -f follow -H $HOSTNAME$ -s $ARG1$ -u $ARG2$ -c 120 -t 120

2) If we specify threshold value 50 seconds, we are getting "Socket timeout after 50 seconds" intermittently. At times the URL shows OK status.
Command - /usr/local/nagios/libexec/check_http -f follow -H $HOSTNAME$ -s $ARG1$ -u $ARG2$ -c 50 -t 50

Please suggest if we are missing anything.

Re: Issue with HTTP URL monitoring

Posted: Fri Oct 03, 2014 1:40 pm
by abrist
There is a hard limit on the service check timeouts in nagios.cfg. You should check this value and increase it so your checks using timeouts larger than the default will run at their full interval:

Code: Select all

grep service_check_timeout /usr/local/nagios/etc/nagios.cfg