Strange duplication issues after using import script

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
griffithusg
Posts: 64
Joined: Sun Nov 07, 2010 7:16 pm

Re: Strange duplication issues after using import script

Post by griffithusg »

HI.
My thoughts were by having the box ticked stating to overwrite the db meant that it would refresh the tables and overwrite them.
The reason I wanted to simulate the change in data was to ensure any changes that may have been made in the old system would come across and be merged. I have since realised that this will not work very well if systems are removed in the older system.

I see no difference if I write the configuration out to the files hence why I didnt do that.

If I delete the configs I import normally without duplication.
What I do not understand is why if the checks are unique in their id's in the db table that you do not see all the checks duplicate?

The way I will get around this is to delete all hosts and services from the ccm and then reimport them.

Thanks.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Strange duplication issues after using import script

Post by mguthrie »

I haven't gone through all of the logic on the import process in the CCM, but as we've seen there is room for error. Although what you're doing probably should work, my guess is that the import script wasn't set up do the kind of process that you're wanting.

If it's any help, we wrote some scripts for resetting the NagiosQL database for users who want to restore default settings.
http://support.nagios.com/wiki/index.ph ... figuration
Locked