NagiosXI 5.5.9 - duplicate services ...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vishfx
Posts: 134
Joined: Tue Apr 24, 2018 12:30 pm

NagiosXI 5.5.9 - duplicate services ...

Post by vishfx »

Hi Nagios team,

In order to update setting of already existing service "serviceA" , if I drop a updated_host1_serviceA.cfg under import/ folder.
I notice duplicate serviceA being created in CCM->services

How can I avoid this and update the existing serviceA ?

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

Re: NagiosXI 5.5.9 - duplicate services ...

Post by lmiltchev »

Are you using the same config name and service description as the "original" service? Is the service added to a host only or to a hostgroup? Services should not get duplicated, unless nagios "doesn't know" that this is the same, modified service, and "thinks" it's a new one.

Try the following:

# Copy the localhost.cfg to the import directory

Code: Select all

cp /usr/local/nagios/etc/services/localhost.cfg /usr/local/nagios/etc/import/
# Modify one of the services. For example, change the check_command of the "PING" service to this:

Code: Select all

check_command               check_dummy!0!"test"
# Run reconfigure

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
Go to the CCM and check your services under localhost. Did PING service get duplicated, or just modified?
Be sure to check out our Knowledgebase for helpful articles and solutions!
vishfx
Posts: 134
Joined: Tue Apr 24, 2018 12:30 pm

Re: NagiosXI 5.5.9 - duplicate services ...

Post by vishfx »

I am using a different config name, but same hostname and same service description and same hostgroup as the "original".
Its a single config file with HOST & SERVICE related entries.

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

Re: NagiosXI 5.5.9 - duplicate services ...

Post by lmiltchev »

You need to be using the same config name, otherwise nagios will create a different service.
Be sure to check out our Knowledgebase for helpful articles and solutions!
vishfx
Posts: 134
Joined: Tue Apr 24, 2018 12:30 pm

Re: NagiosXI 5.5.9 - duplicate services ...

Post by vishfx »

Ok , Thanks.
Tried with same cfg name, it worked.

Regards,
Vish.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXI 5.5.9 - duplicate services ...

Post by scottwilkerson »

vishfx wrote:Ok , Thanks.
Tried with same cfg name, it worked.

Regards,
Vish.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked