Nagios XI Execution Dependency via GUI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Nagios XI Execution Dependency via GUI

Post by JakeHatMacys »

Hello, I'd like to set up an Execution dependency on a Service Monitor that depends on the host being in a good / green state before running. Not really seeing how to do this via the GUI in Nagios XI. Does anyone have a doc or can point in the direction on how to do this with XI? Or is this something that has to be configured in Core???
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Execution Dependency via GUI

Post by lmiltchev »

You can add a service dependency by going to: CCM->Advanced->Service Dependencies->Add New

Note: For more info, select "execution_failure_criteria" from the "Help & Documentation" drop-down menu. You can also review the Nagios Core documentation on host and service dependencies here:

http://nagios.sourceforge.net/docs/nagi ... ncies.html

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Nagios XI Execution Dependency via GUI

Post by JakeHatMacys »

Thanks that did help, I still haven't quite got it to work yet though. Maybe I'm reading this wrong. But I want the URL Content check to not run once I take down the URL:
You do not have the required permissions to view the files attached to this post.
Last edited by JakeHatMacys on Tue Nov 11, 2014 8:53 am, edited 1 time in total.
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Nagios XI Execution Dependency via GUI

Post by JakeHatMacys »

This is my current config. The URL Content is set under the "Manage Services" (I don't want it to run when dependency is crit) and the URL is set in the Manage Service Dependency tab. I take down the URL and the URL content still runs when the URL is in a critical state.

Any ideas? Am I interpreting this wrong?
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Execution Dependency via GUI

Post by lmiltchev »

Go to the CCM->Service Dependencies, click on the "View Text Config" next to "Service Dependency Test", copy/paste your config, so that we can take a look at it.
Be sure to check out our Knowledgebase for helpful articles and solutions!
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Nagios XI Execution Dependency via GUI

Post by JakeHatMacys »

define servicedependency {
dependent_host_name mt000xsksm105
dependent_service_description HTTP
host_name mt000xsksm105
service_description _SiteScope_Content URL Content
inherits_parent 1
execution_failure_criteria w,u,c,p,
notification_failure_criteria w,u,o,p,
dependency_period 24x7

}
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Execution Dependency via GUI

Post by lmiltchev »

Aren't these reversed?

You have:

Code: Select all

dependent_service_description HTTP //This directive is used to identify the description of the dependent service.
service_description _SiteScope_Content URL Content // This directive is used to identify the description of the service that is being depended upon (also referred to as the master service)
I believe, you need to have:

Code: Select all

dependent_service_description _SiteScope_Content URL Content
service_description HTTP
Be sure to check out our Knowledgebase for helpful articles and solutions!
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Nagios XI Execution Dependency via GUI

Post by JakeHatMacys »

lmiltchev wrote:Aren't these reversed?

You have:

Code: Select all

dependent_service_description HTTP //This directive is used to identify the description of the dependent service.
service_description _SiteScope_Content URL Content // This directive is used to identify the description of the service that is being depended upon (also referred to as the master service)
I believe, you need to have:

Code: Select all

dependent_service_description _SiteScope_Content URL Content
service_description HTTP
So you're saying:

define servicedependency {
dependent_host_name mt000xsksm105
dependent_service_description _SiteScope_Content URL Content
host_name mt000xsksm105
service_description HTTP
inherits_parent 1
execution_failure_criteria w,u,c,p,
notification_failure_criteria w,u,o,p,
dependency_period 24x7

}

Trying this now
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Execution Dependency via GUI

Post by lmiltchev »

Sure. Let us know how it went.
Be sure to check out our Knowledgebase for helpful articles and solutions!
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Nagios XI Execution Dependency via GUI

Post by JakeHatMacys »

Worked well, for some reason my brain was processing things backwards.

So random question, is there an easy way to reset the attempts counter in Nagios??? I'm not seeing an obvious way to do it, I did realize the dependency didn't kick in until the dependent monitor hit a Hard state. That's why I thought it was working before when I had reversed them originally (which ended up being correct).
Locked