Nagios : Notification Setting2016/06/08
This is the Email Notification Settings section.
It is enabled on some items by default but if you change it, configure like follows.
|||Set notification recipients. And aldo Nagios sends notifications with mail command, so install it.|
# line 26: set recipient email address
systemctl restart nagios3
|||It's possible to change notification setting on Nagios admin site.
Login to it and click "Services", then services list is displayed. The icons which are displayed near a service name are just the one which notification is disabled. (HTTP and SSH corresponds to the example below) To enable notification on a service, click service name first.
|||Click "Enable notifications for this service".|
|||Click "Commit" button.|
|||It's OK to set the notification.|
|||If notification is enabled and a service has some troubles, the notification like follows are sent to the recipients you set.|
Subject: ** PROBLEM Service Alert: localhost/SSH is CRITICAL ** To: <root@localhost> X-Mailer: mail (GNU Mailutils 2.99.99) Message-Id: <20160609020011.5636A15FBBD@dlp.srv.world> Date: Thu, 9 Jun 2016 11:00:11 +0900 (JST) From: firstname.lastname@example.org ***** Nagios ***** Notification Type: PROBLEM Service: SSH Host: localhost Address: 127.0.0.1 State: CRITICAL Date/Time: Thu Jun 9 11:00:11 JST 2016 Additional Info: connect to address 127.0.0.1 and port 22: Connection refused