Service dependencies not working as I would think?

C. Bensend benny at bennyvision.com
Mon Feb 14 00:41:06 CET 2005


Hey folks,

   So, after an unintentional barrage of alerts, I started playing
around with service dependencies.  I do an awful lot of checks using
check_by_ssh, so I'd like to set up dependencies for other services
that depend on ssh.  Simple, I would think.

In my dependencies.cfg (this is Nagios 1.2):

# Servicedependency definition
define servicedependency{
        host_name                       neutron
        service_description             ssh
        dependent_host_name             neutron
        dependent_service_description   postgresql
        execution_failure_criteria      w,u,c ; These are the criteria
                                              ; for which check execution
                                              ; will be supressed
        notification_failure_criteria   w,u,c ; These are the criteria
                                              ; for which notifications
                                              ; will be supressed
        }

   For the above host (neutron), I use check_by_ssh to execute
check_pgsql locally.  So, with the above config, I would think that
if ssh goes away, the postgresql service will not be tested and will
not alert.

   To test, I killed ssh on neutron, and watched what happened -
and to my dismay, Nagios alerted on both ssh and postgresql.  :(
The "view config" in the web interface seems to show the dependency
set up correctly - what the heck am I missing?

Thanks!

Benny


-- 
"I'm so Goth, my wrists slit themselves."
                                                  -- bash.org



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&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