Skip to content

Commit 9af7ec8

Browse files
committed
Changed inBitRate and hashBytes from Gauge32 to CounterBasedGauge64.
1 parent 2149083 commit 9af7ec8

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

IPT-NETFLOW-MIB.my

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ IMPORTS
88
FROM SNMPv2-SMI
99
OBJECT-GROUP, MODULE-COMPLIANCE
1010
FROM SNMPv2-CONF
11+
CounterBasedGauge64
12+
FROM HCNUM-TC
1113
TEXTUAL-CONVENTION, DisplayString, DateAndTime
1214
FROM SNMPv2-TC;
1315

1416
iptNetflowMIB MODULE-IDENTITY
15-
LAST-UPDATED "201409110000Z"
17+
LAST-UPDATED "201409120000Z"
1618
ORGANIZATION "ABC"
1719
CONTACT-INFO
1820
"Author's email: abc at telekom.ru
@@ -29,8 +31,8 @@ iptNetflowMIB MODULE-IDENTITY
2931

3032
License: GPL"
3133

32-
REVISION "201409110000Z"
33-
DESCRIPTION "Initial revision."
34+
REVISION "201409110000Z"
35+
DESCRIPTION "Initial revision."
3436

3537
::= { enterprises 37476 9000 10 1 }
3638

@@ -215,7 +217,7 @@ scan-min OBJECT-TYPE
215217
iptNetflowTotals OBJECT IDENTIFIER ::= { iptNetflowStatistics 1 }
216218

217219
inBitRate OBJECT-TYPE
218-
SYNTAX Gauge32
220+
SYNTAX CounterBasedGauge64
219221
UNITS "bits/second"
220222
MAX-ACCESS read-only
221223
STATUS current
@@ -299,16 +301,16 @@ hashPackets OBJECT-TYPE
299301
MAX-ACCESS read-only
300302
STATUS current
301303
DESCRIPTION
302-
"Packets currently residing in the hash table."
304+
"Packets in flows currently residing in the hash table."
303305
::= { iptNetflowTotals 9 }
304306

305307
hashBytes OBJECT-TYPE
306-
SYNTAX Gauge32
308+
SYNTAX CounterBasedGauge64
307309
UNITS "bytes"
308310
MAX-ACCESS read-only
309311
STATUS current
310312
DESCRIPTION
311-
"Bytes accounted residing in the hash table."
313+
"Bytes in flows currently residing in the hash table."
312314
::= { iptNetflowTotals 10 }
313315

314316
dropPackets OBJECT-TYPE

snmp_NETFLOW.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct snmp_vars sysctls[] = {
6565
};
6666

6767
struct snmp_vars totals[] = {
68-
{1, ASN_GAUGE, "inBitRate"},
68+
{1, ASN_COUNTER64, "inBitRate"},
6969
{2, ASN_GAUGE, "inPacketRate"},
7070
{3, ASN_COUNTER64, "inFlows"},
7171
{4, ASN_COUNTER64, "inPackets"},
@@ -74,7 +74,7 @@ struct snmp_vars totals[] = {
7474
{7, ASN_GAUGE, "hashMemory"},
7575
{8, ASN_GAUGE, "hashFlows"},
7676
{9, ASN_GAUGE, "hashPackets"},
77-
{10, ASN_GAUGE, "hashBytes"},
77+
{10, ASN_COUNTER64, "hashBytes"},
7878
{11, ASN_COUNTER64, "dropPackets"},
7979
{12, ASN_COUNTER64, "dropBytes"},
8080
{13, ASN_GAUGE, "outByteRate"},

0 commit comments

Comments
 (0)