Configuration import

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Configuration import

Post by morabanc »

Hi !!

We noticed a problem in our nagiosql version 3.2.0.

We try to import a new hostescalation.cfg file in "Tools" -> "Data Import". We would like to "Overwrite database" so we tick the this option, but when I push the "Import" button I get this error:

Duplicate entry 'Host_Esc-1' for key 'config_name'
Entry config_name -> Host_Esc inside tbl_hostescalation could not be inserted: Duplicate entry 'Host_Esc-1' for key 'config_name'


I don't know why is trying to "insert" the hostescalation and not "update" because I check the "overwrite" option.

Can you help me ?

Thanks in advance
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Configuration import

Post by sreinhardt »

I generally don't like to do this, but I would honestly suggest making a post at the nagiosql forums. QL is a product we are more than happy to help with, but we do not write or maintain. This sounds like bug with the version you have installed. Is it 3.2.0 base, 3.2.0 sp1, or 3.2.0 sp2?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: Configuration import

Post by morabanc »

Thanks sreinhardt,

It's a base 3.2.0 system, but this week we replaced some sp2 files.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Configuration import

Post by tmcdonald »

What files specifically did you replace? Doing a partial manual upgrade might have some unpredictable side-effects.
Former Nagios employee
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: Configuration import

Post by morabanc »

Hi tmcdonald,

Sorry for the late.
I think it's a bug. I'll find more information about it.


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

Re: Configuration import

Post by lmiltchev »

I think it's a bug. I'll find more information about it.
No problem. Keep us posted.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked