no service notification

Danny Russell drussell at mpifix.com
Tue Dec 27 17:38:46 CET 2005


What version of Nagios are you running?

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of
mario at bortal.de
Sent: Monday, December 26, 2005 12:44 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] no service notification

Hello List!

Nagios only sends me a mail when my host is completly down, but not when
a
service fails and i wonder why.

Here are my settings.


nagios.cfg
-----------------
log_notifications=1
enable_notifications=1



contacts.cfg
----------------------
define contact{
        contact_name                    myname
        alias                           Linux Admin
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,u,r
        service_notification_commands   notify-by-email,notify-by-epager
        host_notification_commands     
host-notify-by-email,host-notify-by-epager
        email                           my at mail.de
        pager                           my at 2ndmail.de
}



services.cfg:
--------------------
define service{
        ; The 'name' of this service template, referenced in other
service
definitions
        name                            generic-service
        active_checks_enabled           1
        passive_checks_enabled          0
        parallelize_check               1
        obsess_over_service             1
        check_freshness                 0
        notifications_enabled           1
        event_handler_enabled           1
        flap_detection_enabled          1
        process_perf_data               1
        retain_status_information       1
        retain_nonstatus_information    1

        register                        0
        }

# Service definition
define service{
        use                             generic-service

        host_name                       localmachine
        service_description             PING
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  mygroup
        notification_interval           5
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                   check_ping!100.0,20%!500.0,60%
        }

########################################################################
########

# Service definition
define service{
        use                             generic-service         ; Name
of
service template to use

        host_name                       localmachine
        service_description             SMTP
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           3
        retry_check_interval            1
        contact_groups                  mygroup
        notification_interval           5
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                   check_smtp
        }

LOG:
[1135617697] SERVICE ALERT: localmachine;SMTP;CRITICAL;SOFT;1;Connection
refused
[1135617757] SERVICE ALERT: localmachine;SMTP;CRITICAL;SOFT;2;Connection
refused
[1135617817] SERVICE ALERT: localmachine;SMTP;CRITICAL;HARD;3;Connection
refused


Anyone any idea?
Thanks a lot, Mario



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list