Hello. This is Miyashita, who is in charge of the platform.
This time, when you change the hostname with the open source monitoring tool "munin",
Learn how to migrate your existing data as it is.
The version of munin to be used is 1.4.5.
- Transfer RRD data.
Migrate the data of the "RRD tool" that depicts the graph of munin.
[shell] # cd /var/lib/munin/DIR # rename test01 test01-old ./test01-* [/shell]
It moves to a storage location and converts files in bulk.
- Transfer the HTML file.
[shell] # cd /var/www/html/munin/DIR # mkdir test01-old # chown munin:munin test01-old # cp -pfR test01/* test01-old/ [/shell]
Move the generated HTML and image files together.
If you already have a directory to move to, skip mkdir and chown.
Also, depending on the OS, it may have "cp -i" in alias.
At that time, use the backslash to move in bulk.
[shell] # \cp -pfR test01/* test01-old/ [/shell]
The data will now be updated with the new hostname from the next collection interval.
It's a simple task, but I feel like it's a waste to throw away past data.
In such a case, please move the data with it.