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

PRTG Network Monitor

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

Free Download

Top Tags


View all Tags

RESTful one-time-maintenance window

Votes:

0

Your Vote:

Up

Down

Hi Is it possible to schedule a one time maintenance windows with the RESTful API? I cannot see any object manipulation command to do this. It not, this would make a nice addition to your wishlist. Thanks, Jon

api maintenance-window rest

Created on Nov 24, 2014 8:30:30 AM by  runnane (0) 1



5 Replies

Votes:

2

Your Vote:

Up

Down

The first thing to do is to manually break the SCHEDULES, DEPENDENCIES, AND MAINTENANCE WINDOW inheritance of the object.

You can now set the maintenance window with following API calls:

SET STARTTIME

/api/setobjectproperty.htm?id=id_of_object&name=maintstart&value=2014-11-24-12-00

SET ENDTIME

/api/setobjectproperty.htm?id=id_of_object&name=maintend&value=2014-11-24-15-00

ENABLE WINDOW

/api/setobjectproperty.htm?id=id_of_object&name=maintenable&value=1

This will set and activate a maintenance window on 2014-11-24 between 12:00 and 15:00 for the given object and its child objects.

Created on Nov 24, 2014 1:05:09 PM by  PRTG Tools Family [prtgtoolsfamily.com] (13,193) 3 4

Last change on Nov 24, 2014 3:34:31 PM by  Torsten Lindner [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hi,

"The first thing to do is to manually break the SCHEDULES, DEPENDENCIES, AND MAINTENANCE WINDOW inheritance of the object."

Is there a way to do this via the API ? Also i've checked Lord Milko PrtgAPI module, can't find any solution with Set-ObjectProperty (raw or not ... ) , seems the command returning no error but do nothing (InheritDependancy always on True statement)

If not possible do do this via API command (and only manually) althought "SET STARTTIME" "SET ENDTIME" and "ENABLE WINDOW" possible ...

Thanks.

Nicolas

Created on Jul 9, 2020 3:49:45 PM by  Nicolas_Baler (0)



Votes:

0

Your Vote:

Up

Down

Nicolas,

We do not allow inheritance to be changed via API.

Benjamin Day
[Paessler Support]

Created on Jul 9, 2020 11:55:13 PM by  Benjamin Day [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hi Benjamin,

Thanks for your quick reply, althought it ruined my day ... ;-)

Basically was trying to apply automatic scheduled one-time maintenance trought an Outlook calendar (Outlook API) All was working well and automatized, except the last part ...

Maybe was thinking to apply those scheduled maintenances by "simply" pausing the sensor/probe (no need to break inheritance in this case ...)

Nicolas

Created on Jul 10, 2020 2:49:52 PM by  Nicolas_Baler (0)



Votes:

0

Your Vote:

Up

Down

Nicolas,

Sorry to be the bearer of bad news,

Benjamin Day
[Paessler Support]

Created on Jul 10, 2020 10:07:09 PM by  Benjamin Day [Paessler Support]



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.