Ad Widget

Collapse

Problem with macros

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • toteleiche
    Junior Member
    • Mar 2008
    • 9

    #1

    Problem with macros

    Hello there

    I've got a problem with the macros witch I use in E-Mail Messages sent by Zabbix.

    Used system:
    RedHat 5.1
    Zabbix 1.4.5
    MySQL

    My trigger expression looks like this:
    Code:
    ({host:system.cpu.load[,avg15].min(2700)}>10)|({host:system.cpu.util[percent].min(2700)}>90)
    "system.cpu.util[percent]" is a custom key for Windows CPU Utilisation in percent

    And in my action I've got following:
    Code:
    Date: {DATE}
    Hostname: {HOSTNAME}
    Severity: {TRIGGER.SEVERITY}
    
    Current value:
    {ITEM.NAME}: {ITEM.LASTVALUE}
    Now when the first expression gets triggered, I get this message:
    Code:
    Date: 2008.07.28
    Hostname: host
    Severity: High
    
    Current value:
    Processor load15: 4 %
    I looks like Zabbix messes up the ITEM.NAME and LASTVALUE, it should be at least the same Item (Manual says the first one).

    Is this a bug or am I doing something wrong ?
  • linuxdan
    Junior Member
    • Sep 2008
    • 18

    #2
    Zabbix might be trying to interpret the colon.

    I'm pretty new to this so I might be way off but try replacing
    Code:
    {ITEM.NAME}: {ITEM.LASTVALUE}
    with
    Code:
    {ITEM.NAME}  =  {ITEM.LASTVALUE}
    or some other character. I'm still trying to figure out how to do macros correctly for actions so this probably won't work, but its worth a shot.

    Comment

    Working...