amavis-user March 2012 archive
Main Archive Page > Month Archives  > amavis-user archives
amavis-user: amavisd-new-snmp problem

amavisd-new-snmp problem

From: Birta Levente <blevi.linux_at_nospam>
Date: Fri Mar 16 2012 - 15:58:14 GMT
To: amavis-users@amavis.org

Hi all

I use net-snmp-5.3.2.2-17.el5 and amavisd-new / -snmp 2.7.0 on Centos 5.8

I started the amavisd daemon and with 0 messages sent get:

# snmpwalk -c public -v2c 127.0.0.1 AMAVIS-MIB::inMsgsSize
SNMPv2-SMI::enterprises.15312.2.1.1.3.1.0 = Counter64: 2340844

Now, after 1 message (only text with one word) sent:

# snmpwalk -c public -v2c 127.0.0.1 AMAVIS-MIB::inMsgs
SNMPv2-SMI::enterprises.15312.2.1.1.2.1.0 = Counter32: 1
# snmpwalk -c public -v2c 127.0.0.1 AMAVIS-MIB::inMsgsSize
SNMPv2-SMI::enterprises.15312.2.1.1.3.1.0 = Counter64: 6798935570412

Output of amavisd-agent:
InMsgs 1 20/h 100.0 % (InMsgs)
InMsgsOriginating 1 20/h 100.0 % (InMsgs)
InMsgsOutbound 1 20/h 100.0 % (InMsgs)
InMsgsRecips 1 20/h 100.0 % (InMsgs)
InMsgsRecipsOriginating 1 20/h 100.0 %
(InMsgsOriginating)
InMsgsRecipsOutbound 1 20/h 100.0 %
(InMsgsOutbound)
InMsgsSize 0MB 0MB/h 100.0 % (InMsgsSize)
InMsgsSizeOriginating 0MB 0MB/h 100.0 % (InMsgsSize)
InMsgsSizeOutbound 0MB 0MB/h 100.0 % (InMsgsSize)

I think it's problem with Counter64 counters. Can somebody tell me how
to get correct values from message size counters over SNMP?

Thank you

Levi