Multiple Interface Graphs for venet?

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

Moderators: Developers, Moderators

Post Reply
SynVisions
Posts: 8
Joined: Sun Jun 18, 2006 11:25 am

Multiple Interface Graphs for venet?

Post by SynVisions »

Hi, I have cacti all setup but for some reason I can't seem to create traffic graphs for all of my interfaces. I have the following interfaces:

venet0
venet0:1
venet0:2

But cacti for some reason doesn't have graph options for all of them. It looks like this:

Image

Which is wierd because when I look at the verbose SNMP query down near the bottom I see:

+ Found item [ifIP='my.ip.1'] index: 3 [from regexp oid parse]
+ Found item [ifIP='my.ip.2'] index: 3 [from regexp oid parse]
+ Found item [ifIP='my.ip.3'] index: 3 [from regexp oid parse]
+ Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse]

Where my.ip.x are the IPs, each correspond to a different interface.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Those are logical interfaces, the snmp ifoctets is onliy physical interfaces, hense why you only see one.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
SynVisions
Posts: 8
Joined: Sun Jun 18, 2006 11:25 am

Post by SynVisions »

rony wrote:Those are logical interfaces, the snmp ifoctets is onliy physical interfaces, hense why you only see one.
I figured as much, but how can I generate graphs of each logical interface?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

SynVisions wrote:
rony wrote:Those are logical interfaces, the snmp ifoctets is onliy physical interfaces, hense why you only see one.
I figured as much, but how can I generate graphs of each logical interface?
You can't. At least there's no knows SNMP OID that repfresents the numbers you are interested in.
But if you know a way to get the wanted info via some script or the like, then cacti will able to store and graph those values as cacti is able to integrate almost every script that returns some numbers ...
Reinhard
SynVisions
Posts: 8
Joined: Sun Jun 18, 2006 11:25 am

Post by SynVisions »

lvm wrote:
SynVisions wrote:
rony wrote:Those are logical interfaces, the snmp ifoctets is onliy physical interfaces, hense why you only see one.
I figured as much, but how can I generate graphs of each logical interface?
You can't. At least there's no knows SNMP OID that repfresents the numbers you are interested in.
But if you know a way to get the wanted info via some script or the like, then cacti will able to store and graph those values as cacti is able to integrate almost every script that returns some numbers ...
Reinhard
Well, it is probably important to note that each interface has 1 IP, and each has a unique IP, so a graph for each IP would be equivalent. There must be an easy known way to achieve that?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Still nogo. See (from man ifconfig)
NOTES
Since kernel release 2.2 there are no explicit interface statistics for alias interfaces anymore. The statistics
printed for the original address are shared with all alias addresses on the same device. If you want per-address
statistics you should add explicit accounting rules for the address using the ipchains(8) command.
Reinhard
SynVisions
Posts: 8
Joined: Sun Jun 18, 2006 11:25 am

Post by SynVisions »

For what its worth, I found this guide here on how to do it: http://www.roth.lu/cacti-snmp-tut.htm

Finally got it working, took a lot of tinkering though and I don't think it's very accurate.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yep, this work is based on iptables ...
Reinhard
churchi
Posts: 46
Joined: Tue Oct 26, 2004 2:08 am

Re:

Post by churchi »

SynVisions wrote:For what its worth, I found this guide here on how to do it: http://www.roth.lu/cacti-snmp-tut.htm

Finally got it working, took a lot of tinkering though and I don't think it's very accurate.
Hi SynVisions,

I am trying to do the same setup as you and used the same URL, however i have not been successful in setting up the graphing of these interfaces. Would you be able to let me know how you went about it and if there were issues on the URL above, would you mind telling me what they were?

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests