Hello,
I'm using version 1.0 of Zabbix server on Windows 2000/cygwin (btw. server works ok, I only had to substitute fping binary with perl script plus little 'cosmetic' changes to the sources).
In one of the triggers and action message I have this expression: {host.example.com:check_service[http,192.168.1.1,3128].last(0)}<1, but messages are coming without this macro evaluated to the result value.
It looks like substitute_macros() in expression.c accounts only for {127.0.0.1:system[procload].last(0)} like macros, but it chockes on dots inside macro (like in IP addresses).
Wouldnt it be better to use some regexp library to substitute macros (and probably to do other things) ?
I think its duplicate of bug 924959
I'm using version 1.0 of Zabbix server on Windows 2000/cygwin (btw. server works ok, I only had to substitute fping binary with perl script plus little 'cosmetic' changes to the sources).
In one of the triggers and action message I have this expression: {host.example.com:check_service[http,192.168.1.1,3128].last(0)}<1, but messages are coming without this macro evaluated to the result value.
It looks like substitute_macros() in expression.c accounts only for {127.0.0.1:system[procload].last(0)} like macros, but it chockes on dots inside macro (like in IP addresses).
Wouldnt it be better to use some regexp library to substitute macros (and probably to do other things) ?
I think its duplicate of bug 924959
Comment