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

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Major
    • 1.8.4
    • Affects Version/s: 1.8.3
    • Component/s: None
    • None
    • Environment:
      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

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

              Created:
              Updated:
              Resolved: