I use <our prtg server name> /api/table.xml?content=sensors&columns=objid,probe,group,device,sensor,type,status,comments&count=50000'

Exporting sensor information to xml is a great way to check if all settings are according our standards. We import them in SQL and have good info about status, intervals, comments and so on.

But I cannot find the API column containing the option 'start/restart service' that is possible to set for a WMI service. It would be of great help for us! Is there an other way to export this information for these types of sensors?


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

Hi,

It's possible to get this option with the call

/api/getobjectproperty.htm?id=SensorID&name=restart

This will return a "1" if the service will be restarted and a "0" if not.

Best regards, Felix


Feb, 2016 - Permalink

It works! thanks!


Mar, 2016 - Permalink