Hi Mike,
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