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.
Issue with HTTP URL monitoring
Re: Issue with HTTP URL monitoring
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.cfgFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.