View previous topic :: View next topic |
Author |
Message |
eddymicro
Joined: 13 Nov 2002 Posts: 95
|
Posted: Wed Jan 18, 2012 9:16 pm Post subject: Shell Script Timeout |
|
|
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12806 Location: USA
|
Posted: Thu Jan 19, 2012 6:19 am Post subject: |
|
|
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/viewtopic.php?p=19535
Regards
Alex |
|
Back to top |
|
|
xcentric
Joined: 23 Oct 2010 Posts: 176
|
Posted: Sun Apr 15, 2012 6:38 am Post subject: |
|
|
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12806 Location: USA
|
Posted: Mon Apr 16, 2012 10:08 am Post subject: |
|
|
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 |
|
Back to top |
|
|
|