Page 1 of 1

Removed a user and now getting dependent errors ...

Posted: Mon May 18, 2020 10:00 am
by PhilG
Hello:
Running Nagios XI 5.6.7
A colleague left and I helped the new Nagios XI Admin remove the departed User's account in Nagios XI from the User and Contact areas.
However, doing so is now throwing errors associated to the removed account/contact:
Error: Could not add contact '<removed_account>' to host (config file '/usr/local/nagios/etc/hosts/<associated_host>.cfg', starting on line 16)
Error: Could not add contact '<removed_account>' to service (config file '/usr/local/nagios/etc/services/<associated_service>.cfg', starting on line 16)

Please inform how to resolve. Thank you.

Re: Removed a user and now getting dependent errors ...

Posted: Mon May 18, 2020 11:34 am
by PhilG
Never mind.

I fixed the issue by:
1). Revert to last known good config
2). Use the Bulk Modification Tool (BMT) and remove the associated dependencies.
3). Delete Contacts and accounts.

However, there were a couple of other dependencies (Host and/or Service stuff) that I had to dig around and find.

Finally, I had one last error and found this to fix it:

"
Re: Error: Contact '' has no service notification commands
Unread postby scottwilkerson ยป Tue May 15, 2018 7:25 am

Assuming xxxx is also an XI user:

Go to Configure -> CCM -> Contact -> Edit xxxx
Alert Settings Tab Set
Manage Host Notification Commands = xi_host_notification_handler
Manage Service Notification Commands = xi_service_notification_handler

Save Apply Configuration
"

All good, so please go ahead and freeze this post.

Re: Removed a user and now getting dependent errors ...

Posted: Mon May 18, 2020 12:40 pm
by benjaminsmith
Hello @PhilG,
All good, so please go ahead and freeze this post.
Excellent! Thank you for sharing your solution.

We'll close this out, feel free to open another if you have any new questions.

Benjamin