Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

nagalert

Rating
0 votes
Favoured:
0
Current Version
1.2
Last Release Date
2013-04-10
Compatible With
  • Nagios 3.x
Owner
License
GPL
Hits
43849
Files:
FileDescription
nagalertnagalert
nagalert-multiple-nagios.shmultiple nagios server installations version
nagalert.cgiWeb interface that calls nagalert shell script - must be installed on host running nagios
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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.