In systemstats_linux.c, in systemstats_v6_load_file, while parsing
/proc/net/snmp6,
two lines are confused:

Ip6InNoECTPkts                          14583
Ip6InNoRoutes                             0

However, when Ip6InNoECTPkts is encountered in , it is interpreted as
IpInNoRoutes, which shows up when the agent is walked:

pete@daffy:~/net-snmp-5.7.3$ snmpwalk -v 2c -c public localhost:161
ipSystemStatsInNoRoutes
IP-MIB::ipSystemStatsInNoRoutes.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsInNoRoutes.ipv6 = Counter32: 14583

I expect you need a better check against the text - possibly something like
(not tested extensively):

           ...
            } else if ('N' == line[5] && 'R' == line[7] ) {
                entry->stats.HCInNoRoutes.low = scan_val & 0xffffffff;
                entry->stats.HCInNoRoutes.high = scan_val >> 32;
                entry->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINNOROUTES] =
1;

The addition is ' && 'R' == line[7] ', so it's differentiated from
Ip6InNoECTPkts.

Pete
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to