Service dependencies patch for self referring and 1:1 joins

John P. Rouillard rouilj at cs.umb.edu
Sat Sep 2 01:14:31 CEST 2006


Hello all:

One of the things I have wanted to do is to create servicedependencies
like:

define servicedependency{
    dependent_host_name a,b,c,d,e,f,g,h,i
    dependent_service_description sa, sb, sc, sd, se, sf, sg, sh, si, sj
    host_name SELF
    service_description SshCheck
    notification_failure_criteria c,w
}

that will be interpreted as though I had specified:

define servicedependency{
    dependent_host_name a
    dependent_service_description sa, sb, sc, sd, se, sf, sg, sh, si, sj
    host_name a
    service_description SshCheck
    notification_failure_criteria c,w
}

define servicedependency{
    dependent_host_name b
    dependent_service_description sa, sb, sc, sd, se, sf, sg, sh, si, sj
    host_name b
    service_description SshCheck
    notification_failure_criteria c,w
}

define servicedependency{
    dependent_host_name c
    dependent_service_description sa, sb, sc, sd, se, sf, sg, sh, si, sj
    host_name c
    service_description SshCheck
    notification_failure_criteria c,w
}

...
define servicedependency{
    dependent_host_name i
    dependent_service_description sa, sb, sc, sd, se, sf, sg, sh, si, sj
    host_name i
    service_description SshCheck
    notification_failure_criteria c,w
}

I found this email:

  http://thread.gmane.org/gmane.network.nagios.user/19511/focus=19511

that points to this patch:

  http://www.xney.com/nagios/nagios-2.0-servicedep.patch

that claims to do exactly what I want and may also work similarly
with:

  define servicedependency{
      dependent_servicegroup_name check_by_ssh
      host_name SELF
      service_description SshCheck
      notification_failure_criteria c,w
  }

Does anybody use this patch? It seems to greatly simplify a very
common case where you have multiple services dependent on another
service running on the SAME host.

Does anybody know if this feature is planned for nagios 3.0?

				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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