hosts dependancies not working

Ralf Gross Ralf-Lists at RalfGross.de
Mon Dec 6 14:30:03 CET 2004


Hi,

I'm trying to set up host dependencies for a couple of of hosts behind
routers/firewalls.
define hostdependency{
        hostgroup_name        test
        dependent_host_name   router1,fw,router2
        notification_failure_criteria   d,u,o
        }

The group test contains 2 hosts behind a router. To test the dependency I
created a iptables rule that first rejects icmp packets from router1 and
later, when router1 is down, rejects packets from hosts in the hostgroup.
The dependeny is also displayed in the cgi interface (view config).

The logfile shows the following:

HOST ALERT: router1;DOWN;SOFT;1;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: router1;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: router1;DOWN;SOFT;3;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: router1;DOWN;SOFT;4;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: router1;DOWN;SOFT;5;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: router1;DOWN;SOFT;6;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: router1;DOWN;SOFT;7;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: router1;DOWN;SOFT;8;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: router1;DOWN;HARD;9;CRITICAL - Plugin timed out after 10 seconds
SERVICE ALERT: router1;PING;CRITICAL;HARD;1;CRITICAL - Plugin timed out
after 10 seconds
Ok, the dependent host is down. Now I started blocking icmp packets from
the client test1 behinde router1:
HOST ALERT: test1;DOWN;SOFT;1;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: test1;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: test1;DOWN;SOFT;3;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: test1;DOWN;SOFT;4;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: test1;DOWN;SOFT;5;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: test1;DOWN;SOFT;6;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: test1;DOWN;SOFT;7;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: test1;DOWN;SOFT;8;CRITICAL - Plugin timed out after 10 seconds
HOST ALERT: test1;DOWN;HARD;9;CRITICAL - Plugin timed out after 10 seconds
HOST NOTIFICATION: Gross;test1;DOWN;host-notify-by-sms;CRITICAL - Plugin
timed out after 10 secondsHOST NOTIFICATION: Gross;test1;DOWN;notify-by-winpopup;CRITICAL - Plugin
timed out after 10 secondsHOST NOTIFICATION: Gross;test1;DOWN;host-notify-by-email;CRITICAL - Plugin
timed out after 10 secondsSERVICE ALERT: test1;PING;CRITICAL;HARD;1;CRITICAL - Plugin timed out
after 10 seconds
Host test1 is down and the dependent host router1 too! No host
notifications should be sent out, or am I wrong?
Any ideas what I might be doing wrong?


One more question. I'm using o as Option for
notification_failure_criteria. Is that necessary to supress recovery
notifications, or is d,u sufficient?
Thanks, Ralf






-------------------------------------------------------
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://productguide.itmanagersjournal.com/
_______________________________________________
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