Nagios XI Execution Dependency via GUI
-
JakeHatMacys
- Posts: 281
- Joined: Thu Sep 25, 2014 3:21 pm
Nagios XI Execution Dependency via GUI
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???
Re: Nagios XI Execution Dependency via GUI
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.
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
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
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?
Any ideas? Am I interpreting this wrong?
You do not have the required permissions to view the files attached to this post.
Re: Nagios XI Execution Dependency via GUI
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
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
}
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
}
Re: Nagios XI Execution Dependency via GUI
Aren't these reversed?
You have:
I believe, you need to have:
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)Code: Select all
dependent_service_description _SiteScope_Content URL Content
service_description HTTPBe 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
So you're saying:lmiltchev wrote:Aren't these reversed?
You have:
I believe, you need to 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)
Code: Select all
dependent_service_description _SiteScope_Content URL Content service_description HTTP
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
Re: Nagios XI Execution Dependency via GUI
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
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).
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).