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

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