Page 1 of 1

Cannot Delete Service

Posted: Fri Oct 07, 2016 5:50 am
by peter19x
Hello,

I have sent some passive checks to nagios xi that had invalid argument in the services value.

So after I accepted the checks it couldn't apply the configuration which is normal. But somehow the services are now in my nagios config.

And when I try to delete them it gives me an error as per the image attached.

Re: Cannot Delete Service

Posted: Fri Oct 07, 2016 8:12 am
by developerx9
Hi,

Have you imported them manually?
If so , remove them form /usr/local/nagios/etc/import/*

else, manually modify the checks in /usr/local/nagios/etc/services/ and run the reconfigure_nagios scripts in /usr/local/nagiosxi/scripts/

Re: Cannot Delete Service

Posted: Fri Oct 07, 2016 10:15 am
by dwhitfield
On top of @developerx9's suggestion, could you please let us know what OS version and what version of XI you are running?

Your XI version is in the lower left of the web UI. Getting your OS version is going to depend on the OS, but is likely something like rpm --query centos-release

Re: Cannot Delete Service

Posted: Mon Oct 10, 2016 3:12 am
by peter19x
Hello,

Thank you for the reply.

My OS version is the below:

centos-release-6-6.el6.centos.12.2.x86_64

Best Regards,
Peter

Re: Cannot Delete Service

Posted: Mon Oct 10, 2016 9:22 am
by dwhitfield
For clarity, what's your XI version? It will show in the lower left of the WebUI.

Also, did you follow @developerx9's suggestion?

Re: Cannot Delete Service

Posted: Mon Oct 10, 2016 9:38 am
by peter19x
Hello,

Version is : Nagios XI 2014R2.7

Sorry I haven't read the previous reply. Thank you for that.

Somehow deleting the checks for each hosts separately made the trick.

Thank you,
Peter

Re: Cannot Delete Service

Posted: Mon Oct 10, 2016 9:40 am
by dwhitfield
It sounds like this issue has been resolved. Please let us know if I am misinterpreting that. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!

Re: Cannot Delete Service

Posted: Mon Oct 10, 2016 9:53 am
by peter19x
Yes problem solved. Thank you for your assistance

Re: Cannot Delete Service

Posted: Mon Oct 10, 2016 10:10 am
by dwhitfield
Glad to hear it is resolved. I am going to lock the thread.