I'm trying to get values from amavis in a CentOS 6.5 server.

This values, such as spam mail (total, total/h, percent), are supposed to be accesible via SNMP.

But, when I run snmpwal, I always get 0 as value (example):

AMAVIS-MIB::inMsgsInbound.0 = Counter32: 0
AMAVIS-MIB::sysUpTime.0 = Timeticks: (0) 0:00:00.00

For this, I set up snmpd in my server. Here is my snmpd.conf

rocommunity snmp@key
rocommunity snmp@key

#       sec.name  source          community
com2sec notConfigUser  default       public

#       groupName      securityModel securityName
#group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser

#       name           incl/excl     subtree         mask(optional)
view    systemview    included   .
view    systemview    included   .
view    systemview    included   .
#       group          context sec.model sec.level prefix read   write  notif
access  notConfigGroup ""      any       noauth    exact  systemview none none
access  notConfigGroup ""      any       noauth    exact  agentx none none

syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)

dontLogTCPWrappersConnects yes

master agentx
agentXSocket tcp:

I also set up amavis agentx by installing amavisd-new-snmp package and copying AMAVIS-MIB.txt in /usr/share/snmp/mibs/

All processess are up I googled for a while, but I didn't get any info Any idea will be appreciated


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.