I’m not seeing any errors when I run the validate script in the CLI and/or check the validate page in the webgui, but the time on the graphs is not showing the correct time/timezone. I forgot the path of the file that I need to edit to set the correct timezone from the CLI. Is it possible to change the time/timezone via the GUI?
Apparently it is also a setting for mysql. I shouldn’t have to go change the timezone in 3 places. While I understand Libre can’t change the timezone, the setup seems very broken/inefficient if changes need to be made in multiple places.
Yes, MySQL also has such a setting and it has to be updated. We all agree anything can be improved, and you are absolutely free to help the LibreNMS team improve the code.
As you know, the project is open source and exists only because all the LibreNMS team is doing it on their spare time.
Not a programmer, I don’t know how LibreNMS works with the server it’s running on, meaning, I wasn’t aware that LibreNMS couldn’t have a GUI option that changes the time in all places that are needed on the server that it is running on. Thanks.
Which file needs to be updated in order for the GUI time to be accurate? Is it all locations or only the PHP files? For example, if mysql timezone isn’t changed but php.ini files are changed/updated, will the GUI report the correct time?
@dt-lib you only need to change the system timezone and Done > Web GUI displaying/updated the correct date time
The syntax is as follows to set timezone and need to run as root user: # timedatectl set-timezone time_zone
In this example, set timezone to Asia/Jakarta # timedatectl set-timezone Asia/Jakarta
Verify new settings by typing the following two commands: # date# ls -l /etc/localtime