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

Plan maintenance window via API

Votes:

0

Hi everybody,

i'm taking a first look on PRTG and am quite impressed so far. Currently I'm trying to use the API. As I am a web developer I am familiar with HTTP requests and GET parameters. I already tried to rename an object via the API and it works well. Now I was wondering if it's possible to plan a maintenance window respectivele a planned downtime by using the API, e.g.

https://myIP/api/setobjectproperty.htm?id=myID&name=maintenance&sdate=xxxx&edate=xxxx or https://myIP/api/setobjectproperty.htm?id=myID&name=newdowntime&sdate=xxxx&edate=xxxx

In addition I am missing an overview where I could see all property values I could use (e.g. Host, Name, etc.). If it is already existing I wasn't able to find it :-(

Can somebody help me with this issue?

Kind regards, Stefanie

api maintenance planned-downtime prtg schedule

Created on Sep 2, 2013 7:40:36 AM



3 Replies

Votes:

0

With the API you cannot schedule maintenance directly for the device or the sensor but you can pause sensors for a duration or indefinitely and then resume them with the API as well. See the documentation in your web interface for the syntax.

Created on Sep 2, 2013 4:21:02 PM by  Greg Campion [Paessler Support]



Votes:

0

Hi Greg,

thanks for your reply. I'll give it a try but would be a nice feature for the future :-)

Kind regards, Stefi

Created on Sep 3, 2013 5:36:08 AM



Votes:

1

After discussing the request with the API developer, it seems that this is possible but somewhat difficult as you need three calls to set that data.

http://server/api/setobjectproperty.htm?id=IDOFSENSOR&name=maintenable&value= 0 or 1

http://server/api/setobjectproperty.htm?id=IDOFSENSOR&name=maintend&value=(Date in the format  YYYY-MM-DD-HH-MM-SS)

http://server/api/setobjectproperty.htm?id=IDOFSENSOR&name=maintstart&value=(Date in the format  YYYY-MM-DD-HH-MM-SS)

Created on Sep 4, 2013 1:48:07 PM by  Greg Campion [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.