If you need to change the hostname of an existing munin node with a lot of data, and you want to retain all this existing historical data, follow this procedure:
Stop service and deactivate all munin crons:
1 2 | vim /etc/cron.d/munin-node vim/etc/cron.d/munin |
1 | cd /var/lib/munin/drobot.de/ |
Legend:
relay.drobot.de > old host name
jump.drobot.de > new host name
Go one directory higher and please make a backup of the rrd-files directory and go on with:
1 | rename -v 's/relay/jump/' relay.* |
Finally remove the old HTML directory:
1 | rm -rf /var/www/html/munin/relay.drobot.de |
Edit
1 | vim /etc/munin/munin.conf |
and rename your host in the host definition section:
1 2 3 | [jump.drobot.de] address 192.168.3.1 use_node_name yes |
Leave a Reply