Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-3899

Possibility to convert SNMP DateandTime to Timestamp in Preprocessing

    XMLWordPrintable

    Details

    • Type: New Feature Request
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4 (plan)
    • Fix Version/s: None
    • Component/s: Frontend (F), Server (S)
    • Labels:
      None

      Description

      We have several systems with SNMP-Values of octetstring, formatted in a special manner for Date and Time:

      ateAndTime ::= TEXTUAL-CONVENTION
      DISPLAY-HINT "2d-1d-1d,1d:1d:1d.1d,1a1d:1d"
      STATUS current
      DESCRIPTION
      "A date-time specification.

      field octets contents range
      ----- ------ -------- -----
      1 1-2 year 0..65536
      2 3 month 1..12
      3 4 day 1..31
      4 5 hour 0..23
      5 6 minutes 0..59
      6 7 seconds 0..60
      (use 60 for leap-second)
      7 8 deci-seconds 0..9
      8 9 direction from UTC '+' / '-'
      9 10 hours from UTC 0..11

      10 11 minutes from UTC 0..59

      For example, Tuesday May 26, 1992 at 1:30:15 PM EDT would be
      displayed as:

      1992-5-26,13:30:15.0,-4:0

      Note that if only local time is known, then timezone
      information (fields 8-10) is not present."
      SYNTAX OCTET STRING (SIZE (8 | 11))

      For us it is useful to get this converted into a timestamp so that we can work with several trigger functions. I know about the new feature of preprocessing and I think this functionality could be a good additional feature to have it implemented.

      Kind Regards,
      Kay

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            kschreoder Kay Schroeder
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: