Page 1 of 1
Unable to save configuration
Posted: Tue Dec 11, 2012 5:33 am
by gm_rajkumar
Hi,
I have recently deleted a contact named "nagiosmon" in the CCM, after this when i tried to apply configuration. I am receiving the below message
Error: Template '' specified in contact definition could not be not found (config file '/usr/local/nagios/etc/contacts.cfg, starting on line 71)
Error processing object config files!
When im referring the contacts.cfg, i could see 'nagiosmon' contact still present there. Is there anything wrong on deleting the contacts in CCM for 'nagiosmon' or any steps needs to be performed further...?
I have tried this option, however it didnt worked out..curl -s
http://assets.nagios.com/downloads/nagi ... tic_import| mysql -pnagiosxi nagiosql
Let me know if anything needs to be verified further...
Regards
Raj.
Re: Unable to save configuration
Posted: Tue Dec 11, 2012 11:24 am
by sreinhardt
When deleting an object from config files or CCM, you need to be sure that it is not listed in other locations as well. In this case it sounds as though your contact nagiosmon is listed within a template that you are also using. You can also go to Configure->Tools->Write Config Files->Choose Verify. Process each individual error, and re-verify the configuration after each change. Once done with errors in verification, write the files, then apply and restart nagios.
Re: Unable to save configuration
Posted: Tue Dec 11, 2012 9:57 pm
by gm_rajkumar
I am tried with suggested option to check configuration files and im receiving the same. I have also verified the "nagiosmon" id not found in contacttemplate, users.However, i have deleted the contacts in CCM, let me know where exactly needs to be cleared further.
Error: Template '' specified in contact definition could not be not found (config file '/usr/local/nagios/etc/contacts.cfg, starting on line 71)
Error processing object config files!
Thanks!
Regards,
Raj.
Re: Unable to save configuration
Posted: Wed Dec 12, 2012 10:08 am
by sreinhardt
The error you are recieving is saying that on line 71 of contacts.cfg, there is a template specified that is not being imported. Please look at that line for what is trying to be imported, or post the contacts.cfg file and we can have a look.
Re: Unable to save configuration
Posted: Wed Dec 12, 2012 10:21 am
by mguthrie
That error seems to be pointing to an empty string for a template name. Check to make sure that you don't have a blank contact template in the CCM->Contact Templates page, and also check the template assignments for each of your contacts and make sure they're not pointing to some blank entry.
A blank or ghost entry like this can occasionally show up from an error in the import process.
Re: Unable to save configuration
Posted: Thu Dec 13, 2012 6:24 am
by gm_rajkumar
Hi,
Thanks for the reponse, i have got the solution and i found where i made a mistake on this. Hope it may helpful who are having the same..
Recently i created two contacts in CCM without creating the user for it. So this is causes the error, once i removed those contacts it started work. I dont know why there is such depency on other contact with his. There is no parent or group created for this, anyway its got sorted out. Please take this of my lessons learned..
Thank you guys.. kudos to you!!
Warm Regards,
Raj...
Re: Unable to save configuration
Posted: Thu Dec 13, 2012 4:24 pm
by slansing
Thank's much for providing your solution for others!