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!


Article Comments

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.


Mar, 2021 - Permalink