Page 1 of 1

Dependencies Issues

Posted: Fri Mar 25, 2016 9:14 am
by Ticcio
Hi!

I'm configuring my first dependencies ever and I have a few questions since they are not working.
Basically, a rough map could be this one

Code: Select all

+Host1
+-AsteriskServiceCheck
+--CallsCheck
+--ChannelsCheck
and on..

Since i have more than one host that needs this dependency I found this on the documentation:

Code: Select all

define servicedependency{
		host_name			HOST1,HOST2
		service_description		SERVICE1,SERVICE2
		dependent_service_description	SERVICE3,SERVICE4
		other dependency directives ...
		}
I tried and wrote it down:

Code: Select all

define servicedependency{
	host_name				JustAppRH01,JustAppRH02,Just-MSApp01
	service_description 			check_asterisk_calls,check_asterisk_channels,check_asterisk_sippeers,check_asterisk_iaxpeers
	dependent_service_description 	check_asterisk
	execution_failure_criteria		w,u,c,p
	notification_failure_criteria	w,u,c,p
}
But still it will send me notifications on those services, instead of just the "check_asterisk" one.

Am I writing it wrong?
Thanks for the help

Re: Dependencies Issues

Posted: Fri Mar 25, 2016 12:11 pm
by bwallace
It looks like you have it flipped. For your service_description you should only have check_asterisk defined (Note: there must be an actual service called by this name)Then place all your other services who are dependent upon check_asterisk on the line for dependent_service_description

Ex:

Code: Select all

service_description          check_asterisk
dependent_service_description    check_asterisk_calls,check_asterisk_channels,check_asterisk_sippeers,check_asterisk_iaxpeers

Re: Dependencies Issues

Posted: Wed Mar 30, 2016 5:14 am
by Ticcio
Oh, well that's kinda embarassing.
Thank you for the help! Sorry for the delay!

Re: Dependencies Issues

Posted: Wed Mar 30, 2016 10:28 am
by bwallace
Hey no worries, glad it's straightened out! I'll go ahead lock this thread now - have a good day -