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
44220
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
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!
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.