What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Single software version check on multiple servers

Votes:

0

Is there a sensor I can use to monitor software version and flag if it doesn't match? I'm kind of thinking i would have to edit the server or script to specify the "green" value, then if the 20 servers I have are different it would display as red.

powershell prtg wmi

Created on Mar 30, 2021 9:18:49 AM

Last change on Mar 30, 2021 10:31:46 AM by  Florian Lesage [Paessler Support]



3 Replies

Votes:

0

Hello,

Thank you for your message.

Regarding what you would like to achieve, I'm afraid that it's not possible to do so natively as PRTG only supports integer or float values.

However, you have the possibility to get the firmware version of your devices by using the [[https://www.paessler.com/manuals/prtg/snmp_custom_string_sensor|SNMP Custom String sensor] for example, and then have a custom script to get and all sensors message, with the API call below:

https://PRTGSERVER/api/table.json?content=sensors&columns=objid,name,probe,device,message&count=*&filter_objid=SENSORID&username=PRTGUSER&passhash=PASSHASH

You can then process the data and return it via an EXE/Script Advanced sensor, all your devices (as channel) with the status Up to date / To update (with a custom lookup).

If you have questions, let us know.

Regards.

Created on Mar 30, 2021 11:14:44 AM by  Florian Lesage [Paessler Support]



Votes:

0

Somthing like this is what id be after wmic product where "name like 'mysoftwarename %%'" GET Version

This works and returns the version in cmd

Just tried it as a WQL but its a fail

Created on Mar 30, 2021 12:55:37 PM



Votes:

0

Thank you for your feedback.

What query do you use? Does it follow the indication in our KB article https://kb.paessler.com/en/topic/2743-how-do-i-create-a-wmi-custom-sensor ?

Here is a request which returns the version of a software:

Select Version from Win32_product WHERE Name='SoftwareName'

You can get a list of all software by using the PowerShell command Get-WmiObject -Class "Win32_Product"

Regards.

Created on Mar 30, 2021 1:40:42 PM by  Florian Lesage [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.