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.
NagiosXI 5.5.9 - duplicate services ...
Re: NagiosXI 5.5.9 - duplicate services ...
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
# Modify one of the services. For example, change the check_command of the "PING" service to this:
# Run reconfigure
Go to the CCM and check your services under localhost. Did PING service get duplicated, or just modified?
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/Code: Select all
check_command check_dummy!0!"test"Code: Select all
/usr/local/nagiosxi/scripts/reconfigure_nagios.shBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: NagiosXI 5.5.9 - duplicate services ...
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.
Its a single config file with HOST & SERVICE related entries.
Regards,
Vish.
Re: NagiosXI 5.5.9 - duplicate services ...
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!
Re: NagiosXI 5.5.9 - duplicate services ...
Ok , Thanks.
Tried with same cfg name, it worked.
Regards,
Vish.
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 ...
Great!vishfx wrote:Ok , Thanks.
Tried with same cfg name, it worked.
Regards,
Vish.
Locking thread