Deleting user issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Deleting user issue

Post 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.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
Keerthi Prashanth Seetharaman
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Deleting user issue

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Re: Deleting user issue

Post 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.
Thanks & Regards,
Keerthi Prashanth Seetharaman
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Deleting user issue

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Re: Deleting user issue

Post by keerthi.seetharaman »

Done.

Please check.
Thanks & Regards,
Keerthi Prashanth Seetharaman
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Deleting user issue

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Re: Deleting user issue

Post 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.
Thanks & Regards,
Keerthi Prashanth Seetharaman
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Deleting user issue

Post by cdienger »

Sorry, that should have been Configure > Core Config Manager > Tools > Config File Management.

Screenshot attached.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Re: Deleting user issue

Post by keerthi.seetharaman »

Thanks. It's working fine now.
Please close the issue. In case of any issue will ping over the same forum.
Thanks & Regards,
Keerthi Prashanth Seetharaman
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Deleting user issue

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked