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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -