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


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,232