If you are into systems and datacenter's and are using Nagios as your monitoring tool then this article will be useful for you.
During my stint with one of the organisations I worked with, there were situations where we need to perform certain tasks like
- Enable / Disable Notifications for hosts
- Enable / Disable Notifications for all the services of a particular host.
- Deleting Scheduled downtimes for services.
- Deleting Scheduled downtimes for hosts.
- Disable Notifications for host group
- Enable Notifications for host group
What you need to do is
Link to scripts
Your feedback is welcome and let me know incase it doesn't work for you.
During my stint with one of the organisations I worked with, there were situations where we need to perform certain tasks like
- Enable / Disable Notifications for hosts
- Enable / Disable Notifications for all the services of a particular host.
- Deleting Scheduled downtimes for services.
- Deleting Scheduled downtimes for hosts.
- Disable Notifications for host group
- Enable Notifications for host group
What you need to do is
- Login with root / Nagios user
- Ensure that the nagios command file is at the below location : /usr/local/nagios/var/rw/nagios.cmd
- If its not there, find the appropriate location and edit the scripts accordingly.
Link to scripts
Your feedback is welcome and let me know incase it doesn't work for you.