Multi-level service dependencies... not working

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Tue Jun 17 09:16:30 CEST 2003


Dear Sir,

On Tue, Jun 17, 2003 at 08:41:00AM +0200, Tom DE BLENDE wrote:
> Gentlemen,
> 
> I hope I can be the bringer of good news. I had the same problem back 
> in the Netsaint days. The issue is indeed what mister Hopcroft is 
> referring to: service dependencies only seem to work when the service 
> is in a hard state.
> 
> However, there is a setting you can add to your nagios.cfg:
> 
> soft_state_dependencies=1
> 
> This should solve your problems as Nagios will now act upon soft 
> service states as well. It worked for me.
> 
> Hope this works out for you.
> 
> Tom
> 

Unfortunately, it _may_ not work.

tsitc> grep -i depend /usr/local/nagios/etc/nagios.cfg
# Set 'soft_state_dependencies' option for _via_provider checks (these 
depend
# should not give false positives if the dependencies are in soft 
states).
cfg_file=/usr/local/nagios/etc/dependencies.cfg
# SOFT SERVICE DEPENDENCIES
# This option determines whether or not Nagios will use soft service 
state information when checking service dependencies.
# Normally Nagios will only use the latest hard service state when 
checking dependencies.
soft_state_dependencies=1
tsitc>

Even with this set, the boundary case is for A <= B (service A relies on
B; B is a dependency): if B has failed but has not been checked and
therefore detected as failed - whether a hard or soft failure, then the
service check of A will be handled as it would if there were _no_
dependency.

Other than a test bench set up, it is is not clear to me how to proceed 
furher.

Yours sincerely.

-- 
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.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