Deleting Hostgroups not working correctly

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
gomatze
Posts: 64
Joined: Mon Jan 09, 2017 12:33 am
Location: Duesseldorf, Germany

Deleting Hostgroups not working correctly

Post by gomatze »

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..?
HOMO SUM HUMANI NIHIL A ME ALIENUM PUTO
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Deleting Hostgroups not working correctly

Post by pbroste »

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.
  • 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
Thanks,
Perry
User avatar
gomatze
Posts: 64
Joined: Mon Jan 09, 2017 12:33 am
Location: Duesseldorf, Germany

Re: Deleting Hostgroups not working correctly

Post by gomatze »

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
HOMO SUM HUMANI NIHIL A ME ALIENUM PUTO
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Deleting Hostgroups not working correctly

Post by pbroste »

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
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Deleting Hostgroups not working correctly

Post by pbroste »

Hello @gomatze

Thanks for sending over the System Profile, in review appears that error message states:
Error: Could not find any hostgroup matching 'W566_PRD' (config file '/usr/local/nagios/etc/services/ncpa_Memory Usage.cfg', starting on line 16)
Let's check on the configuration on 'ncpa_memory Usage and manually update the hostgroup on it, then 'Apply Config'.

Also run through a quick check to see if anything else sticks out:

Code: Select all

grep -Eir 'W566_PRD' /usr/local/nagios/etc/*
Then run through a re-index followed by 'pre-flight check to verify any hangups by:

[*]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
[/list]

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
Thanks,
Perry
Locked