Removed a user and now getting dependent errors ...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Removed a user and now getting dependent errors ...

Post 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.
Newbie '14
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

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

Post 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.
Newbie '14
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked