Cacti problem with Mini SNMP Daemon [solved]

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
pint
Posts: 2
Joined: Sat Sep 10, 2011 12:21 pm

Cacti problem with Mini SNMP Daemon [solved]

Post by pint »

Hello!

For some unkown reason i can't get Cacti to work with Mini SNMP Daemon agent. http://freshmeat.net/projects/minisnmpd
When adding a new device, it reports SNMP Error but somehow still lists all the right interfaces in 'Data Query [SNMP - Interface Statistics]'
No graphs will be generated and log tells me "CMDPHP: Poller[0] Host[8] SNMP: Host did not respond to SNMP "

Otherwise the agent seems to be working, as snmpwalk and Paessler's snmptester and Prtg network monitor works ok.
Cacti is also working fine with other devices which are not using Mini SNMPD agents.

I even found an old post about the same problem, but no answers: http://forums.cacti.net/viewtopic.php?f=2&t=40358
Is there really noone using lightweight Mini SNMPD with Openwrt-based routers out there?

Maybe someone has a clue why listing interfaces and snmpwalk works but snmp detection and graphs not?

snmpwalk from the cacti host machine:

Code: Select all

 ~ # snmpwalk -v 1 -c public 10.0.0.1
SNMPv2-MIB::sysDescr.0 = STRING:
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (414417) 1:09:04.17
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: kodu
SNMPv2-MIB::sysLocation.0 = STRING:
IF-MIB::ifNumber.0 = INTEGER: 1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifDescr.1 = STRING: eth0.1
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifInOctets.1 = Counter32: 1934032821
IF-MIB::ifInUcastPkts.1 = Counter32: 180192747
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 1511788713
IF-MIB::ifOutUcastPkts.1 = Counter32: 122827720
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (243298819) 28 days, 3:49:48.19

Code: Select all

Data Query Debug Information
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Index found at OID: '1.3.6.1.2.1.2.2.1.1.1' value: '1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='eth0.1'] index: 1 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'
Last edited by pint on Sun Sep 11, 2011 2:40 pm, edited 1 time in total.
ketjap
Posts: 1
Joined: Sun Sep 11, 2011 1:55 pm

Re: Cacti problem with Mini SNMP Daemon

Post by ketjap »

Hi. I got the same issue at first, but was resolved by setting 'Downtime Device Detection' to PING instead of SNMP. You can find this under the device you configure.
pint
Posts: 2
Joined: Sat Sep 10, 2011 12:21 pm

Re: Cacti problem with Mini SNMP Daemon [solved]

Post by pint »

I'll be damned - indeed it works! 8) Thanks for the hint!
I guess i should have RTFM'd, because the option clearly states: " The method Cacti will use to determine if a host is available for polling." :D
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests