Ad Widget

Collapse

Can Not get VALUE of TRIGGER.KEY in Action

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RandySpinaGE
    Member
    • Jun 2006
    • 57

    #1

    Can Not get VALUE of TRIGGER.KEY in Action

    What am I doing wrong?

    Action on condition severity I do get the email with correct subject (simply using {TRIGGER.NAME}: {STATUS} for subject ...but for the message body this is what I am getting.......

    3 different set ups (in the "configuration of actions"):

    {TRIGGER.NAME}: {STATUS} : {HOSTNAME} : {TRIGGER.KEY}.last(0)
    returns in email message body ->
    fsproc web response time: ON : Zabbix_Server : geaifspoc_http_response.last(0)

    {TRIGGER.NAME}: {STATUS} : {HOSTNAME} : {{TRIGGER.KEY}.last(0)}
    returns in email message body ->
    fsproc web response time: ON : Zabbix_Server :

    {TRIGGER.NAME}: {STATUS} : {{HOSTNAME} : {TRIGGER.KEY}.last(0)}
    returns in email message body ->
    fsproc web response time: ON :

    I am running 1.1 (no 1.1.1 or 1.1.2 with expression.c fix) just 1.1

    The closest I get is the NAME of the ITEM but NOT the Value.

    Thanks for any help..
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    This sounds suspiciously like some of the things listed in Zabbix 1.1.2 Actions
    Unofficial Zabbix Developer

    Comment

    • alj
      Senior Member
      • Aug 2006
      • 188

      #3
      Originally posted by RandySpinaGE
      What am I doing wrong?

      Action on condition severity I do get the email with correct subject (simply using {TRIGGER.NAME}: {STATUS} for subject ...but for the message body this is what I am getting.......

      3 different set ups (in the "configuration of actions"):

      {TRIGGER.NAME}: {STATUS} : {HOSTNAME} : {TRIGGER.KEY}.last(0)
      returns in email message body ->
      fsproc web response time: ON : Zabbix_Server : geaifspoc_http_response.last(0)

      {TRIGGER.NAME}: {STATUS} : {HOSTNAME} : {{TRIGGER.KEY}.last(0)}
      returns in email message body ->
      fsproc web response time: ON : Zabbix_Server :

      {TRIGGER.NAME}: {STATUS} : {{HOSTNAME} : {TRIGGER.KEY}.last(0)}
      returns in email message body ->
      fsproc web response time: ON :

      I am running 1.1 (no 1.1.1 or 1.1.2 with expression.c fix) just 1.1

      The closest I get is the NAME of the ITEM but NOT the Value.

      Thanks for any help..
      {{HOSTNAME}:{TRIGGER.KEY}.last(0)} works for me fine in 1.1.2

      Heres what i have in Action message body:
      {TRIGGER.NAME}: {STATUS}
      Host: {HOSTNAME} Date: {DATE} Time: {TIME}
      {TRIGGER.KEY} = {{HOSTNAME}:{TRIGGER.KEY}.last(0)}

      Comment

      • RandySpinaGE
        Member
        • Jun 2006
        • 57

        #4
        I know James..... But I in "zabbix 1.1.2 Actions" post dantheman said it broke "AFTER upgrade to 1.1.2".

        AND that thread resulted in requirement of recompiling Zabbix using a new expression.c after upgrade

        I thought I HAD (the value) working before but wasn't getting the {HOSTNAME} when inside the {{HOSTNAME:{TRIGGER.KEY}.last(0)} clause... Moving the {HOSTNAME} outside I then lost the value.

        I was trying to avoid the upgrade AND re-compile till maybe 1.4 (wishful thinking)

        Maybe I should just bite the bullet.....

        Comment

        • dantheman
          Senior Member
          • May 2006
          • 209

          #5
          If you download the updated expression.c file you can just replace the one you downloaded before you do your initial compiling with the new version.. no need to compile it twice.

          Comment

          Working...