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

Problem in 8.14 with long error messages from Shell Script

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



Joined: 27 Aug 2009
Posts: 2

PostPosted: Fri Aug 28, 2009 6:01 am    Post subject: Problem in 8.14 with long error messages from Shell Script Reply with quote

Hi,

We have a test with shell script, which produces "ScriptRes:Ok:" if everything is fine or "ScriptRes:Bad:<Message>" if something is wrong.

Error messages are normally displayed in AHM console and sent with e-mail alerts, but when the error message is long then it will be truncated and status became "Unknown" (instead of "Bad").
It breaks at around 1k and this problem started only after upgrading from 7.78 to 8.14 (exactly the same test was working fine in 7.x)

We could probably change the script to save messages to text file and send it as attachment, but it's not as convenient.

Are there any other workarounds or plans to fix this bug?

Thanks!
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Fri Aug 28, 2009 10:34 am    Post subject: Reply with quote

Its not a bug its just a limit: 1024 chars for reply+status... while new version can execute some scripts faster than old version of HostMonitor.
Ok, we will change this in next version.

For not you may tell HostMonitor to use different code: just change "SScript_UseWindowsPipe=1" line to "SScript_UseWindowsPipe=0" in hostmon.ini file ([Misc] section) and restart HostMonitor

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
dmitria



Joined: 27 Aug 2009
Posts: 2

PostPosted: Fri Aug 28, 2009 1:57 pm    Post subject: Reply with quote

Suggested workaround (SScript_UseWindowsPipe=0) works great.

Thank you!
Dmitri
Back to top
View user's profile Send private message
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