Shell Script Timeout

When you post information about some problem, please include the following details: - OS version (e.g. Windows 2000 Professional SP3); HostMonitor version; problem description.
Post Reply
eddymicro
Posts: 95
Joined: Wed Nov 13, 2002 6:00 pm

Shell Script Timeout

Post by eddymicro »

Alex

If I set the Timeout to 0 Sec in the shell script, the script continues to run but I still get a "Timed out" response. I either need a timeout much greater than 600 seconds, or I need the 0 value to work as specified AND not display a reply of timed out.

Regards

Ed
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

This is correct behavior, HostMonitor drops any test when it cannot be finished within 15 min.
If you really need more time and you are sure your script works correctly, you may change this timeout as described here: http://www.ks-soft.net/cgi-bin/phpBB/vi ... hp?p=19535

Regards
Alex
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Post by xcentric »

I need to extend the shell script timeout also.

Am I correct in assuming that this is a three step process?

1. Add ProbeTimeout=3600 in the misc section of the hostmonitor ini.
2. Restart hostmonitor.
3. Set the script timeout per test to 0 to use the value set in the hostmonitor ini?

Because after step 2 the timeout field in the test properties will not go beyond 600.

If step 3 is true then this means you cannot fine tune the timeout above 600 per test and that is is global for all test timeouts set to 0.

It doesn't matter to me to have such granularity, I just want to understand the behavior.

Regards
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Well, we can change the code so HostMonitor will allow you to setup higher timeout for scripts when "unofficial" ProbeTimeout option increased.
But we think its better to redesign your checks so they will not take so much time (if possible).
E.g. if you have some external application that returns results 1 hour after start, then its better to use 2 test items - 1 item to start application, another test to check for results. If this application records results into file, its easy to do.

Regards
Alex
Post Reply