Hi,
Is it possible to script scheduled downtime?
I'd like to automate a few things
Scripting
-
kyang
Re: Scripting
Hi @Phil.Pearce,
On Nagios Exchange there are actually a few scripts that can help you out. Along with a shell script example and a list of others.
https://exchange.nagios.org/directory/A ... d-Downtime
https://old.nagios.org/developerinfo/ex ... and_id=118
https://old.nagios.org/developerinfo/ex ... egory_id=6
Let us know if you have any more questions!
On Nagios Exchange there are actually a few scripts that can help you out. Along with a shell script example and a list of others.
https://exchange.nagios.org/directory/A ... d-Downtime
https://old.nagios.org/developerinfo/ex ... and_id=118
https://old.nagios.org/developerinfo/ex ... egory_id=6
Let us know if you have any more questions!
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
-
Phil.Pearce
- Posts: 52
- Joined: Fri Jul 18, 2014 7:30 am
Re: Scripting
Thanks
Im looking to automate scheduling downtime remotly, such as JSON?
I can see there are few things in the exchange, im wondering if anyone else has done this?
Im looking to automate scheduling downtime remotly, such as JSON?
I can see there are few things in the exchange, im wondering if anyone else has done this?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Scripting
As of now 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