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!
Problem in 8.14 with long error messages from Shell Script
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
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