I'm getting an error in our config after removing an employee who just left. Here is the error:
Error: Contact 'jwise' is not defined anywhere!
Error: Could not add contact 'jwise' to host (config file '/usr/local/nagios/etc/hosts/Clearpass.cfg', starting on line 16)
I suspect if I fix this one, it's just going to go to the next endpoint for which he was a contact and on and on. How can I fix this?
Thank you forum rockstars!
Removed a Contact and Now Cannot Save Config
-
omarrrthepirate
- Posts: 28
- Joined: Fri Jul 09, 2021 1:13 pm
- Location: Spokane, WA
- Contact:
Removed a Contact and Now Cannot Save Config
Omarrr The Pirate!
Arrrrr
Arrrrr
Re: Removed a Contact and Now Cannot Save Config
Hello ommarrrthepirate
Let's go ahead and reindex the Core Configuration Manager (CCM) configs by:
[*]6: Core Configuration Manager (CCM) ==> Under Quick Tools ==> "Apply Configuration"[/*]
[*]7: Restart nagios.service by terminal command: -> systemctl restart nagios[/*]
Verify that the host and services look good and verify that there are no errors in core by:
Issue persists, please PM your system profile for us to review updates.
To send us your system profile.
Perry
Let's go ahead and reindex the Core Configuration Manager (CCM) configs by:
- 1: command list all running /bin/nagios -> ps -aux | grep -E '/bin/nagios' [list]
Code: Select all
ps -aux | grep -E '/bin/nagios'
Code: Select all
pkill -f /bin/nagios
Code: Select all
rm -rf /usr/local/nagios/etc/import/*
Code: Select all
systemctl restart nagios
[*]6: Core Configuration Manager (CCM) ==> Under Quick Tools ==> "Apply Configuration"[/*]
[*]7: Restart nagios.service by terminal command: -> systemctl restart nagios[/*]
Code: Select all
systemctl restart nagios
Verify that the host and services look good and verify that there are no errors in core by:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Issue persists, please PM your system profile for us to review updates.
To send us your system profile.
- Login to the Nagios XI GUI using a web browser.
- Click the "Admin" > "System Profile" Menu
- Click the "Download Profile" button
- Save the profile.zip file and share
Perry
Re: Removed a Contact and Now Cannot Save Config
Hello @omarrrthepirate
We see that there is a 'jwise' User setup, but in this case, to satisfy the condition we will need to create a contact for 'jwise'. We don't see that 'jwise' is added to 'usr/local/nagios/etc/contacts.cfg', by heading over to Core Configuration Manager > Contacts > Add New
Then rinse repeat if necessary from my previous post in this thread.
Thanks,
Perry
We see that there is a 'jwise' User setup, but in this case, to satisfy the condition we will need to create a contact for 'jwise'. We don't see that 'jwise' is added to 'usr/local/nagios/etc/contacts.cfg', by heading over to Core Configuration Manager > Contacts > Add New
Then rinse repeat if necessary from my previous post in this thread.
Thanks,
Perry
-
hillhealthcenter
- Posts: 174
- Joined: Fri Sep 21, 2012 7:45 am
- Location: New Haven, CT
Re: Removed a Contact and Now Cannot Save Config
I had the same issue. I just recreated the contact to get the error to go away. We have yet to upgrade to the current release of XI.
Thanks so much,
Tom
Tom
Re: Removed a Contact and Now Cannot Save Config
Hello @omarrrthepirate
Checking in with you to see if the previous post by @hillhealthcenter worked for you?
Perry
Checking in with you to see if the previous post by @hillhealthcenter worked for you?
Thanks,hillhealthcenter wrote:I had the same issue. I just recreated the contact to get the error to go away. We have yet to upgrade to the current release of XI.
Perry