Orphaned service alert
-
ITOPS_SPOC
- Posts: 12
- Joined: Wed Sep 29, 2021 3:21 am
Orphaned service alert
Hello,
Under Home Dashboard -> Service Status Summary -> Critical we are seeing blank service. See scrshot
Please help me how to get ride of this service alert which is orphaned.
Regards, Gregor
Under Home Dashboard -> Service Status Summary -> Critical we are seeing blank service. See scrshot
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
Hi Gregor,
That is odd. Let's re-start the Nagios Service.
Then apache.
And then try to force an immediate check. Does it update and continue to update?
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
That is odd. Let's re-start the Nagios Service.
Code: Select all
systemctl stop nagios.service
killall -9 nagios
systemctl start nagios.service
Code: Select all
systemctl restart httpd
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!
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
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.
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
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).
Lastly, we can determine what host that service is part of by searching the archives, go to:
And then do a recursive search for that string in the GUI and let me know the results. Thanks, Benjamin
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
Code: Select all
cd /usr/local/nagios/var/archives
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!
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
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
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
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
Hi Ssax,
I have sent you PM with output.
Regards, Gregor
I have sent you PM with output.
Regards, Gregor
Re: Orphaned service alert
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
Thank you. It worked. This can be closed.
Regards, Gregor
Regards, Gregor