Orphaned service alert

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ITOPS_SPOC
Posts: 12
Joined: Wed Sep 29, 2021 3:21 am

Orphaned service alert

Post 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
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Orphaned service alert

Post 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
You do not have the required permissions to view the files attached to this post.
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!
ITOPS_SPOC
Posts: 12
Joined: Wed Sep 29, 2021 3:21 am

Re: Orphaned service alert

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

Re: Orphaned service alert

Post 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-----"
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!
ITOPS_SPOC
Posts: 12
Joined: Wed Sep 29, 2021 3:21 am

Re: Orphaned service alert

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Orphaned service alert

Post 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
ITOPS_SPOC
Posts: 12
Joined: Wed Sep 29, 2021 3:21 am

Re: Orphaned service alert

Post by ITOPS_SPOC »

Hi Ssax,
I have sent you PM with output.

Regards, Gregor
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Orphaned service alert

Post 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';"
ITOPS_SPOC
Posts: 12
Joined: Wed Sep 29, 2021 3:21 am

Re: Orphaned service alert

Post by ITOPS_SPOC »

Thank you. It worked. This can be closed.

Regards, Gregor
Locked