Dependencies Issues

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Ticcio
Posts: 6
Joined: Tue Oct 20, 2015 10:30 am

Dependencies Issues

Post 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
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Dependencies Issues

Post 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
Be sure to check out the Knowledgebase for helpful articles and solutions!
Ticcio
Posts: 6
Joined: Tue Oct 20, 2015 10:30 am

Re: Dependencies Issues

Post by Ticcio »

Oh, well that's kinda embarassing.
Thank you for the help! Sorry for the delay!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Dependencies Issues

Post by bwallace »

Hey no worries, glad it's straightened out! I'll go ahead lock this thread now - have a good day -
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked