Dependency not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Dependency not working

Post by BanditBBS »

Here is my dependency config file:

Code: Select all

define servicedependency {
       dependent_hostgroup_name                 PICO_NH-365-Servers,PICO_NH-CHI-Servers,PICO_NH-Linux,PICO_NH-Non-Prod-Servers,PICO_NH-Prod-Servers,PICO_NH-Windows
       dependent_service_description            *
       host_name                                robot-pico
       service_description                      *
       inherits_parent                          1
       execution_failure_criteria               w,u,c,
       notification_failure_criteria            w,u,c,
       dependency_period                        xi_timeperiod_24x7

}
On robot-pico there is a ping service. I am wanting when that fails to stop any alerts and even checks for ANY service on ANY PICO server. That isn't happening. That service went critical yesterday and checks continued and alerts continued for every host/service for PICO. What's wrong with my config? Is it the wildcard on the service description? Its a valid choice in the UI, so I'd hope that isn't it, but if it is, I can change that.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Dependency not working

Post by eloyd »

I've never known wildcard dependencies to work properly, even though it states that it should. In fact, somewhere, I opened an incident on this a year ago but I don't think any progress got made, since it was a rather obscure usage.

Also, not sure, but you have commas at the end of the failure lines - try removing those dangling commas. I don't think it matters, but it might.

Lastly, I think you're in the wrong forum. :)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Dependency not working

Post by BanditBBS »

eloyd wrote:I've never known wildcard dependencies to work properly, even though it states that it should. In fact, somewhere, I opened an incident on this a year ago but I don't think any progress got made, since it was a rather obscure usage.

Also, not sure, but you have commas at the end of the failure lines - try removing those dangling commas. I don't think it matters, but it might.

Lastly, I think you're in the wrong forum. :)
OMG - Woops, someone move this :)

Also, that file is auto written, I have no control over trailing commas

EDIT #1:

Also, this is similar to how I have configured escalations in the past with wildcards and they worked fine. Hoping I only have to change the "service_description" wildcard and can keep the other.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Dependency not working

Post by eloyd »

Yah, I figured about the danglers. I was just grasping at straws. It's been a while since I delved into XI's generated configs.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Dependency not working

Post by BanditBBS »

So, I removed the dependent_hostgroup and added instead the separate hosts in dependent_host_name and bam, its working.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Dependency not working

Post by eloyd »

Yah, this is basically the same problem I reported in http://support.nagios.com/forum/viewtop ... =7&t=28200, which I was hopeful would be fixed before last year's conference. It was not.

Oh, Andy?????
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Dependency not working

Post by lmiltchev »

So, I removed the dependent_hostgroup and added instead the separate hosts in dependent_host_name and bam, its working.
This would be the workaround until the bug is fixed. I realize it is taking a long time (I filed an internal bug report on 2014-09-08; task ID=3948 and it hasn't been fixed yet) but this is not a "priority" project, so I am not sure when this is going to be fixed.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Dependency not working

Post by eloyd »

My offer from last year still stands - free beer or dark liquor to the person who fixes it if it's done prior to September 28th. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Dependency not working

Post by BanditBBS »

Yeah, pretty big issue...whats the point of using hostgroups then. Now I have to start a new list of things I have to verify when adding new monitored hosts...adds a new level of possible human error :(
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Dependency not working

Post by lmiltchev »

BanditBBS, there is a patch submitted that *should* fix the dependencies issues.

http://tracker.nagios.org/view.php?id=641

Sean tested it and it seemed to work, however it hasn't been tested thoroughly. Our devs need to take a look at it and see if this is not going to break something else. Anyway, as usual, if you decide to give it a try - don't test in production. :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked