TOP LEVEL CATEGORIES
EXPLORE
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
Owner
Vahid Hedayati
Website
https://github.com/vahidhedayati
Download URL
https://github.com/vahidhedayati/nagalert
License
GPL
multiple nagios server installations version
Web interface that calls nagalert shell script - must be installed on host running nagios
You must be logged in to submit a review.
Your review has been submitted and is pending approval.
To:
From:
Your recommendation has been sent.