Looking for a way to delete and reconfigure services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Looking for a way to delete and reconfigure services

Post by CFT6Server »

I agree it isn't difficult but it is definitely tedious. That's why I was looking for a way to automate this. I read up on the automation documentation, but I don't think it applies to a particular service.

Also since I was tied to making the edits in GUI, I was looking for a way to do exact match searches, but I couldn't get that to work, so ended up having to click through the GUI.

I think this is ok for smaller implementations, but in our case, if we needed to remove or edit a particular service, going through the GUI can be time consuming.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Looking for a way to delete and reconfigure services

Post by tmcdonald »

I had worked on some code a while back that would let me delete a host with attached services by first deleting those services then deleting the host. This worked in only the simplest of cases - if there were parent/child relationships, groups, dependencies, or basically anything else that would prohibit deletion it broke things pretty hardcore. This is one of the big problems with the relationship chain, it gets really hard to know for sure that something is safe to delete because of the nearly-recursive amount of work that needs to be done to verify all of this. I'm sure it can be done, but it'll need a ton of testing and would likely not be here any time soon.
Former Nagios employee
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Looking for a way to delete and reconfigure services

Post by CFT6Server »

Thanks for the input. I understand the complexity that's involved here, so for now I guess the best way is to do a search and manually uncheck/check the services to remove, then the host if applicable.

One item: Does the search support "exact match"? or could be a feature down the road?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Looking for a way to delete and reconfigure services

Post by lmiltchev »

Currently, this functionality doesn't exist in XI but I believe it could be easily added in one of our future releases. I posted an internal feature request (TASK ID 7233). Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Looking for a way to delete and reconfigure services

Post by bwallace »

CFT6Server, did you have any other questions or may we lock this thread?
Be sure to check out the Knowledgebase for helpful articles and solutions!
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Looking for a way to delete and reconfigure services

Post by CFT6Server »

Please lock this thread. Thanks.
Locked