Zyel 2812 traffic graphs in cacti

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
pathia
Posts: 4
Joined: Sun Jan 10, 2010 3:58 am

Zyel 2812 traffic graphs in cacti

Post by pathia »

I am running a working Cacti installation for years. But now I want to graph my Zyxel P-2812HNU-F1 in cacti but can't get it to work.
If I try to reload the SNMP - interface statistics I get:
Success [0 Items, 0 Rows] and on top of the page I get an snmp error.

Looking with tcpdump I get:
23:07:18.687191 IP cactiip.57353 > modemip.snmp: C=mystring GetBulk(29) N=0 M=20 .1.3.6.1.2.1.2.2.1.1
23:07:21.889236 IP modemip.snmp > cactiip.57353: C=mystring GetResponse(450) .1.3.6.1.2.1.2.2.1.8.1.0=[|snmp]
23:07:21.920382 IP cactiip.59085 > modemip.snmp: C=mystring GetRequest(28) .1.3.6.1.2.1.1.3.0
23:07:21.965806 IP modemip.snmp > cactiip.59085: C=mystring GetResponse(28) .1.3.6.1.2.1.1.3.0=[noSuchObject]
23:07:25.839638 IP cactiip.50697 > modemip.snmp: C=mystring GetRequest(28) .1.3.6.1.2.1.1.1.0
23:07:25.877094 IP modemip.snmp > cactiip.50697: C=mystring GetResponse(28) .1.3.6.1.2.1.1.1.0=[noSuchObject]

For reference, if I snmpwalk -v1 -cmystring ipaddress .
I get :
IF-MIB::ifOperStatus.1.0 = INTEGER: down(2)
IF-MIB::ifOperStatus.2.0 = INTEGER: up(1)
IF-MIB::ifOperStatus.3.0 = INTEGER: down(2)
IF-MIB::ifOperStatus.4.0 = INTEGER: up(1)
IF-MIB::ifOperStatus.5.0 = INTEGER: up(1)
IF-MIB::ifInOctets.1.0 = Counter32: 0
IF-MIB::ifInOctets.2.0 = Counter32: 10658344
IF-MIB::ifInOctets.3.0 = Counter32: 0
IF-MIB::ifInOctets.4.0 = Counter32: 8743
IF-MIB::ifInOctets.5.0 = Counter32: 2816834
IF-MIB::ifOutOctets.1.0 = Counter32: 0
IF-MIB::ifOutOctets.2.0 = Counter32: 5623026
IF-MIB::ifOutOctets.3.0 = Counter32: 0
IF-MIB::ifOutOctets.4.0 = Counter32: 26839739
IF-MIB::ifOutOctets.5.0 = Counter32: 2471977
SNMPv2-SMI::enterprises.890.1.2.1.1.1.0 = STRING: "V3.10(TUE.2)"
SNMPv2-SMI::enterprises.890.1.2.1.1.4.0 = STRING: "P-2812HNU-F1"
SNMPv2-SMI::enterprises.890.1.2.1.1.12.0 = Timeticks: (17409900) 2 days, 0:21:39.00
SNMPv2-SMI::enterprises.890.1.2.1.3.3.1.0 = STRING: "192.168.27.254"
SNMPv2-SMI::enterprises.890.1.2.1.3.3.2.0 = STRING: "255.255.255.0"
End of MIB

Is there a way in which I can add the specific interfaces in cacti and add traffic graphs in the usual way? Or perhaps any other solution I didn't think of ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Zyel 2812 traffic graphs in cacti

Post by gandalf »

Please set MAX OIDs to 1 to disable bulkwalk for that device
R.
pathia
Posts: 4
Joined: Sun Jan 10, 2010 3:58 am

Re: Zyel 2812 traffic graphs in cacti

Post by pathia »

Thanks for the tip, but I'm afraid it didn't solve the issue for me.
I have run the data query in debug mode and I got this:

Code: Select all

+ 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 walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
I have to admit that if I manually do a snmpwalk for that oid, it won't return any data.

Code: Select all

snmpwalk -v2c -ccommunity ipaddress .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex = No Such Object available on this agent at this OID

Code: Select all

