Page 1 of 3

Query on fix [TPS#13871] applied in 5.8.8

Posted: Mon Dec 17, 2018 6:46 am
by bomahony
Hey folks.

Just installed 5.8.8 on a preprod node to investigate this fix [which I referenced here: https://support.nagios.com/forum/viewto ... 16&t=50502 ].

It seems to partially work. I have a service check file containing 3 checks [DNS related]. I ran the import and only one of the three got duplicated. Previously all three would have been duplicated. I removed the duplicate, and re-ran, and same issue.

Code: Select all

define service {
        use                              sv-service
        hostgroup_name                   dns
        service_description              DNS: Bind DNS Throughput
        check_command                    check_nrpe!check_bind_stats!!!!!!!!
        parents                          alive
}

define service {
        use                              sv-service
        hostgroup_name                   dns
        service_description              DNS: xxxom.com lookup
        check_command                    check_dns!axxx.xxxom.com
        parents                          alive
}

define service {
        use                              sv-service
        hostgroup_name                   dns
        service_description              DNS: Processes - NameD
        check_command                    check_nrpe!check_named_procs!!!!!!!
        parents                          alive
}

As you can see the checks are pretty identical. However only the Bind Throughput is duplicating? Is my issue supposed to be fully resolved?

Re: Query on fix [TPS#13871] applied in 5.8.8

Posted: Mon Dec 17, 2018 2:56 pm
by cdienger
Is this a fresh 5.5.8 install or an upgraded version? I just tested with a 5.5.8 upgraded from 5.5.5 and it seems to be behaving.

Does the order of the services in the imported config file matter in regards to which one is getting duplicated? Which one is getting duplicated?

Please PM me a profile(Admin > System Config > System Profile > Download Profile) after importing the config and causing the duplicate.

Re: Query on fix [TPS#13871] applied in 5.8.8

Posted: Tue Dec 18, 2018 8:32 am
by bomahony
My systems started at 5.4 I think, but I have been upgrading them as new releases come out, usually within a few days [environment is not live yet, so I can get away with it]. So currently running 5.5.8

I swapped entry one and entry two in the CFG import and it still only duplicated the same one. My configs are split into services, so I just tried another config and it did not duplicate at all.

I am going to take a VM snapshot and import everything and see how it goes. Do you want the System Profile from that? Probably more data in there for you to look at.

Re: Query on fix [TPS#13871] applied in 5.8.8

Posted: Tue Dec 18, 2018 9:38 am
by bomahony
I did a re-import and duplicated about 12 checks [out of ~200]. A little further investigation:
1. Bind check. My live system has a !host in there that was manually added.
2. Elasticsearch. Duplicated as the live version has 2 hostgroups instead of 1.

Working on these assumptions I have a feeling that the config import is now working, but due to deploying piecemeal there has been inconsistencies. Which is probable. I will revert in a bit after checking the other checks.

As a side note, is there an easy way from the CLI that I can check the Service names looking for a duplicate, so this can be added to my ansible plays?

Re: Query on fix [TPS#13871] applied in 5.8.8

Posted: Tue Dec 18, 2018 2:51 pm
by cdienger
This will search .cfg files for the service_description line and print out any duplicates:

grep service_description *.cfg -R | uniq -D

Re: Query on fix [TPS#13871] applied in 5.8.8

Posted: Thu Dec 20, 2018 7:28 am
by bomahony
Ah ok - i thought I might have to look in a DB or something.

Anyways, I have narrowed the duplicating checks to 2 checks. I am only back from a days leave so will have a look at those two this evening. Hopefully we can then close it off.

Re: Query on fix [TPS#13871] applied in 5.8.8

Posted: Thu Dec 20, 2018 11:52 am
by lmiltchev
Whenever you are ready - let us know if this is safe to close.

Re: Query on fix [TPS#13871] applied in 5.8.8

Posted: Fri Jan 04, 2019 10:38 am
by bomahony
Sorry mate. was on extended leave over the holidays, only catching up now. I would still like to investigate the two duplicating checks if we can?

B

Re: Query on fix [TPS#13871] applied in 5.8.8

Posted: Fri Jan 04, 2019 11:13 am
by lmiltchev
Can you show us the two services that get duplicated on import? We could try to replicate the issue in-house.

Re: Query on fix [TPS#13871] applied in 5.8.8

Posted: Fri Jan 04, 2019 11:18 am
by bomahony
lmiltchev wrote:Can you show us the two services that get duplicated on import? We could try to replicate the issue in-house.
I sent the system profile to the previous tech, cdienger. Would you like me to send it to you?