service dependencies

Eric Blumenau eblumenau at techtvcorp.com
Tue Mar 23 01:11:51 CET 2004


Hello,
 I'm trying to incorporate service dependencies into my service checks.  
Here is my only dependency so far:

define servicedependency {
 host_name                       serveriron
 service_description             Aliveness
 dependent_host_name             adm1
 dependent_service_description   *
 execution_failure_criteria      w,u,c
 notification_failure_criteria   w,u,c
}

/* Translation: If our connection to the outside world isn't alive, 
don't bother executing or notifying the rest of the checks. */

 When I use 'nagios -v' on my config file, I get:
<snip>
Checking service dependencies...
Error: Service specified in service dependency for service 'disk space 
on /' on host 'adm1' is not defined anywhere!
Error: Service specified in service dependency for service 'disk space 
on /' on host 'adm1' is not defined anywhere!
Error: Service specified in service dependency for service '/tmp disk 
space on adm1-colo' on host 'adm1' is not defined anywhere!
Error: Service specified in service dependency for service '/tmp disk 
space on adm1-colo' on host 'adm1' is not defined anywhere!
<snip>

 And many more lines, where each existing service check on adm1 gets 
repeated twice.  Yet, they *are* all defined, earlier in the same file!

# Service definition
define service{
       use                             24x7-service            ; Name of 
service template to use
       host_name                       adm1
       service_description             disk space on /
       is_volatile                     0
       max_check_attempts              3
       normal_check_interval           5
       retry_check_interval            1
       contact_groups                  defcon5
       notification_interval           30
       notification_options            w,u,c,r
       check_command                   check_disk!95 98 /dev/dsk/c0t0d0s0
       }

where '24x7-service' is defined at the head of the file as...
define service{
       name                            24x7-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 thi
s 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
       check_period                    24x7
       notification_period             24x7
       register                        0       ; DONT REGISTER THIS 
DEFINITION - ITS NOT A REAL SERVICE, JUS
T A TEMPLATE!
       }


 The service checks themselves have been in production use for many 
months, so I'm pretty confident that the services are defined 
correctly.  I'm using Nagios 1.0.  I've searched this mailing list, and 
the Web, but haven't found this problem or a solution.

Thanks,
Eric





-------------------------------------------------------
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