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

How to exporting WMI service sensor 'Start/Restart service' using PRTG API

Votes:

0

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?

api sensor wmi wmi-service

Created on Feb 15, 2016 8:45:04 AM



2 Replies

Accepted Answer

Votes:

0

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

Created on Feb 16, 2016 1:12:58 PM by  Felix Saure [Paessler Support]



Votes:

0

It works! thanks!

Created on Mar 7, 2016 4:34:12 PM




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.