Ad Widget

Collapse

substitute_macros()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Przemek Czerkas
    Junior Member
    • Dec 2004
    • 5

    #1

    substitute_macros()

    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
    Last edited by Przemek Czerkas; 07-12-2004, 00:15.
  • mucknet
    Member
    • Dec 2004
    • 59

    #2
    I'm suffering from this same Issue.

    I'm also unable to create a trigger tha has a % in the key name.

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Originally posted by Przemek Czerkas
      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).
      I fixed it yesterday. Will be available in 1.1alpha4.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      Working...