Problem with dependencies

Falcifer falcifer2001 at yahoo.es
Sat Jan 1 16:22:04 CET 2005


I want to test the service dependencies feature of nagios but i cant.
When I put iptables -A INPUT -p udp --source-port 53 -j DROP
nagios 2.0b1 send me 2 notifications and i think that i only must see
DNS notificaction

other question: When UNKNOW state is set in one service???

define service{
        name                            generic-service ; The 'name' of
this service template
        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
        failure_prediction_enabled      1       ; Failure prediction 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
        notification_options            w,u,c,r
        register                        0       ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
        }

define service{
        use                             generic-service         ; Name
of service template to use
        host_name                       google
        service_description             PING
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              2
        normal_check_interval           1
        retry_check_interval            1
        contact_groups                  admins
        notification_interval           960
        notification_period             24x7
        notifications_enabled           1
        check_command                   check_ping!100.0,20%!500.0,60%
        }
define service{
        use                             generic-service         ; Name
of service template to use
        host_name                       DNSserver
        service_description             DNS
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              2
        normal_check_interval           1
        retry_check_interval            1
        contact_groups                  admins
        notification_interval           960
        notification_period             24x7
        check_command                   check_google
        }

define servicedependency{
        host_name                       DNSserver
        service_description             DNS
        dependent_host_name             google
        dependent_service_description   PING
        execution_failure_criteria      w,u,c
        notification_failure_criteria   w,u,c
}


define command{
        command_name    check_ping
        command_line    $USER1$/check_ping -H www.google.es -w $ARG1$ -c
$ARG2$ -p 5
        }
define command{
        command_name    check_google
        command_line    $USER1$/check_dns -H www.google.es -s
212.21.224.5
        }







-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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