Page 1 of 1

Orphaned service alert

Posted: Wed Oct 13, 2021 3:57 am
by ITOPS_SPOC
Hello,

Under Home Dashboard -> Service Status Summary -> Critical we are seeing blank service. See scrshot
Hostblank.jpg
Please help me how to get ride of this service alert which is orphaned.

Regards, Gregor

Re: Orphaned service alert

Posted: Wed Oct 13, 2021 3:57 pm
by benjaminsmith
Hi Gregor,

That is odd. Let's re-start the Nagios Service.

Code: Select all

systemctl stop nagios.service
killall -9 nagios
systemctl start nagios.service
Then apache.

Code: Select all

systemctl restart httpd
And then try to force an immediate check. Does it update and continue to update?
force-check.png
See: Nagios XI - Last Check Time Not Updating

If the issue persists, send us the system profile and we'll check the nagios and database logs. Thanks, Benjamin

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

Re: Orphaned service alert

Posted: Thu Oct 14, 2021 6:00 am
by ITOPS_SPOC
Hi Benjamin,

since we have dedicated server for Nagios I have rebooted server. Orphaned service is still there. I am unable to execute "force an immediate check" since Host and Service field are blank. Nothing to click there.

Uploaded profile file.

Regards, Gregor

Moderator's Note: The profile has been shared with the support team but has been removed from the public forum.

Re: Orphaned service alert

Posted: Thu Oct 14, 2021 2:14 pm
by benjaminsmith
Hi Gregor,

The profile looks pretty good, I didn't see any current database errors.

Please go to Configure > Core Config Manager > Tools > Write Config Files
- Click Delete (don't worry, it's safe, they get re-written)
- Click Write
- Now click verify and see if it verifies properly, if it does, try to apply configuration

Then check the GUI once more and let me know if it is still there. If so, please log into the Nagios Core interface and let me know if you see on it on that side (those pages do not use the database).

Code: Select all

httt://<IP address>/nagios
Lastly, we can determine what host that service is part of by searching the archives, go to:

Code: Select all

cd /usr/local/nagios/var/archives
And then do a recursive search for that string in the GUI and let me know the results. Thanks, Benjamin

Code: Select all

grep -iR "----search string here-----"

Re: Orphaned service alert

Posted: Mon Oct 25, 2021 2:35 am
by ITOPS_SPOC
Hi Benjamin,

deleting config files did not help.

[root@nagiosxi archives]# grep -iR "Used swap was 18.50 % (Total: 9.18 GiB, Used: 1.70 GiB, Free: 7.48 GiB)"
nagios-09-28-2020-00.log:[1601201245] SERVICE NOTIFICATION: nagiosadmin;cdc-prodadmin.acer-remit.eu;Swap Usage;CRITICAL;xi_service_notification_handler;CRITICAL: Used swap was 18.50 % (Total: 9.18 GiB, Used: 1.70 GiB, Free: 7.48 GiB)
nagios-09-28-2020-00.log:[1601205125] SERVICE NOTIFICATION: nagiosadmin;cdc-prodadmin.acer-remit.eu;Swap Usage;CRITICAL;xi_service_notification_handler;CRITICAL: Used swap was 18.50 % (Total: 9.18 GiB, Used: 1.70 GiB, Free: 7.48 GiB)
nagios-09-28-2020-00.log:[1601209002] SERVICE NOTIFICATION: nagiosadmin;cdc-prodadmin.acer-remit.eu;Swap Usage;CRITICAL;xi_service_notification_handler;CRITICAL: Used swap was 18.50 % (Total: 9.18 GiB, Used: 1.70 GiB, Free: 7.48 GiB)
nagios-09-28-2020-00.log:[1601212888] SERVICE NOTIFICATION: nagiosadmin;cdc-prodadmin.acer-remit.eu;Swap Usage;CRITICAL;xi_service_notification_handler;CRITICAL: Used swap was 18.50 % (Total: 9.18 GiB, Used: 1.70 GiB, Free: 7.48 GiB)
nagios-09-28-2020-00.log:[1601216770] SERVICE NOTIFICATION: nagiosadmin;cdc-prodadmin.acer-remit.eu;Swap Usage;CRITICAL;xi_service_notification_handler;CRITICAL: Used swap was 18.50 % (Total: 9.18 GiB, Used: 1.70 GiB, Free: 7.48 GiB)
nagios-09-28-2020-00.log:[1601220650] SERVICE NOTIFICATION: nagiosadmin;cdc-prodadmin.acer-remit.eu;Swap Usage;CRITICAL;xi_service_notification_handler;CRITICAL: Used swap was 18.50 % (Total: 9.18 GiB, Used: 1.70 GiB, Free: 7.48 GiB)
nagios-09-28-2020-00.log:[1601224533] SERVICE NOTIFICATION: nagiosadmin;cdc-prodadmin.acer-remit.eu;Swap Usage;CRITICAL;xi_service_notification_handler;CRITICAL: Used swap was 18.50 % (Total: 9.18 GiB, Used: 1.70 GiB, Free: 7.48 GiB)
nagios-09-28-2020-00.log:[1601228412] SERVICE NOTIFICATION: nagiosadmin;cdc-prodadmin.acer-remit.eu;Swap Usage;CRITICAL;xi_service_notification_handler;CRITICAL: Used swap was 18.50 % (Total: 9.18 GiB, Used: 1.70 GiB, Free: 7.48 GiB)
nagios-08-24-2020-00.log:[1598139737] SERVICE NOTIFICATION: nagiosadmin;cdc-prodadmin.acer-remit.eu;Swap Usage;CRITICAL;xi_service_notification_handler;CRITICAL: Used swap was 18.50 % (Total: 9.18 GiB, Used: 1.70 GiB, Free: 7.48 GiB)
nagios-10-28-2020-00.log:[1603749600] CURRENT SERVICE STATE: cdc-prodadmin.acer-remit.eu;Swap Usage;OK;HARD;1;OK: Used swap was 18.50 % (Total: 9.18 GiB, Used: 1.70 GiB, Free: 7.48 GiB)
nagios-10-23-2020-00.log:[1603314000] CURRENT SERVICE STATE: cdc-prodadmin.acer-remit.eu;Swap Usage;OK;HARD;1;OK: Used swap was 18.50 % (Total: 9.18 GiB, Used: 1.70 GiB, Free: 7.48 GiB)

Regards, Gregor

Re: Orphaned service alert

Posted: Mon Oct 25, 2021 12:55 pm
by ssax
Please run this command and PM me the resulting /tmp/OBJECTSDUMP.sql file:

Code: Select all

mysqldump -uroot -pnagiosxi nagios nagios_objects nagios_servicestatus nagios_hoststatus > /tmp/OBJECTSDUMP.sql

Re: Orphaned service alert

Posted: Tue Nov 02, 2021 9:34 am
by ITOPS_SPOC
Hi Ssax,
I have sent you PM with output.

Regards, Gregor

Re: Orphaned service alert

Posted: Wed Nov 03, 2021 10:24 am
by ssax
Please run this command and it should fix it:

Code: Select all

mysql -uroot -pnagiosxi nagios -e "delete from nagios_servicestatus where service_object_id = '-1';"

Re: Orphaned service alert

Posted: Fri Nov 05, 2021 5:08 am
by ITOPS_SPOC
Thank you. It worked. This can be closed.

Regards, Gregor