Problem in 8.14 with long error messages from Shell Script

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
dmitria
Posts: 2
Joined: Thu Aug 27, 2009 2:22 pm

Problem in 8.14 with long error messages from Shell Script

Post by dmitria »

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!
KS-Soft
Posts: 12887
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
dmitria
Posts: 2
Joined: Thu Aug 27, 2009 2:22 pm

Post by dmitria »

Suggested workaround (SScript_UseWindowsPipe=0) works great.

Thank you!
Dmitri
Post Reply