delete contact/user

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

delete contact/user

Post by snapon_admin »

I'm trying to re-create (created once, but was told to delete, and now asked to re-add :roll: ) a new user/contact using Active Directory and keep getting an error that a user with that ID already exists. There is no user with that ID under Manage users in the admin menu, nor is there a contact with that ID in CCM. Where would I go to manually delete any trace of this user so I can re-create the account?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: delete contact/user

Post by ssax »

Did you apply configuration after deleting it? Might want to give that a try and let us know if that works for you.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: delete contact/user

Post by snapon_admin »

I did, and yep, still says user already exists.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: delete contact/user

Post by tgriep »

For a test, can you disable the Active Directory Integration and see if you can add the user then?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: delete contact/user

Post by ssax »

Also, all the check really does is try to find the user_id by username

So if you run this command:

Code: Select all

echo "select * from xi_users;" | psql nagiosxi nagiosxi
Does it list that user?
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: delete contact/user

Post by snapon_admin »

ssax wrote:Also, all the check really does is try to find the user_id by username

So if you run this command:

Code: Select all

echo "select * from xi_users;" | psql nagiosxi nagiosxi
Does it list that user?

Yep. Not sure I want to disable the AD integration on the prod server. Don't want to risk that borking something else.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: delete contact/user

Post by ssax »

So it's still showing the user in the DB but it's not showing in the UI?
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: delete contact/user

Post by snapon_admin »

Correct.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: delete contact/user

Post by ssax »

Were they a monitoring contact as well? I'm whipping up some commands for you that will manually remove the remnants.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: delete contact/user

Post by ssax »

Find the user_id with this command (it's the number to the left of their username):

Code: Select all

echo "select * from xi_users;" | psql nagiosxi nagiosxi
Go to Admin > Users > Manage Users

Right-click on the X next to one of your users and select Copy Link Location.

Paste it into notepad, you should see something like this:

Code: Select all

http://ssc66xi/nagiosxi/admin/users.php?delete=1&user_id[]=18&nsp=f9dd99b34af0f946d528bfb48bea3163
Change:

Code: Select all

user_id[]=18
To:

Code: Select all

user_id[]=YOUR_USER_ID_FROM_THE_FIRST_STEP
Paste it into your browser address bar and hit enter.

Now try to add the user again.
Locked