Hi all,
First post, please let me know if I'm not in the right location.
I'm getting 2 different results when running system.localtime[local] -
root@~ # zabbix_get -s xxxxxxx1 -k "system.localtime[local]"
2019-05-02,05:56:45.974,-04:00
root@~ # zabbix_get -s xxxxxxx2 -k "system.localtime[local]"
2019-05-02,18:56:57.859,+09:00
When I run only system.localtime I get the same epoch time, so this issue must be related to the local function in some way so I ran the command - date on both servers, they are set for JST.
So I'm not really sure how the local function works or how it fetches the time exactly, I mean both the above times that returned are shown for similar timezone, but I want it to show the time relating to UTC as server #2 shown.
Thanks!
First post, please let me know if I'm not in the right location.
I'm getting 2 different results when running system.localtime[local] -
root@~ # zabbix_get -s xxxxxxx1 -k "system.localtime[local]"
2019-05-02,05:56:45.974,-04:00
root@~ # zabbix_get -s xxxxxxx2 -k "system.localtime[local]"
2019-05-02,18:56:57.859,+09:00
When I run only system.localtime I get the same epoch time, so this issue must be related to the local function in some way so I ran the command - date on both servers, they are set for JST.
So I'm not really sure how the local function works or how it fetches the time exactly, I mean both the above times that returned are shown for similar timezone, but I want it to show the time relating to UTC as server #2 shown.
Thanks!
Comment