Skip to main content
NetApp Knowledge Base

StorageGRID SNMP Traps not decoding time on External SNMP Server

Last Updated:

Applies to

  • NetApp StorageGRID 
  • External SNMP Server
  • BigPanda


  • StorageGRID SNMP traps are sending successfully from NetApp to the SNMP server but not decoding time correctly.
  • SNMP trap showing incorrect values for activeAlertStartTime on external SNMP server.

Example output from \net\sg-snmp-agent.log in Lumberjack confirming SNMP trap sent successfully:

[2023-05-08T14:34:14.806]    INFO -- Sending alert notifications for ., startsAt 2023-05-08T14:33:31.841Z
2023-05-08T14:34:14.807]    INFO -- Sending SNMP v2c trap to IP_ADDRESS
[2023-05-08T14:34:15.110]    INFO -- Sending SNMP v2c trap to IP_ADDRESS

Examples of expected time output:

  • NETAPP-STORAGEGRID-MIB::activeAlertStartTime."bccfd77ef76f44f7"= STRING: 2023-3-7,2:22:27.2,+0:0
  • OID: Value: 7.E6.8.C.E.

Examples on external SNMP server:

pysnmp.proto.rfc1902.TimeTicks = 1692335151
pyasn1.type.univ.ObjectIdentifier =
pysnmp.proto.rfc1902.OctetString = +
pysnmp.proto.rfc1902.OctetString = NODE_NAME
pysnmp.proto.rfc1902.OctetString = ea242568f21b58a3
pysnmp.proto.rfc1902.OctetString = minor
pysnmp.proto.rfc1902.OctetString = 'CPU usage test'

2023-03-03 10:26:41,917 43 28799 DEBUG: got new SNMP trap notification
2023-03-03 10:26:41,917 83 28799 DEBUG: oid:, symbol: sysUpTime, mib: SNMPv2-MIB, value: 1692335151
2023-03-03 10:26:41,917 83 28799 DEBUG: oid:, symbol: snmpTrapOID, mib: SNMPv2-MIB, value:
2023-03-03 10:26:41,917 94 28799 DEBUG: protocol: v2, mib name: SNMPv2-MIB, symbol name: snmpTrapOID
2023-03-03 10:26:41,917 83 28799 DEBUG: oid:, symbol: activeAlertStartTime, mib: NETAPP-STORAGEGRID-MIB, value: +
2023-03-03 10:26:41,918 83 28799 DEBUG: oid:, symbol: activeAlertInstance, mib: NETAPP-STORAGEGRID-MIB, value: NODE_NAME
2023-03-03 10:26:41,918 83 28799 DEBUG: oid:, symbol: activeAlertId, mib: NETAPP-STORAGEGRID-MIB, value: ea242568f21b58a3
2023-03-03 10:26:41,918 83 28799 DEBUG: oid:, symbol: activeAlertSeverity, mib: NETAPP-STORAGEGRID-MIB, value: minor
2023-03-03 10:26:41,919 83 28799 DEBUG: oid:, symbol: activeAlertName, mib: NETAPP-STORAGEGRID-MIB, value: 'CPU usage test'
2023-03-03 10:26:41,919 107 28799 DEBUG: trap oid:, mib name: NETAPP-STORAGEGRID-MIB, symbol name: activeMinorAlert, payload: {'activeAlertSeverity': 'minor', 'activeAlertId': 'ea242568f21b58a3', 'sysUpTime': 1692335151, 'activeAlertInstance': 'NODE_NAME', 'activeAlertStartTime': '\x07\xe7\x03\x03\x10\x19\x1f\x08+\x00\x00', 'activeAlertName': "'CPU usage test'"}

Example in BigPanda logs:

2023-05-08 09:34:15,165 61 19952 DEBUG: before: {'activeAlertSeverity': 'minor', 'activeAlertId': 'a77df38106a3c346', 'sysUpTime': 24061459, 'activeAlertInstance': 'dub1sgsn02', 'activeAlertStartTime': '\x07\xe7\x05\x08\x0e!\x1f\x08+\x00\x00', 'activeAlertName': "'CPU usage test'"}
2023-05-08 09:34:15,165 169 19952 DEBUG: added primary field. primary_property: activeAlertInstance
2023-05-08 09:34:15,165 175 19952 DEBUG: added secondary field. secondary_property: activeAlertName
2023-05-08 09:34:15,165 83 19952 DEBUG: manipulated: {u'Status': 'minor', 'secondary_property': 'activeAlertName', 'snmp_source_port': 32892, 'mib': 'NETAPP-STORAGEGRID-MIB', 'snmp_community': 'public', 'sysUpTime': 24061459, 'activeAlertSeverity': 'minor', 'activeAlertId': 'a77df38106a3c346', 'snmp_port': 162, 'snmp_source_ip': 'IP_ADDRESS', 'snmp_trap_name': 'activeMinorAlert', 'primary_property': 'activeAlertInstance', 'activeAlertInstance': 'dub1sgsn02', 'activeAlertStartTime': '\x07\xe7\x05\x08\x0e!\x1f\x08+\x00\x00', 'status': u'warning', 'trap': 'activeMinorAlert', 'activeAlertName': "'CPU usage test'", 'snmp_trap_version': 'v2', 'snmp_protocol': 'udp'}
2023-05-08 09:34:15,166 58 19952 ERROR: failed to write trap payload to disk. file path: /var/lib/bigpanda/queue/bp_68331baa-edad-11ed-9d02-005056a2809f.json, trap payload: {u'Status': 'minor', 'secondary_property': 'activeAlertName', 'snmp_source_port': '32892', 'mib': 'NETAPP-STORAGEGRID-MIB', 'snmp_community': 'public', 'sysUpTime': '24061459', 'activeAlertSeverity': 'minor', 'activeAlertId': 'a77df38106a3c346', 'snmp_port': '162', 'snmp_source_ip': 'IP_ADDRESS', 'snmp_trap_name': 'activeMinorAlert', 'primary_property': 'activeAlertInstance', 'activeAlertInstance': 'NODE_NAME', 'activeAlertStartTime': '\x07\xe7\x05\x08\x0e!\x1f\x08+\x00\x00', 'status': u'warning', 'trap': 'activeMinorAlert', 'activeAlertName': "'CPU usage test'", 'snmp_trap_version': 'v2', 'snmp_protocol': 'udp'}

2023-05-08 09:34:15,166 67 19952 ERROR: failed to parse SNMP trap
Traceback (most recent call last):
  File "/opt/bigpanda/bigpanda-snmpd/bp_snmpd/translator/", line 62, in translate
    source, community, event_config=event_config)
  File "/opt/bigpanda/bigpanda-snmpd/bp_snmpd/manipulator/", line 86, in manipulate
  File "/opt/bigpanda/bigpanda-snmpd/bp_snmpd/emitter/", line 54, in emit
    dumps = json.dumps(trap_payload, indent=4, ensure_ascii=False, encoding=self.ENCODING)
  File "/usr/lib64/python2.7/json/", line 250, in dumps
    sort_keys=sort_keys, **kw).encode(obj)
  File "/usr/lib64/python2.7/json/", line 209, in encode
    chunks = list(chunks)
  File "/usr/lib64/python2.7/json/", line 434, in _iterencode
    for chunk in _iterencode_dict(o, _current_indent_level):
  File "/usr/lib64/python2.7/json/", line 390, in _iterencode_dict
    yield _encoder(value)
  File "/usr/lib64/python2.7/json/", line 233, in _encoder
    o = o.decode(_encoding)
  File "/usr/lib64/python2.7/encodings/", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe7 in position 1: invalid continuation byte


Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.