Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-3202

Macros {{HOSTNAME}:{TRIGGER.KEY}.last(0)} truncate long strings (255 symbols)

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Major Major
    • 1.8.4
    • 1.8.3
    • None
    • None
    • RHEL4, Zabbix 1.8.3, HP DL380G4

      Macros {{HOSTNAME}:

      {TRIGGER.KEY}.last(0)} truncate long strings

      I create UserParameter with long string (1000 symbol)
      /etc/zabbix/zabbix_agentd.conf
      UserParameter=string,/usr/bin/perl -we 'print "0123456789" x 100;'


      I create Action with macros {{HOSTNAME}:{TRIGGER.KEY}

      .last(0)}

      The line is cut off up to 255 symbols
      Subj: Zabbix Monitoring xxxxxx[127.0.0.1] test only strings: PROBLEM
      Date: Thu, 14 Oct 2010 15:42:44 +0400
      From: <XXXXX@XXXXXXX>
      To: <XXXXX@XXXXXXXX>

      Group: Linux servers; xxxxxxxxx
      [127.0.0.1] test only strings: PROBLEM
      test only
      Latest value
      012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234

            Unassigned Unassigned
            dima_dm Dmitry Maksimov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: