Hi

We try to monitor the programm version of installed products on a system trough powershell/xml sensors. Below is the Output from the Script. In PRTG the value is always 0. How can we display this value in a channel? Is it even possible with this kind of value? <prtg> <result> <channel>Version</channel> <CustomUnit>v</CustomUnit> <value> 9.4.15.2827462 </value> </result> </prtg>

Thanks for your help, Mario


Article Comments

Hi there,

Unfortunately, you can't display this value in a channel as it has multiple separation points. You can however display it in the sensors message: <prtg> <result> <channel>Version</channel> <CustomUnit>v</CustomUnit> <value> 0 </value> <text>9.4.15.2827462</text> </result> </prtg>

Best regards.


Jun, 2017 - Permalink

Hi

Thanks for your answer, this works. Ive tried to add the status with the <warning> tag which is working, but its not displaying the text. The status changes to orange but just displaying "OK" in the gui.

I got this from the forum here on paessler (https://helpdesk.paessler.com/en/support/solutions/articles/59881-custom-sensor-error-message): you can define the limit in your sensor-script and set the result to 'warning' by using the '<warning>1</warning>' in your result-set and return the message you want to return as '<text>your message here</text>'. This is fine to get a changed state AND the value AND a custom message in one.

What am i missing? Thanks.

<prtg> <result> <channel>Version</channel> <CustomUnit>#</CustomUnit> <warning>1</warning> <text>10.0.9.3917699</text> </result> </prtg>


Jul, 2017 - Permalink

Hi there,

The issue is, that the "warning" and "text" tags have to be outside of the "result" tag:

 <prtg>
                <result>
                    <channel>Version</channel>
                    <CustomUnit>#</CustomUnit>	
                </result>
                <warning>1</warning>
                <text>10.0.9.3917699</text>
</prtg>


Best regards.


Jul, 2017 - Permalink