-
-
Notifications
You must be signed in to change notification settings - Fork 427
Description
Feature Request
Add support to display Graphs of devices using the TimeZone of the location/site they are actually sitting in
An example would be to have the server and user sit in Europe/Berlin, looking at a device in America/Denver, so the graph is actually displaying the local time on the X-Axis.
Describe the solution you'd like
I see several options for doing this:
-> Graphs belonging to a single device ( host_id > 0 in graph_local ) and the device is configured to have a site
Before calling the rrdtool command, the timezone of the site should be fetched and provided to the proc_open command as an environment variable :
$env = array('TZ' => 'America/Denver');
$process = proc_open(read_config_option('path_rrdtool') . ' - ' . $debug, $descriptorspec, $pipes,sys_get_temp_dir(),$env);
-> Graphs Templates provide an addition field for TimeZones , defaulting to a not-set value. The graphs can be configured to use a specific TimeZone for displaying the graph
It should be possible to disable/enable this feature. Either Globally/By User and/ or for each graph at the specific site.
Describe alternatives you've considered
n/a