Query on fix [TPS#13871] applied in 5.8.8

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bomahony
Posts: 133
Joined: Wed Jul 04, 2018 10:46 am

Query on fix [TPS#13871] applied in 5.8.8

Post 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?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bomahony
Posts: 133
Joined: Wed Jul 04, 2018 10:46 am

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

Post 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.
bomahony
Posts: 133
Joined: Wed Jul 04, 2018 10:46 am

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

Post 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?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

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

Post by cdienger »

This will search .cfg files for the service_description line and print out any duplicates:

grep service_description *.cfg -R | uniq -D
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bomahony
Posts: 133
Joined: Wed Jul 04, 2018 10:46 am

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

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post by lmiltchev »

Whenever you are ready - let us know if this is safe to close.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bomahony
Posts: 133
Joined: Wed Jul 04, 2018 10:46 am

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

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post by lmiltchev »

Can you show us the two services that get duplicated on import? We could try to replicate the issue in-house.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bomahony
Posts: 133
Joined: Wed Jul 04, 2018 10:46 am

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

Post 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?
Locked