snmpwalk -v2c -ccommunity ipaddress .1.3.6.1.2.1.2.2.1
IF-MIB::ifOperStatus.1.0 = INTEGER: down(2)
IF-MIB::ifOperStatus.2.0 = INTEGER: up(1)
IF-MIB::ifOperStatus.3.0 = INTEGER: down(2)
IF-MIB::ifOperStatus.4.0 = INTEGER: up(1)
IF-MIB::ifOperStatus.5.0 = INTEGER: up(1)
IF-MIB::ifInOctets.1.0 = Counter32: 0
IF-MIB::ifInOctets.2.0 = Counter32: 21052845
IF-MIB::ifInOctets.3.0 = Counter32: 0
IF-MIB::ifInOctets.4.0 = Counter32: 30365
IF-MIB::ifInOctets.5.0 = Counter32: 14149717
IF-MIB::ifOutOctets.1.0 = Counter32: 0
IF-MIB::ifOutOctets.2.0 = Counter32: 15980915
IF-MIB::ifOutOctets.3.0 = Counter32: 0
IF-MIB::ifOutOctets.4.0 = Counter32: 114540002
IF-MIB::ifOutOctets.5.0 = Counter32: 11369111
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Zyel 2812 traffic graphs in cacti

Post by gandalf »

pathia wrote:I have to admit that if I manually do a snmpwalk for that oid, it won't return any data.

Code: Select all

snmpwalk -v2c -ccommunity ipaddress .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex = No Such Object available on this agent at this OID

Code: Select all

snmpwalk -v2c -ccommunity ipaddress .1.3.6.1.2.1.2.2.1
IF-MIB::ifOperStatus.1.0 = INTEGER: down(2)
IF-MIB::ifOperStatus.2.0 = INTEGER: up(1)
IF-MIB::ifOperStatus.3.0 = INTEGER: down(2)
IF-MIB::ifOperStatus.4.0 = INTEGER: up(1)
IF-MIB::ifOperStatus.5.0 = INTEGER: up(1)
IF-MIB::ifInOctets.1.0 = Counter32: 0
IF-MIB::ifInOctets.2.0 = Counter32: 21052845
IF-MIB::ifInOctets.3.0 = Counter32: 0
IF-MIB::ifInOctets.4.0 = Counter32: 30365
IF-MIB::ifInOctets.5.0 = Counter32: 14149717
IF-MIB::ifOutOctets.1.0 = Counter32: 0
IF-MIB::ifOutOctets.2.0 = Counter32: 15980915
IF-MIB::ifOutOctets.3.0 = Counter32: 0
IF-MIB::ifOutOctets.4.0 = Counter32: 114540002
IF-MIB::ifOutOctets.5.0 = Counter32: 11369111
Well, that's the reason, then. honestly, I did not yet face a system that does not provide data for ifIndex but does provide the rest. I was under the assumption, that ifIndex is mandatory.
So I suppose you have to create a copy of the "Traffic" Data Query and provide your own XML file that only asks for those parameters that your device supports.
But prior to that, please verify that this is not an issue with configuration of the target system.
R.
pathia
Posts: 4
Joined: Sun Jan 10, 2010 3:58 am

Re: Zyel 2812 traffic graphs in cacti

Post by pathia »

gandalf wrote: So I suppose you have to create a copy of the "Traffic" Data Query and provide your own XML file that only asks for those parameters that your device supports.
But prior to that, please verify that this is not an issue with configuration of the target system.
R.
Hi, the device is a Zyxel ethernet/vdsl router. I can only enable the snmp agent and configure a get and set community string :(
Can you please elaborate on how to create this copy and provide my own xml file ?
(I was thinking about adding manually adding some rows in the cacti database)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Zyel 2812 traffic graphs in cacti

Post by gandalf »

The way to go is to use the SNMP Data Query walkthrough at 1st link of my sig.
You will have to create a
- Data Query
- Data Template
- Graph Template
- XML file for Data Query
Most of this new stuff will look very much like the current "Traffic" Data Query. But I recommend the sequence of steps mentioned in that very walkthrough.. I suppose this will be easier then copying and changing things (at least such a method has not yet been explained in detail)
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest