That’s great it is exactly what I needed, and I now have it working in my python command line probe using the specially formulated print string to set the reason string as well as the returned information in the icon label.
One thing I notice however is that the reason string I return form my script changes as expected when the list of different active faults returned from my device changes, and I can correctly see the current reason string at the bottom of the probe status window. However, despite the reason string changing, the new changed value does not get written to the event log. The only entry in the event log is for the value of the reason string when the exit code of the probe changed.
Is there a way I can get the probe to write to the event log whenever the exit code changes OR whenever the reason string changes, as long as it is in a non 'OK' state?
Failing that, is there a way I can just get the probe to write to the event log with the current reason string every time it is polled, as long as it is in a non 'OK' state?
Thanks in advance
I have developed an Intermapper (6.3.1) custom command line probe that uses python and returns detailed fault information from my 3rd party device. I can display this information in the probe status view, and use it to change the colour and state of the device icon. I can generate a descriptive custom fault string in my probe that details the active fault(s), as several different faults could all set the device to the same state, ie 'warning' on an exit code = 1
How can I write this custom string to the event log file when the various faults occur?