KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Shell Script Timeout

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports
View previous topic :: View next topic  
Author Message
eddymicro



Joined: 13 Nov 2002
Posts: 95

PostPosted: Wed Jan 18, 2012 9:16 pm    Post subject: Shell Script Timeout Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Thu Jan 19, 2012 6:19 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
xcentric



Joined: 23 Oct 2010
Posts: 176

PostPosted: Sun Apr 15, 2012 6:38 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Mon Apr 16, 2012 10:08 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index