Hi I have a Powershelscript that monitor a SAN system. A portion of the XML output, seen here .:
<result> <channel> Unfixed errors in the system </channel> <value> 2 </value> <Down> 1 </Down> <LimitMinError>1</LimitMinError> <LimitMode>1</LimitMode> <LimitErrorMsg> TEST ERROR besked </LimitErrorMsg> </result>
My problem is that I would like to have defined DOWN message when the value is 2 or higher than 0. I have also tried with
<Warning> 1 </ Warning>
Instead of <Down>, in my script. When set to Warning, then comes the script fine with a warning, but the channel is still green. In PRTG is this channel value shown correctly, like 2.
How can I best define a DOWN message in my script.?
Hello, thank you for your inquiry.
Please note that there is no <down> </down> tag within PRTG. It also seems that you've used <LimitMinError> which defines a lower error limit for the channel. For an upper error limit you must use <LimitMaxError>.
Please take a look into the following post as it describes a similar situation/case.
The complete documentation for Custom Sensors can be found within PRTG under Setup > PRTG API > (Custom Sensors) tab.
Best Regards,
Oct, 2015 - Permalink