I execute this command in the terminal and it succeeds:
[root@monitor1 libexec]# ./check_http -I 127.0.0.1 -u /storage_check.php -t 300
HTTP OK HTTP/1.1 200 OK - 61438 bytes in 86.078 seconds |time=86.078401s;;;0.000000 size=61438B;;;0
But when Nagios executes the command it fails with timeout.
Current Status: CRITICAL
Status Information: (Service Check Timed Out)
Performance Data:
Current Attempt: 9/16
State Type: SOFT
Last Check Type: ACTIVE
Last Check Time: 09-16-2005 12:48:46
Status Data Age: 0d 0h 3m 42s
Next Scheduled Active Check: 09-16-2005 13:00:46
Latency: 0.147 seconds
Check Duration: 60.004 seconds
Last State Change: 04-12-2005 10:38:43
Current State Duration: 157d 2h 13m 45s
Last Service Notification: 09-16-2005 12:03:31
Current Notification Number: 213
Is This Service Flapping? N/A
Percent State Change: N/A
In Scheduled Downtime? NO
Last Update: 09-16-2005 12:52:24