Scheduled Downtime

nagalert

Description:

If you require an easy way of disabling nagios alerts temporarily whilst carrying out work then you can either roll this script out to all of your boxes or add it to something like an existing tomcat/apache start up script so when issuing a tomcat stop/start it runs these components to auto disable alerts

./nagalert stop {10M|10H|10D) {hostname}
./nagalert start
———————————-
stop value ie 10S for 10 Seconds
stop value ie 10M for 10 Minutes
stop value ie 10H for 10 Hours
stop value ie 10D for 10 Days
———————————-

This will then schedule downtime on the host that it is running on

The last value – hostname is optional and can be left out if its the current host otherwise with a given hostname it will try disable alerts for the given hostname..

/etc/init.d/nagalert start {hostname}

now works – it should enable the current hostname if no hostname given after start or enable given hostname if provided one – by finding the downid’s in the downtime page of nagios and parsing the html to make up links.

Current Version

1.2

Last Release Date

2013-04-10

Compatible With

  • Nagios 3.x

License

GPL


Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Project Files
Project Notes
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
44,240