Re: SNMP devices with non-consecutive interface OIDs

Gandalf <[email protected]>
Newsgroups gmane.network.cacti.user
Message-ID <[email protected]>
Yes, I was referring to -Cc.
In case this is NOT the issue and your assumption has to be tested, we would
need a test device which I don't have access to. In any case, you should open a
new bug report, listing all those hints we have discussed already to to have a
track of all records
Reinhard

On 08.05.2012 21:57, Christian Gresser wrote:
> Hallo Reinhard,
> 
> hast du ne Idee, welche Option das sein könnte?
> 
> Ich habe jetzt einen Tag mit allen mir bekannten und dokumentierten Optionen
> wie -Cc etc. rumgespielt aber nichts was weiterhilft. Ich glaube auch
> eigentlich nicht, dass es an net-snmp liegt, weil die händischen
> snmpwalk-Aufrufe ohne irgendwelche Optionen liefern immer alle korrekten
> Interfaces zurück.
> 
> Es gibt da den Bug 2225 (http://bugs.cacti.net/view.php?id=2225, nicht von
> mir) wegen dem -Cc aber das hat mit meinem Problem wohl eher nichts zu tun.
> Ich tippe eigentlich immer noch auf <install_path>/cacti/lib/data_query.php
> 
> Danke
> 
> Gruß,
> 
> Christian
> 
> 
>> -----Ursprüngliche Nachricht-----
>> Von: Gandalf [mailto:[email protected]]
>> Gesendet: Montag, 7. Mai 2012 17:24
>> An: [email protected]; Support requests/questions about cacti
>> Betreff: Re: [cacti-user] SNMP devices with non-consecutive interface
>> OIDs
>>
>> This can be handled by a specific option, at least for net-snmp.
>> We (IMHO) never used that option but may provide it as a configurable
>> switch (on
>> global level???) for future versions.
>> Please post a feature request then to http://bugs.cacti.net
>>
>> Reinhard
>>
>> On 06.05.2012 23:36, Christian Gresser wrote:
>>> Hello list,
>>>
>>> I'm not sure if this classifies as a bug but nevertheless, here we go
>> ...
>>>
>>> I've noticed that Cacti (0.8.8) currently can't handle devices with
>>> non-consecutive interface OIDs like the Teldat (formerly Funkwerk)
>> Bintec
>>> router (like http://www.teldat.de/en/bintec-RS120-173,113477.html).
>> While
>>> these devices most probably don't follow RFC standards, they still
>> exist and
>>> are used in many companies.
>>>
>>> What seems to happen is, that Cacti detects the number of interfaces
>> but
>>> fails to enumerate them:
>>>
>>> ----------
>>> Data Query Debug Information
>>> + Running data query [1].
>>> + Found type = '3' [SNMP Query].
>>> + Found data query XML file at
>>> '/var/www/cacti/resource/snmp_queries/interface.xml'
>>> + XML file parsed ok.
>>> + Executing SNMP get for num of indexes @ '.1.3.6.1.2.1.2.1.0' Index
>> Count:
>>> 8
>>> + Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
>> Index
>>> Count: 0
>>> + No SNMP data returned
>>> ----------
>>>
>>> Manually running snmpwalk gives the following output:
>>>
>>> ----------
>>> # snmpwalk -v 2c -c public 10.0.0.1 .1.3.6.1.2.1.2.1.0
>>> IF-MIB::ifNumber.0 = INTEGER: 8
>>>
>>> # snmpwalk -v 2c -c public 10.0.0.1 .1.3.6.1.2.1.2.2.1.1
>>> IF-MIB::ifIndex.0 = INTEGER: 0
>>> IF-MIB::ifIndex.1 = INTEGER: 1
>>> IF-MIB::ifIndex.2 = INTEGER: 2
>>> IF-MIB::ifIndex.1000 = INTEGER: 1000
>>> IF-MIB::ifIndex.1001 = INTEGER: 1001
>>> IF-MIB::ifIndex.1400 = INTEGER: 1400
>>> IF-MIB::ifIndex.1401 = INTEGER: 1401
>>> IF-MIB::ifIndex.10001 = INTEGER: 10001
>>> ----------
>>>
>>> As you can see, the ifIndex does not start with 1 but 0 and jumps
>> depending
>>> on the interface type:
>>>
>>> ----------
>>> rs120:> ifstat
>>> Index  Descr        Type Mtu  Speed St Ipkts   Ies Opkts   Oes
>>> PhyAddr/ChgTime
>>> 000000 REFUSE       othr 8192     0 up 0       0   0       0     0
>> 00:00:00
>>> 000001 LOCAL        othr 8192     0 up 0       0   0       0     0
>> 00:00:00
>>> 000002 IGNORE       othr 8192     0 up 0       0   0       0     0
>> 00:00:00
>>> 001000 en1-0        eth  1500  100M up 3466225 0   4000640 0
>>> 00:a0:f9:23:cb:92
>>> 001001 en1-0-llc    eth  1496  100M up 0       0   0       0
>>> 00:a0:f9:23:cb:92
>>> 001400 en1-4        eth  1500  100M up 1086229 0   3750804 0
>>> 00:a0:f9:23:cb:92
>>> 001401 en1-4-llc    eth  1496  100M up 0       0   0       0
>>> 00:a0:f9:23:cb:92
>>> 010001 Internet     ppp  1492  100M up 1064546 0   3517165 0    13
>> 00:03:40
>>> ----------
>>>
>>> I tracked the issue down to <install_path>/cacti/lib/data_query.php
>> and to
>>> the function query_snmp_host. Unfortunately my PHP knowledge is
>> absolutely
>>> limited to correctly spell PHP. I'm willing to help debugging or test
>> fixes
>>> (and will provide a small present to the programmer if fixed).
>>>
>>> Thanks,
>>>
>>> Btw: on http://bugs.cacti.net/main_page.php a wrong address is shown
>> for
>>> this list, [email protected] instead of
>>> [email protected]. Someone might want to fix that as
>> well.
>>>
>>> Best regards,
>>>
>>> Christian Gresser
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>> ---------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond.
>> Discussions
>>> will include endpoint security, mobile security and the latest in
>> malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> cacti-user mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/cacti-user
>>>
>>
>> -----------------------------------------------------------------------
>> -------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond.
>> Discussions
>> will include endpoint security, mobile security and the latest in
>> malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> cacti-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/cacti-user
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> cacti-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cacti-user
> 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.