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

Get Maintenance Mode status from API

Votes:

0

Your Vote:

Up

Down

Is it possible to see whether or not maintenance mode is active on a given device via the API? I cannot find it mentioned in the documentation. Thanks!

api http-api maintenance-window prtg-api rest-api

Created on Mar 15, 2021 4:48:09 PM by  dclarsen (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

Hello,

Thank you for your message.

Regarding the maintenance, you have the possibility to check both Schedule and Maintenance window* option by using the corresponding API call:

  • Schedule
https://PRTGServer/api/getobjectproperty.htm?id=SensorID&name=schedule&show=text&username=PRTGUser&passhash=Passhash
  • Maintenance window
https://PRTGServer/api/getobjectproperty.htm?id=SensorID&name=maintenable&show=text&username=PRTGUser&passhash=Passhash

Please, replace the words PRTGServer/SensorID/PRTGUser/Passhash according to your configuration.

In case you desire to work with raw data, for example get 0 when maintenance window is disabled, then simply remove &show=text from the request.

If you have further questions, let us know.

Regards.

Created on Mar 16, 2021 11:22:21 AM by  Florian Lesage [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.