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.
Unable to save configuration
-
gm_rajkumar
- Posts: 187
- Joined: Tue Feb 28, 2012 7:08 am
- Location: CA, USA
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Unable to save configuration
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.
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.
-
gm_rajkumar
- Posts: 187
- Joined: Tue Feb 28, 2012 7:08 am
- Location: CA, USA
Re: Unable to save configuration
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.
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.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Unable to save configuration
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.
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.
Re: Unable to save configuration
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.
A blank or ghost entry like this can occasionally show up from an error in the import process.
-
gm_rajkumar
- Posts: 187
- Joined: Tue Feb 28, 2012 7:08 am
- Location: CA, USA
Re: Unable to save configuration
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...
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...
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Unable to save configuration
Thank's much for providing your solution for others!