Page 2 of 2

Re: Bulk Renaming Tool - Performance data issue

Posted: Tue Nov 14, 2017 3:23 am
by jacek
Thanks to You I corrected this.
In fact I only needed to correct the rotated files, as the change is a few weeks old.

In the /usr/local/nagios/var/archives
I did a: sed -i'backup/*' 's/OldHost-/NewHost-/g' nagios*

So it replaced all "OldHost-" with a "NewHost-" in all "nagios*" files. Before that I created an backup directory and all changed files ended up in that one (due to the -i'backup/*' part).

Worked like a charm, maybe instead of changing the description of Bulk Renaming Tool it would be better to improve it?

Re: Bulk Renaming Tool - Performance data issue

Posted: Tue Nov 14, 2017 10:35 am
by kyang
Glad you did a sed command and it worked!
Worked like a charm, maybe instead of changing the description of Bulk Renaming Tool it would be better to improve it?
I'll put in a feature request for a more detailed Bulk Renaming Tool description.
That would a good idea. I'm sure it's in the works, but there is no set date for it. Something was said internally by @dwhitfield in the meantime thanks for the resolution!

Did you have any more questions or are we okay to close this up?

Re: Bulk Renaming Tool - Performance data issue

Posted: Tue Nov 14, 2017 10:39 am
by jacek
Nope, You can close this one :)
Thanks!

Re: Bulk Renaming Tool - Performance data issue

Posted: Tue Nov 14, 2017 10:40 am
by kyang
Sounds good! I'll be closing this topic as resolved!

If you have any more questions, feel free to create another thread!

Thank you for using the Nagios Support Forum!