Re: Bulk Renaming Tool - Performance data issue
Posted: Tue Nov 14, 2017 3:23 am
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?
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?