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

Get Maintenance Mode status from API

Votes:

0

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



1 Reply

Votes:

0

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]




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.