New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


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

Votes:

0

Your Vote:

Up

Down

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 by  ACDuindam (0) 1



2 Replies

Accepted Answer

Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

It works! thanks!

Created on Mar 7, 2016 4:34:12 PM by  ACDuindam (0) 1



Please log in or register to enter your reply.


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.