Unable to delete a service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Unable to delete a service

Post by tgriep »

If looks like those services are in these service groups.
Dutch DAX PROD Services Group
Dutch DAX UAT Services Group

If you go in to the Core Config Manager > Service Groups and delete the services from them, you should be able to delete those services.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Unable to delete a service

Post by Naveed »

Thank you very much!

Impacted service do not show in list of all services.

I go into Configure==> Core Config Manager > Service Groups and then select a service group

I cant find impacted service in list of services.

Screenshot is attached.

Thank you
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Unable to delete a service

Post by tgriep »

Lets run a repair of the MYSQL database and restart the processes to see if that fixes the issue.
Login as root to the XI server and run the following to do that

Code: Select all

cd /usr/local/nagiosxi/scripts
./repair_databases.sh
service nagios stop
service ndo2db stop
killall -9 nagios
killall -9 ndo2db
service mysqld restart
service ndo2db start
service nagios start
Wait a few minutes for the server to startup, login to the XI GUI and see if you can delete those services if they still exist.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Unable to delete a service

Post by Naveed »

Thank you!

I have followed the same procedure.

I have killed all processes and restart nagios and ndo2db services but mysql did not restart and generated followign error.

[root@AXmonitor scripts]# service mysqld restart
Redirecting to /bin/systemctl restart mysqld.service
Failed to issue method call: Unit mysqld.service failed to load: No such file or directory.

Kindly suggest.

Thank you!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Unable to delete a service

Post by rkennedy »

Try service mariadb restart instead.
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Unable to delete a service

Post by Naveed »

I have restarted service by suggested command and its in active state now.

I have found another problem in my one hostgroup, 2 services are in unknown state and both services are showing below error.

Note: I cant delete these services from GUI and these do not exist in nagios config files, I have checked it from CLI.

screenshot is attached.

One hostgroup is showing invalid password for all host for one service only..

Other hostgroup error is attached.

Thank you!
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Unable to delete a service

Post by rkennedy »

Let's continue this at your newest thread, as this is now related to the same issue going on, where you are unable to delete a service / track it down. This will help to keep us organized to one post, rather then all over the board.

https://support.nagios.com/forum/viewto ... 999#bottom
Former Nagios Employee
Locked