check_http succeeds on command line but fails in nagios

Tedman Eng teng at dataway.com
Fri Sep 16 23:38:32 CEST 2005


Nagios has 2 timeout values to look at.


Global service check timeout in nagios.cfg:
service_check_timeout=#
host_check_timeout=#


Plugin's own timeout setting in checkcommands.cfg:
define command{
        command_name    check_http
        command_line    $USER1$/check_http -H $HOSTADDRESS$ -t #
        }



> -----Original Message-----
> From: Gary Danko [mailto:gdanko at gmail.com]
> Sent: Friday, September 16, 2005 2:18 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_http succeeds on command line 
> but fails in
> nagios
> 
> 
> I have a simple PHP page that checks about 1,200 Windows shares across
> a network. The page takes about 80-90 seconds to run in a browser.
> 
> I can execute the check_http command in the terminal while logged in
> as the nagios user and receive positive results.
> 
> [nagios at monitor1 /]$ /usr/local/nagios/libexec/check_http -I 127.0.0.1
> -u "/storage_check.php" -t 300 -s "No errors."
> HTTP OK HTTP/1.1 200 OK - 81.907 second response time
> |time=81.906808s;;;0.000000 size=61452B;;;0
> 
> However, when nagios attempts to check this item, it gives me a
> "(Service Check Timed Out)" error. I can see nagios running the
> command in the process list.
> 
> [root at monitor1 html]# ps auxww | grep 127.0
> nagios   19727  0.0  0.2  4788 2104 ?        S    13:58   0:00
> /usr/local/nagios/libexec/check_http -I 127.0.0.1 -t 300 -u
> /storage_check.php -s No errors.
> 
> Here is the Service State information:
> 
> Current Status:	  CRITICAL    
> Status Information:	(Service Check Timed Out)
> Performance Data:	
> Current Attempt:	6/6
> State Type:	HARD
> Last Check Type:	ACTIVE
> Last Check Time:	09-16-2005 14:14:18
> Status Data Age:	0d 0h 2m 31s
> Next Scheduled Active Check:  	09-16-2005 14:18:18
> Latency:	0.137 seconds
> Check Duration:	60.006 seconds
> Last State Change:	09-16-2005 13:31:04
> Current State Duration:	0d 0h 45m 45s
> Last Service Notification:	09-16-2005 13:42:06
> Current Notification Number:	1
> Is This Service Flapping?	N/A
> Percent State Change:	N/A
> In Scheduled Downtime?	  NO  
> Last Update:	09-16-2005 14:16:42
> 
> Any ideas what could be going wrong? I have other http-based status
> checks similar to this one that do not give me any hassle.
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. 
> Download it for free - -and be entered to win a 42" plasma tv 
> or your very
> own Sony(tm)PSP.  Click here to play: 
http://sourceforge.net/geronimo.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list