Page 1 of 1
Deleting user issue
Posted: Sun Jun 07, 2020 7:49 am
by keerthi.seetharaman
Hello All,
I keep getting the below error when deleting any user from the nagios xi and when i click on apply configuration.
"Error: Contact 'xyz' is not defined anywhere
"Error: Could not add contact 'xyz' to host (config file '/usr/local/nagios/etc/hosts/servername.cfg', starting on line 16).
Attached the screenshot for your ref. I have blurred out the username and servername.
Let me know in case if any more details are required.
Re: Deleting user issue
Posted: Mon Jun 08, 2020 2:33 pm
by cdienger
It looks like a contact that doesn't exist or is disabled(under Configure > Core Config Manager > Alerting > Contacts) is applied on the host. Can you confirm? You can either enable/add them or edit the host to remove them as a contact.
Re: Deleting user issue
Posted: Tue Jun 09, 2020 1:50 am
by keerthi.seetharaman
Created a contact during the demo session and when i am trying to delete during the demo session it was throwing me the error. I have not added the contact for any of the server for alerting,
Please suggest what needs to be done.
Re: Deleting user issue
Posted: Tue Jun 09, 2020 2:11 pm
by cdienger
Please PM me a non-censored screenshot of the error as well as a copy of the CCM database. It can be gathered from the XI command line with:
Code: Select all
mysqldump -uroot -pnagiosxi nagiosql > nagiosql.sql
The above assumes that the default database is being used. If the database has been offloaded to another machine then the command would need to be changed to something like:
Code: Select all
mysqldump -h database_host_ip -uusername -ppassword nagiosql > nagiosql.sql
Where the host, username, and password are unique to your setup.
The file we want is nagiosql.sql. Please compress it before PM-ing it to me.
Re: Deleting user issue
Posted: Wed Jun 10, 2020 5:17 am
by keerthi.seetharaman
Done.
Please check.
Re: Deleting user issue
Posted: Wed Jun 10, 2020 2:20 pm
by cdienger
I loaded the database and the problem seems to be the xi_default_contact contact. This is a static contact and shouldn't be in the contacts under Configure > Core Config Manager > Alerting > Contacts. Remove this account and the rewrite the config by going to Configure > Core Tools > Config File Management, and click:
-Delete Files
-Write Configs
-Verify Files
-Restart Nagios Core
Finally, try applying the configuration and let me know your results.
Re: Deleting user issue
Posted: Thu Jun 11, 2020 1:17 am
by keerthi.seetharaman
Thanks for quick reply.
Is there any document because i am not able to find the Configure > Core Tools > Config File Management.
Can you please send me screenshots for the same.
Re: Deleting user issue
Posted: Thu Jun 11, 2020 4:56 pm
by cdienger
Sorry, that should have been Configure > Core Config Manager > Tools > Config File Management.
Screenshot attached.
Re: Deleting user issue
Posted: Thu Jun 11, 2020 8:47 pm
by keerthi.seetharaman
Thanks. It's working fine now.
Please close the issue. In case of any issue will ping over the same forum.
Re: Deleting user issue
Posted: Fri Jun 12, 2020 6:39 am
by scottwilkerson
keerthi.seetharaman wrote:Thanks. It's working fine now.
Please close the issue. In case of any issue will ping over the same forum.
Great!
Locking thread