Ad Widget

Collapse

NetApp VSIM traps giving Value of type String is not suitable for value type Numeric

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vastseasailor
    Junior Member
    • Sep 2024
    • 2

    #1

    NetApp VSIM traps giving Value of type String is not suitable for value type Numeric

    Hello,

    For educational purposes, I have set up a Zabbix lab to monitor the NetApp Data ONTAP Simulator, which is essentially a virtual machine mimicking a NetApp NAS Cluster.
    • I have set up the snmptrap.fallback item for the Zabbix server
    • I have added a host object to Zabbix with the snmptrap.fallback item using the IP addresses of the two Simulator nodes
    • I have linked the NetApp AFF A700 by HTTP template to the host object and successfully are able to pull all metrics from the simulator
    • test traps are written successfully to /tmp/zabbix_traps.tmp for both local (snmptrap command) and remote traps (sending test traps from the Simulator)
    However, while local traps are processed successfully within Zabbix, I am seeing the following error for traps coming from the simulator:

    Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "2024-09-16T08:42:37-0400 PDU INFO:
    receivedfrom UDP: [172.16.4.11]:161->[172.16.3.42]:162
    transactionid 4
    version 0
    errorstatus 0
    notificationtype TRAP
    community public
    requestid 0
    messageid 0
    errorindex 0
    VARBINDS:
    DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (2424500) 6:44:05.00
    SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: NETAPP-MIB::appTrap
    NETAPP-MIB:ProductTrapData.0 type=4 value=STRING: "SNMPTEST: SNMPTEST SNMPTEST: (11) SNMPTEST: SNMPTEST"
    NETAPP-MIB:ProductSerialNum.0 type=4 value=STRING: "1-80-000011"
    SNMP-COMMUNITY-MIB::snmpTrapAddress.0 type=64 value=IpAddress: 172.16.4.11
    SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 type=4 value=STRING: "public"
    SNMPv2-MIB::snmpTrapEnterprise.0 type=6 value=OID: NETAPP-MIB::netapp"


    This is what I tried so far:
    • changing the host's SNMP interface from SNMPv2c to SNMPv1 (because ONTAP only supports v1 and v3)
    • tried to change the $DateTimeFormat in zabbix_trap_receiver.pl from '%Y-%m-%dT%T%z' to $DateTimeFormat to '%Y-%m-%dT%H:%M:%S%z' because maybe the timestamp within the trap is malformed
    Do I need to pre-proccess the zabbix_traps.tmp somehow? What would be the correct format so that Zabbix can process the traps properly?
    Regards
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Set your items "type of information" to "log". It seems to be "numeric(unsigned)" for now...
    Click image for larger version

Name:	image.png
Views:	89
Size:	6.9 KB
ID:	491358

    Comment

    • vastseasailor
      Junior Member
      • Sep 2024
      • 2

      #3
      Thank you cyber, this worked instantly.

      Comment

      Working...