Hi
Is there a way to use Nagios REST api to schedule a downtime?
Use Nagios XI REST API to schedule downtime
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Use Nagios XI REST API to schedule downtime
Our Backend API only provides information, it cannot accept commands. Is that the API you're talking about?
http://assets.nagios.com/downloads/nagi ... nd_API.pdf
http://assets.nagios.com/downloads/nagi ... nd_API.pdf
Re: Use Nagios XI REST API to schedule downtime
Exactly that is the one I was talking about.
Re: Use Nagios XI REST API to schedule downtime
You won't be able to use the API for scheduling downtime, but you could use an external command to do it from the CLI, i.e.:
http://old.nagios.org/developerinfo/ext ... and_id=118
You can view all external nagios commands here:
http://old.nagios.org/developerinfo/ext ... ndlist.php
http://old.nagios.org/developerinfo/ext ... and_id=118
You can view all external nagios commands here:
http://old.nagios.org/developerinfo/ext ... ndlist.php
Be sure to check out our Knowledgebase for helpful articles and solutions!