Title. Currently the graphs only show in 24-hour time. Is there a setting I can change so the graphs can show in 24-hour time?
I have never seen a setting for that… but you can take a look in here https://docs.librenms.org/Support/Configuration/
I had a look through it and did not find any setting that would change the graphs to 12hr time. I guess it is not something that is implemented?
I tried changing these settings:
$config[‘alert_graph_date_format’] = ‘%m-%d-%Y %h:%i’
$config[‘dateformat’][‘compact’] = ‘m-d-Y h:i:s’
$config[‘dateformat’][‘byminute’] = ‘m-d-Y h:i’
$config[‘dateformat’][‘time’] = ‘h:i:s’
$config[‘dateformat’][‘mysql’][‘compact’] = ‘%m-%d-%Y %h:%i:%s’
$config[‘dateformat’][‘mysql’][‘date’] = ‘%m-%d-%Y’
$config[‘dateformat’][‘mysql’][‘time’] = ‘%h:%i:%s’
And restarted and it didn’t seem to change anything.
Having a 12 hour clock on a graph would confuse me
I think you would have to change the way RRD is drawing https://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html
%I
The hour as a decimal number using a 12-hour clock (range 01 to 12).
Someone may know if you can do this without breaking your setup,
I had a quick look and it may be possible to use this setting in combination as a config variable using rrdgraph_def_text
… or … rrd_opts_array
I would be adding that to here?
This line?
$config[‘rrdgraph_def_text’] = ‘PRINT:vname:%I:%M:%s%p’
No config variables go in config.php and is update proof.
If you modify files that librenms uses you can run into problems down the line, as auto-updating will stop working for that modified file.
Alright. I might back out of this idea then if it will just cause problems.
Just to be clear, you’re saying I can’t edit /opt/librenms/config.php with config variables?
you can modify /opt/librenms/config.php
but if you modify that file you suggested /html/includes/collectd/config.php it may conflict in future updates
Thank you for clarifying and the support.