Ad Widget

Collapse

Trap information (values) in trigger information

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ikkaro
    Junior Member
    • Jan 2013
    • 6

    #1

    Trap information (values) in trigger information

    Hi,

    I've setup my zabbix server to receive traps.
    All seems to work fine except one thing, I'm not able to show trap information in my triggers.
    For example using the macros ITEM.LASTVALUE or ITEM.VALUE.

    Let me show you my configuration, as an example I will use an interface down trap.

    File: snmptt.ini
    date_time_format = %H:%M:%S %Y/%m/%d

    File: snmptt.conf
    EVENT linkDown .1.3.6.1.6.3.1.1.5.3 "Status Events" Normal
    FORMAT ZBXTRAP $aA $* Link down on interface
    SDESC


    Zabbix item configuration in file z1.jpeg.
    Zabbix trigger configuration in file z2.jpeg.
    Zabbix trigger display in file z3.jpeg.
    Last value information in file z4.jpeg.

    What i want to do it's to show all the information about the trigger in the dashboard when the trigger it's activated.

    For example show this:
    Normal "Status Events" XXXXXXXXXXXXX - 109 Loopback666 24 administratively down Link down on interface
    It seems that the Last value of the item it's been parsed and it's selecting getting only the date.

    Can you help me?
    Attached Files
  • natalia
    Senior Member
    • Apr 2013
    • 159

    #2
    Originally posted by ikkaro
    I'm not able to show trap information in my triggers.
    For example using the macros ITEM.LASTVALUE or ITEM.VALUE.
    Hi,

    Did you find solution for this ?
    I have the same problem

    Thanks

    Comment

    • ikkaro
      Junior Member
      • Jan 2013
      • 6

      #3
      No, I don't.
      Maybe you can do something with version.

      Comment

      • steveboyson
        Senior Member
        • Jul 2013
        • 582

        #4
        Correct me if I'm wrong but AFAIK an item type of "log" does parse only the part which fits your defined "log time format" (which according your screen you have set to "hh:mm:ss yyyy/MM/dd") and discards the rest.

        Comment

        • natalia
          Senior Member
          • Apr 2013
          • 159

          #5
          I define trigger name : Trap - {ITEM.VALUE}

          but in dashboard it show only first word and then ... :

          Trap - Problem ...

          I know that it can show only 255 and it's ok for me but it not show 255.

          Thanks

          Comment

          • natalia
            Senior Member
            • Apr 2013
            • 159

            #6
            Originally posted by ikkaro
            Hi,

            I've setup my zabbix server to receive traps.
            All seems to work fine except one thing, I'm not able to show trap information in my triggers.
            For example using the macros ITEM.LASTVALUE or ITEM.VALUE.
            I find the problem :
            if ITEM define with type "log" and ITEM.VALUE length > 20 , it show only 20 symbols and the rest replace with ...

            check include/items.inc.php line 990 :

            case ITEM_VALUE_TYPE_LOG:
            if ($trim && zbx_strlen($value) > 20) {
            $value = zbx_substr($value, 0, 20).'...';
            }

            I changed 20 to 165 and it's ok for me now

            Comment

            Working...