Hello XI support
We have many old services (directly renamed)
How to cleanup them properly?
Thank you
How to cleanup unused (previuosly renamed) services?
Re: How to cleanup unused (previuosly renamed) services?
Can you please give a little more detail on what's going on here? Do you have duplicate services? If you want to clean up services, you can just delete the ones you don't want.
Former Nagios Employee.
me.
me.
Re: How to cleanup unused (previuosly renamed) services?
If you've got a bunch of old/unused cfg files in your /hosts /services paths, you can use the CCM tools to purge these.
1. Backup your instance (CYA)
2. Go to CCM-->Tools-->Write Config Files
3. Click 'Delete' under "Delete All Host / Service Configuration Files"
4. Once that completes, go back and click 'Write', 'Verify', 'Restart' on the same screen to refresh all cfg files and restart the engine.
If you're talking about services that listed in the CCM, then you're stuck manually deleting them, I believe.
1. Backup your instance (CYA)
2. Go to CCM-->Tools-->Write Config Files
3. Click 'Delete' under "Delete All Host / Service Configuration Files"
4. Once that completes, go back and click 'Write', 'Verify', 'Restart' on the same screen to refresh all cfg files and restart the engine.
If you're talking about services that listed in the CCM, then you're stuck manually deleting them, I believe.
You do not have the required permissions to view the files attached to this post.
Andrew J. - Do you even grok?
Re: How to cleanup unused (previuosly renamed) services?
Thanks @vAJ!
@dlukinski - let us know when you have a chance to look at the previous responses.
@dlukinski - let us know when you have a chance to look at the previous responses.
Former Nagios Employee
Re: How to cleanup unused (previuosly renamed) services?
That'll definitely work for the config files, but for the CCM we'll need a bit more detail as @hsmith mentioned. You might try looking at the Bulk Modifications tool under the CCM -> Tools menu, but you'll either need the Enterprise Edition license, or to activate the free 60-day trial in order to use it.
Former Nagios employee
Re: How to cleanup unused (previuosly renamed) services?
This is not what I meant, maybe I have mixed Core VS XI
- when service was renamed w/o using renaming tool in XI, will the old version simply disappear and is there any cleanups required VS database?
Thank you
- when service was renamed w/o using renaming tool in XI, will the old version simply disappear and is there any cleanups required VS database?
Thank you
Re: How to cleanup unused (previuosly renamed) services?
It depends how you renamed it. If you renamed it in the CCM (CCM->Services->Edit->Change "Description"->Save->Apply Configuration), the "old version" would disappear as your service would be renamed. If you renamed it in the CLI, next time you apply configuration, all of the changes would be wiped out as the text configs will be overwritten with whatever is in the database.- when service was renamed w/o using renaming tool in XI, will the old version simply disappear and is there any cleanups required VS database?
How did you rename your service? Can you describe in more details?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: How to cleanup unused (previuosly renamed) services?
Renamed directly in CLI & CCM (XI)lmiltchev wrote:It depends how you renamed it. If you renamed it in the CCM (CCM->Services->Edit->Change "Description"->Save->Apply Configuration), the "old version" would disappear as your service would be renamed. If you renamed it in the CLI, next time you apply configuration, all of the changes would be wiped out as the text configs will be overwritten with whatever is in the database.- when service was renamed w/o using renaming tool in XI, will the old version simply disappear and is there any cleanups required VS database?
How did you rename your service? Can you describe in more details?
- so old versions would be wiped - no need to worry? (say where service name or description was different and no renaming tool used)
Re: How to cleanup unused (previuosly renamed) services?
As long as you do it in the UI, it should be renamed. If you do it via the command line, the changes will be lost next time you apply a configuration.
Former Nagios Employee.
me.
me.
Re: How to cleanup unused (previuosly renamed) services?
alright, when renamed, history is typically lost.hsmith wrote:As long as you do it in the UI, it should be renamed. If you do it via the command line, the changes will be lost next time you apply a configuration.
Now, does it remain in the DB, or also lost? (remains and has to be cleaned or removed by the system)