Hello,
I have a Problem with deleting Hostgroups.
To seperate an INT system from our PRD I was deleting a bunch of Hostgroups from the INT system.
On Reload the Nagios process keeps failing because the deleted Hostgroups seem to be missing in service configurations.
When I have a look in the Service configuration , for which I get notified is missing the Hostgroup entry, I cant find the Hostgroup.
When I then save the configuration of that service even I have not changed a thing and retry the apply configuration step it succeeds.
It seems that on delete of a Hostgroup the Hostgroup gets deletet from all configurations in the DB but since nothing was changed on the service configuration the cfg files for them are not getting reproduced and updated to not have the freshly deleted hostgroup.
Can you please investigate on this..?
Deleting Hostgroups not working correctly
Deleting Hostgroups not working correctly
HOMO SUM HUMANI NIHIL A ME ALIENUM PUTO
Re: Deleting Hostgroups not working correctly
Hello @gomatze
Thanks for reaching out, want to get a copy of your System Profile so we can see what is going on.
To send us your system profile.
Perry
Thanks for reaching out, want to get a copy of your System Profile so we can see what is going on.
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 send via Private Message
Perry
Re: Deleting Hostgroups not working correctly
Hello Perry,
thank you for your reply.
Are you an official Nagios Enterprise technician or another Forum Member?
I cannot make out the difference and surely I dont want to cast around the system profile of one of our servers to someone I cannot place.
Sorry, but how can I identify officials from members in this forum?
Kind Regards G.Matzel
thank you for your reply.
Are you an official Nagios Enterprise technician or another Forum Member?
I cannot make out the difference and surely I dont want to cast around the system profile of one of our servers to someone I cannot place.
Sorry, but how can I identify officials from members in this forum?
Kind Regards G.Matzel
HOMO SUM HUMANI NIHIL A ME ALIENUM PUTO
Re: Deleting Hostgroups not working correctly
Hello @gomatze
Thanks for following up and to answer your inquiry I am a support engineer with Nagios.
---
Perry Broste
Support Engineer
Nagios Enterprises, LLC
Email: [email protected]
Phone: 1-888-624-4671
Web: www.nagios.com
Thanks for following up and to answer your inquiry I am a support engineer with Nagios.
---
Perry Broste
Support Engineer
Nagios Enterprises, LLC
Email: [email protected]
Phone: 1-888-624-4671
Web: www.nagios.com
Re: Deleting Hostgroups not working correctly
Hello @gomatze
Thanks for sending over the System Profile, in review appears that error message states:
Also run through a quick check to see if anything else sticks out:
Then run through a re-index followed by 'pre-flight check to verify any hangups by:
[*]Reindex the Core Configuration Manager (CCM) configs[/*]
Verify that the host and services look good in pre-flight with no errors in core by:
Perry
Thanks for sending over the System Profile, in review appears that error message states:
Let's check on the configuration on 'ncpa_memory Usage and manually update the hostgroup on it, then 'Apply Config'.Error: Could not find any hostgroup matching 'W566_PRD' (config file '/usr/local/nagios/etc/services/ncpa_Memory Usage.cfg', starting on line 16)
Also run through a quick check to see if anything else sticks out:
Code: Select all
grep -Eir 'W566_PRD' /usr/local/nagios/etc/*[*]Reindex the Core Configuration Manager (CCM) configs[/*]
- rm -rf /usr/local/nagios/etc/import/*
- 1: Terminal command list all running /bin/nagios -> ps -aux | grep -E '/bin/nagios'
- 2: Terminal command -> killall -9 nagios (or pkill nagios)
- 3: Terminal command check to see if /bin/nagios processes are stopped
- 4: Restart nagios.service by terminal command: systemctl restart nagios
- 5: Head over to the Nagios XI web console
==> Core Configuration Manager (CCM)
==> Config File Management
==> [Delete Files]
==> [Write Files]
==> [Verify Files] - 6: Core Configuration Manager (CCM)
==> Under Quick Tools
==> "Apply Configuration" - 7: Restart nagios.service by terminal command: systemctl restart nagios [list]
Code: Select all
systemctl restart nagios
Verify that the host and services look good in pre-flight with no errors in core by:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Perry