Greetings,
I'm using Nagios to monitor a localhost running CentOS. I have enabled the following features in my config files in an attempt to allow email notifications:
1. Notifications enabled in main nagios.cfg file, as evidenced:
# NOTIFICATIONS OPTION
# This determines whether or not Nagios will sent out any host or
# service notifications when it is initially (re)started.
# Values: 1 = enable notifications, 0 = disable notifications
enable_notifications=1
2. flap-detection-enabled set to 0 in generic_host template and generic_service template (no further overrides of this setting in objects inheriting from these templates)
3. Notification_period on template 'linux_server' (default template for localhost object) set to 24x7
4. notifications_enabled set to 1 in all previously mentioned templates and within the specific service "MyDocs Age Check 7", as evidenced:
define service{
use local-service
host_name localhost
service_description MyDocs Age Check7
check_command check_file_ages_in_directory!"/home/nagios/Documents /home/nagios/Downloads"
notifications_enabled 1
contacts dburt
}
5. Further, I have received confirmation from the Nagios CGI that notifications were triggered for my alert:
Service Notifications
Last Updated: Fri Feb 7 12:10:34 CST 2014
Nagios® Core™ 4.0.2 -
www.nagios.org
Logged in as nagiosadmin
View History For This Service
View Trends For This Service
Service 'MyDocs Age Check7' On Host 'localhost'
Latest Archive
Latest Archive
Log File Navigation
Fri Feb 7 00:00:00 CST 2014
to
Present..
File: /usr/local/nagios/var/nagios.log
Notification detail level for this service:
Older Entries First:
Host Service Type Time Contact Notification Command Information
localhost MyDocs Age Check7 CRITICAL 02-07-2014 11:48:05 dburt notify-service-by-email CRITICAL: 2dir(s) -- /home/nagios/Documents/Test2: 18hrs /home/nagios/Documents/Test: 22hrs /home/nagios/Documents: 2 files /home/nagios/Downloads/Test2: 22hrs /home/nagios/Downloads: 1 files
localhost MyDocs Age Check7 CRITICAL 02-07-2014 11:48:05 nagiosadmin notify-service-by-email CRITICAL: 2dir(s) -- /home/nagios/Documents/Test2: 18hrs /home/nagios/Documents/Test: 22hrs /home/nagios/Documents: 2 files /home/nagios/Downloads/Test2: 22hrs /home/nagios/Downloads: 1 files
as well as in the nagios.log file:
[1391795285] SERVICE NOTIFICATION: nagiosadmin;localhost;MyDocs Age Check7;CRITICAL;notify-service-by-email;CRITICAL: 2dir(s) -- /home/nagios/Documents/Test2: 18hrs /home/nagios/Documents/Test: 22hrs /home/nagios/Documents: 2 files /home/nagios/Downloads/Test2: 22hrs /home/nagios/Downloads: 1 files
[1391795285] SERVICE NOTIFICATION: dburt;localhost;MyDocs Age Check7;CRITICAL;notify-service-by-email;CRITICAL: 2dir(s) -- /home/nagios/Documents/Test2: 18hrs /home/nagios/Documents/Test: 22hrs /home/nagios/Documents: 2 files /home/nagios/Downloads/Test2: 22hrs /home/nagios/Downloads: 1 files
so my question....
Is this a problem with Nagios?? (which appears to believe it sent an email)
or can I safely assume Nagios has done its job, and this is a problem somewhere else? (firewalls, mail servers, etc.)
btw - it's not a spam filter on my email account, I'm using Gmail's "All Mail" folder.
Thanks!
Dan