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.?