Ad Widget

Collapse

ITEM.NAME macro not working with web monitoring scenarios

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jpriceit
    Junior Member
    • Feb 2008
    • 12

    #1

    ITEM.NAME macro not working with web monitoring scenarios

    Hi all,

    I'm using v1.6.1 and when I try to use something like this:

    Code:
    {ITEM.NAME}: {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
    AFAIK this works for everything except web monitoring scenarios. For web monitoring, the resultant email contains this instead:

    Code:
    Failed step of scenario '$1': 1
    I can only assume that '$1' is supposed to be a variable containing the scenario name, but is either not escaped correctly or is double-quoted incorrectly or none of the above; I don't know.

    uname -r:
    Code:
    2.6.24-21-server
    gcc -v:
    Code:
    Using built-in specs.
    Target: i486-linux-gnu
    Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
    Thread model: posix
    gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
    Last edited by jpriceit; 09-03-2009, 16:43. Reason: added kernel/gcc info
  • jpriceit
    Junior Member
    • Feb 2008
    • 12

    #2
    Reported as bug ZBX-778

    If anyone has any suggestions as to workarounds or hacks to get item description passed to the trigger or action correctly, I would be welcome to hear it.

    Also, if anyone knows where I could start looking, either in one of the php scripts or even in the C source, that would be a big help. If I figure out a clean fix for it I'll offer a patch.

    Thanks in advance.
    Last edited by jpriceit; 12-03-2009, 18:55.

    Comment

    Working...