Details
Description
I would like to suggest using the device_id value for creating the rrd directory for each device. This would make it possible to change the hostnames during runtime. Currently the directories are linked with the hostnames which makes it hard to be flexibel in case of hostname changes. If you are also using external plugins i.e. Weathermap and you are changing the hostname.... you must adjust all linkes in the config files.
Use rename_device.php script:
./rename_device.php
USAGE:
rename_device.php <old hostname> <new hostname>
This script also rename rrd directory.
RRD dirrectory used hostname by design, this allow reuse same dirrectory and rrd files when delete an device, and re-add it later.