Collectd doesn't store any data when encountering a genErr SNMP error
Description
Acceptance / Success Criteria
None
Lucidchart Diagrams
Activity
Show:

Cyrille Bollu October 5, 2016 at 10:46 AM
For the record, I've the following errors in my agent's logs:
Oct 5 06:27:48 otrs-prod snmpd[13207]: snmp_build: unknown failure
Oct 5 06:27:48 otrs-prod snmpd[13207]: send response: Error building ASN.1 representation (wrong type in snmp_realloc_rbuild_var_op: 199)
Oct 5 06:27:48 otrs-prod snmpd[13207]: -- iso.3.6.1.2.1.31.1.1.1.13.1
Oct 5 06:27:48 otrs-prod snmpd[13207]: -- iso.3.6.1.2.1.31.1.1.1.14.2
Oct 5 06:27:48 otrs-prod snmpd[13207]: -- iso.3.6.1.2.1.31.1.1.1.19.1
Oct 5 06:27:48 otrs-prod snmpd[13207]: -- iso.3.6.1.4.1.8072.1.2.1.1.4.0.1.0.0
Oct 5 06:27:48 otrs-prod snmpd[13207]: message repeated 3 times: [ -- iso.3.6.1.4.1.8072.1.2.1.1.4.0.1.0.0]
Oct 5 06:27:48 otrs-prod snmpd[13207]: -- iso.3.6.1.4.1.674.10892.1.600.60.1.6
Oct 5 06:27:48 otrs-prod snmpd[13207]: -- iso.3.6.1.4.1.674.10892.1.600.60.1.7
Oct 5 06:27:48 otrs-prod snmpd[13207]: -- iso.3.6.1.4.1.674.10892.1.600.60.1.9
Oct 5 06:27:48 otrs-prod snmpd[13207]: -- iso.3.6.1.2.1.31.1.1.1.13.2
Oct 5 06:27:48 otrs-prod snmpd[13207]: -- iso.3.6.1.2.1.31.1.1.1.14.2
Oct 5 06:27:48 otrs-prod snmpd[13207]: -- iso.3.6.1.2.1.31.1.1.1.19.2
Oct 5 06:27:48 otrs-prod snmpd[13207]: -- iso.3.6.1.4.1.8072.1.2.1.1.4.0.1.0.0
Oct 5 06:27:48 otrs-prod snmpd[13207]: message repeated 3 times: [ -- iso.3.6.1.4.1.8072.1.2.1.1.4.0.1.0.0]
Oct 5 06:27:48 otrs-prod snmpd[13207]: -- iso.3.6.1.4.1.674.10892.1.600.60.1.6
Oct 5 06:27:48 otrs-prod snmpd[13207]: -- iso.3.6.1.4.1.674.10892.1.600.60.1.7
Oct 5 06:27:48 otrs-prod snmpd[13207]: -- iso.3.6.1.4.1.674.10892.1.600.60.1.9

Cyrille Bollu October 5, 2016 at 9:48 AM
Ericsson datacollection-group issue created: https://issues.opennms.org/browse/NMS-8788

Cyrille Bollu October 5, 2016 at 9:44 AM
since it seems there's a problem with the "Ericsson" datacollection-group, I'll create another issue for this later.
Details
Assignee
UnassignedUnassignedReporter
Cyrille BolluCyrille BolluLabels
Components
Affects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter

Labels
Components
Affects versions
Priority
PagerDuty
PagerDuty Incident
PagerDuty
PagerDuty Incident
PagerDuty

PagerDuty Incident
Created October 5, 2016 at 9:42 AM
Updated September 21, 2021 at 6:24 PM
I've a SNMP agent which generates an snmp packet error when requested an invalid OID.
This causes collectd to not store any SNMP data for this node.
Collectd should still store other datacollection groups.
Here's the logs in collectd:
2016-10-05 15:23:31,313 WARN [DefaultUDPTransportMapping_0.0.0.0/0] o.o.n.c.SnmpNodeCollector: genErr collecting data for node 10.21.0.3: Received genErr requesting oid .1.3.6.1.4.1.193.113.1.1.1.1.1.3. Marking column is finished. 2016-10-05 15:23:31,314 WARN [DefaultUDPTransportMapping_0.0.0.0/0] o.o.n.c.SnmpNodeCollector: genErr collecting data for node 10.21.0.3: Received genErr requesting oid .1.3.6.1.4.1.193.113.1.1.1.1.2.1. Marking column is finished. 2016-10-05 15:23:31,315 WARN [DefaultUDPTransportMapping_0.0.0.0/0] o.o.n.c.SnmpNodeCollector: genErr collecting data for node 10.21.0.3: Received genErr requesting oid .1.3.6.1.4.1.193.113.1.1.1.1.2.2. Marking column is finished. 2016-10-05 15:23:31,316 WARN [DefaultUDPTransportMapping_0.0.0.0/0] o.o.n.c.SnmpNodeCollector: genErr collecting data for node 10.21.0.3: Received genErr requesting oid .1.3.6.1.4.1.193.113.1.1.1.1.2.3. Marking column is finished. 2016-10-05 15:23:31,317 WARN [DefaultUDPTransportMapping_0.0.0.0/0] o.o.n.c.SnmpNodeCollector: genErr collecting data for node 10.21.0.3: Received genErr requesting oid .1.3.6.1.4.1.193.113.1.1.1.1.2.4. Marking column is finished. 2016-10-05 15:23:31,319 WARN [DefaultUDPTransportMapping_0.0.0.0/0] o.o.n.c.SnmpNodeCollector: genErr collecting data for node 10.21.0.3: Received genErr requesting oid .1.3.6.1.4.1.193.113.1.1.1.1.2.5. Marking column is finished. 2016-10-05 15:23:31,333 WARN [DefaultUDPTransportMapping_0.0.0.0/0] o.o.n.c.SnmpNodeCollector: genErr collecting data for node 10.21.0.3: Received genErr requesting oid .1.3.6.1.4.1.193.113.1.1.1.1.2.6. Marking column is finished.
Here's the error shown when snmpwalking one of this OID:
root@opennms:/etc/opennms/datacollection# snmpwalk -v 3 -a SHA -A xxxxxxxxxxxxx -x AES -X xxxxxxxxxxx -u opennms -l AuthPriv 10.21.0.3 .1.3.6.1.4.1.193.113.1.1 Error in packet. Reason: (genError) A general failure occured Failed object: SNMPv2-SMI::enterprises.193.113.1.1 SNMPv2-SMI::enterprises.193.113.1.1 = No Such Object available on this agent at this OID
The agent replies correctly for other OID's:
root@opennms:/etc/opennms/datacollection# snmpwalk -On -v 3 -a SHA -A xxxxxxxxxxxxx -x AES -X xxxxxxxxxxxxxxx -u opennms -l AuthPriv 10.21.0.3 sysObjectID .1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.8072.3.2.10