Ad Widget

Collapse

Macro not resolving in trigger name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • t.kortekaas
    Junior Member
    • Jul 2013
    • 1

    #1

    Macro not resolving in trigger name

    Hello,

    System: Zabbix 2.0

    This question was perhaps answered multiple times, but i'm unable to find it.

    I have created a item that reads a TXT file. The TXT file contains a 1 or a 0.
    Based on the contents the trigger creates an error. It works.
    See info below,

    Item:
    Key --> vfs.file.contents[C:\Scripts\StatusVM.TXT]

    Trigger:
    Expression -->{servername:vfs.file.contents[C:\Scripts\StatusVM.TXT].last(0)}=1

    What I want to achieve is that I want the content of the TXT file be in the Trigger name. ( I plan to put (a)name(s) in the TXT file)

    I tried this:
    VM {TRIGGER.VALUE} not in back-up

    But the variable is not resolving. I can't seem to understand why.

    On this site, https://www.zabbix.com/documentation...ed_by_location
    As far as I understand it should work?

    Can someone please help me out with this, a link to a former thread where it is explained would suffice.

    TIA !
Working...