You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

https://nagios02.slac.stanford.edu/

Acknowledging Alerts

By acknowledging an alert for a host or service, you can keep nagios from sending out notifications for the problem (although it will continue to probe the host/service). 

Alerts are acknowledged from the command-line via remctl.  remctl is a Kerberos-based client-server protocol that provides authenticated per-user/principle access to specific backend commands; in this case, the back end is a locally-maintained script that allows users to interact with nagios directly.  This generally works as so:

This generally works as so:

# Acknowledge an alert; stop sending emails       
remctl -p 46157 nagios02.slac.stanford.edu nagios ack host HOSTNAME COMMENT 
remctl -p 46157 nagios02.slac.stanford.edu nagios ack service HOSTNAME SERVICENAME COMMENT 

# Pre-emptively mark a host/service as down, don't contact for a while 
remctl -p 46157 nagios02.slac.stanford.edu nagios downtime host HOSTNAME HOURS COMMENT 
remctl -p 46157 nagios02.slac.stanford.edu nagios downtime service HOSTNAME SERVICENAME HOURS COMMENT     

# Tell nagios to run the check for this host/service in MINUTES minutes        
remctl -p 46157 nagios02.slac.stanford.edu nagios schedule host HOSTNAME MINUTES COMMENT
remctl -p 46157 nagios02.slac.stanford.edu nagios schedule service HOSTNAME SERVICENAME MINUTES COMMENT         

# Help documents and man pages 
remctl -p 46157 nagios02.slac.stanford.edu nagios help
remctl -p 46157 nagios02.slac.stanford.edu nagios man   
  • No labels