Ad Widget

Collapse

{ITEM.VALUE} doesn't always display multiline

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nono
    Junior Member
    • Nov 2018
    • 9

    #1

    {ITEM.VALUE} doesn't always display multiline

    Hi there,

    I'm freshly using Zabbix 4.0.1 and I can't figure out an option or an explanation on the follow issue :
    I'm sending multi-line text via zabbix_sender and I'm catching them via an item "Zabbix Trapper", type : text + a trigger showing {ITEM.VALUE} (1).
    On top of that, I also have an action for this same trigger, sending a message with description {ITEM.VALUE) (2)

    When I'm on my dashboard, showing the widget "Problems" with default configuration, {ITEM.VALUE} (1) don't display multiline: https://imgur.com/4vJdlpg
    When a click on the respective date of this problem, the {ITEM.VALUE} (2) is showing the multiline on the right side of the event details: https://imgur.com/a/5FkyZtC

    Could it be an option that i'm missing ?

    Let me know if you may need any other information.

    Many thanks in advance !



  • Nono
    Junior Member
    • Nov 2018
    • 9

    #2
    By "hacking" a bit the CSS (styles/blue-theme.css), I succeed to get what I wanted.
    Changing line 82 from :
    Code:
    .link-action {
    to:
    Code:
    .link-action {
    white-space: pre-wrap;

    Comment

    • luckygrin
      Junior Member
      • Nov 2019
      • 1

      #3
      Have the same issue with {ITEM.VALUE} multiline display. I made several triggers on SMMP Traps. Zabbix receive SNMP Traps through smnptrapd + zabbix_trap_receiver.pl script.
      I can see incoming Traps in Latest Data history.
      All lines of Trap are displayed.


      I want to see all these lines in trigger description. I use
      Code:
      {{ITEM.LASTVALUE}.regsub("(.*)", \1)}
      expression in description field of a trigger.


      But when a trigger is launched I can see only first line in of an Snmp Trap in Problems Menu.



      Is there any way to see all Trap message in Trigger description field?
      Attached Files

      Comment

      Working...