Host and Service notification

Thomas Braun tb at westend.com
Tue Mar 16 12:17:40 CET 2004


Hi,

i have a host which is sometimes unreachable  over SMTP , in the same
time it is reachable over ICMP.  If i restart this Host, i get first a
SMTP service alert message an than a Host-Down, Host-UP alert message .
But i dont get an SMTP-Service recovery message, how can i change this
behavior.
i want to get a service recovery-message in any case.  Is this possible?

Thanks for your help.


enclosed the Service definition and the Host definition:
define host{
                use generic-host
                host_name mail.example.com
                alias mail.example.com
                address X.X.X.X
                check_command check-host-alive
                max_check_attempts 3
                notification_interval 120
                notification_period 24x7
                notification_options r,d,u
}

define service{
                use     generic-service
                host_name      mail.example.com
                service_description     SMTP
                is_volatile     0
                check_period    24x7
                max_check_attempts      3
                normal_check_interval   3
                retry_check_interval    1
                contact_groups  sms
                notification_interval   120
                notification_period     24x7
                notification_options    r,c,w
                check_command   check_smtp
                }

define service{
        name                            generic-service ; The 'name' of
this service template, referenced in other service definitions
        active_checks_enabled           1       ; Active service checks
are enabled
        passive_checks_enabled          1       ; Passive service checks
are enabled/accepted
        parallelize_check               1       ; Active service checks
should be parallelized (disabling this can lead to major performance
problems)
        obsess_over_service             1       ; We should obsess over
this service (if necessary)
        check_freshness                 0       ; Default is to NOT
check service 'freshness'
        notifications_enabled           1       ; Service notifications
are enabled
        event_handler_enabled           1       ; Service event handler
is enabled
        flap_detection_enabled          1       ; Flap detection is enabled
        process_perf_data               1       ; Process performance data
        retain_status_information       1       ; Retain status
information across program restarts
        retain_nonstatus_information    1       ; Retain non-status
information across program restarts

        register                        0       ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
        }

define host{
        name                            generic-host    ; The name of
this host template - referenced in other host definitions, used for
template recursion/resolution
        notifications_enabled           1       ; Host notifications are
enabled
        event_handler_enabled           1       ; Host event handler is
enabled
        flap_detection_enabled          1       ; Flap detection is enabled
        process_perf_data               1       ; Process performance data
        retain_status_information       1       ; Retain status
information across program restarts
        retain_nonstatus_information    1       ; Retain non-status
information across program restarts

        register                        0       ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
        }







cu thomas







-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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