Is it possible to get system.localtime in particular format in zabbix? -


i have item prints local time of system , want design trigger works when local time on system < 6am

this item.

zabbix_get -s 192.168.201.101 -k system.localtime[local]

and output

2017-07-25,04:39:14.682,-05:00

i using zabbix 3.0.

how format item show time hhmmss (043914). want have in format can use in trigger expression -

if localtime > 060000 , <some_other_condition> raise alert

currently see zabbix raises alerts based on server time, cannot use inbuilt item.key.time(0) function server time different host time.

unfortunately, not possible currently. can use parameter utc, return unix timestamp. without knowing timezone, cannot calculate local time that. advanced value parsing, coming in zabbix 3.4, might allow calculate that, still messy.

it seems useful idea - please consider creating new feature request (make sure search existing requests).


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -