I currently have a simple Python script that I want to output a result to hostmonitor. I have start cmd as
cmd /c cscript /B /E:Python %Script% %Params%
I've added an environment path variable for python so the exe can launch from anywhere.
Can you give me an example of what I need to output in the script to get host monitor to pickup the result? I currently get "Error: Script returns no results"
This is the end of the script
Code: Select all
# We know there's only once instance, so we can skip looping for now
print list[0]['Scriptres:ok:VersionString']
sys.stdout.write('ScriptRes:OK:Test')