Ticket #294 (new defect)

Opened 2 months ago

Last modified 6 hours ago

update from rc6 to rc7 doubled services and hosts

Reported by: massimo Owned by:
Priority: major Milestone:
Component: Centreon Version: RC7
Keywords: Cc: florent.houbart@…

Description

After updating from rc6 to rc7 and restarting the services the views of Hosts and Services of the Monitoring tab contains duplicated entries of all hosts and services. Hence, I had hosts foo and bar, now I see a list containing foo, foo, bar, bar. Same goes for the services. This is not visible via the Configuration view of Hosts and Services.

Change History

Changed 2 months ago by jmathis

please kill all nagios instance, purge ndo database and restart nagios. I think you have problem with multiple ndo instance.

It's not a centreon bug. But a ndo bug.

Thanks

Changed 2 months ago by massimo

How would I purge the ndo database - simply emptying the ndo tables? There was/is only one ndo instance running.

Changed 6 hours ago by flouba

  • cc florent.houbart@… added

I had exactly the same problem when migrating from 1.4.7 to 2.0.
Problem is that default instance name in NDO's installation is default, but default Centreon's one is Central. When generating files, the ndomod.conf file is overwritten with Centreon's configuration and a new instance is created.

You can check that with query SELECT * FROM nagios_instances in NDO database. In my case, there was a Central instance with id 2.

What you should do is changing configuration for ndomod in Centreon's frontend to your old instance name, and disable all object in NDO's daabase with query UPDATE nagios_objects SET is_active=0 WHERE instance_id = 2 (of course, replace 2 by the instance ID if necessary).

Can you confirm it's your case ? If so the ticket will be classified as Not a bug and resolved.

Note: See TracTickets for help on using tickets.