Service Dependencies & Wildcards

Jason Martin jhmartin at toger.us
Tue Oct 14 17:26:37 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello, I am trying to set up some bulk service dependencies and am 
having some trouble. I have a server with 50 services on it and a 
container server that runs them all. I want to make all 50 of the services 
dependent on the container server to avoid a flood of messages if the 
container goes down.  I'm trying to use a wildcard but am getting an 
error.

Here's my slightly-munged config:

define servicedependency{
        execution_failure_criteria      c,w,u
        notification_failure_criteria   c,w,u
        dependent_host                  hostA
        host_name                       hostA
        service_description             ContainerServer
        dependent_service_description   *,!ContainerServer
}

I've copied the label ContainerServer out of my services file so I am sure 
that the service ContainerServer exists. Here's the prefligh error I get:

Checking service dependencies...
Error: Dependent service specified in service dependency for service 
'*,!ContainerServer' on host 'hostA' is not defined anywhere!
Error: Dependent service specified in service dependency for service 
'*,!ContainerServer' on host 'hostA' is not defined anywhere!
        Checked 174 service dependencies.
Checking host escalations...

I don't get any errors from the services portion of the preflight check, 
and if I remove the dependency it monitors the services and 
ContainerServer just fine. 

The alternative is to write a quick script to create entries for each of
the services within the ContainerServer I suppose, but that doesn't seem
the right way to do it.  I tried looking at the source code to see where
it interpreted the wildcard but couldn't locate it.

If I put just * instead of *,!ContainerServer then the preflight 
coredumps.

Any idea what I am doing wrong? This is running Nagios 1.1 on a 
Debian-Woody machine, compiled from source.

Thanks,
- -Jason Martin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.3 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQE/jBWzl2ODWuqVSBMRArqmAJ0YiXrzS1uYzV3kMEjbD+ufGp69IQCdFEXs
AkEDutag5LE23XZlk3SsJJg=
=fP5o
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
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