LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-04-2005, 12:31 PM   #1
gnirtS
LQ Newbie
 
Registered: Jan 2005
Distribution: Debian (usually testing)
Posts: 26

Rep: Reputation: 15
MRTG - Graphing multiple IPs on one router?


Ive got a /29 subnet here running via a EN5861 router.

Currently im using MRTG to log total bandwith in/out of the interface and graphing without problems.

I recently installed wall watcher on windows and noticed as well as this its able to grab the information for each individual IP from the router and graph these separately.

Is there a way to get mrtg to do this, ie display a page of totals and a graph of total per IP ?

Ive played with cfgmaker without much luck - none of the options ive tried have got it to split up the traffic into IP address - ive got it split into interfaces on there but thats not what i need - i wasnt the IP addresses routed on the PPP interface.

For what its worth Wallwatcher on windows which is displaying them is using the OID 1.3.6.1.2.1.2.2.1.10.2 for received and 1.3.6.1.2.1.2.2.1.16.2 for sent.

Neither of these exactly match the Cisco translator tool perfectly.

Using snmpwalk ive found entries such as below in the list:

RFC1213-MIB::atIfIndex.1.1.192.168.1.3 = INTEGER: 2
RFC1213-MIB::atPhysAddress.1.1.192.168.1.3 = Hex-STRING: 00 0C 6E 1B 14 98
RFC1213-MIB::atNetAddress.1.1.192.168.1.3 = Network Address: C0:A8:01:03
IP-MIB::ipNetToMediaIfIndex.1.192.168.1.3 = INTEGER: 2
IP-MIB::ipNetToMediaPhysAddress.1.192.168.1.3 = STRING: 0:c:6e:1b:14:98
IP-MIB::ipNetToMediaNetAddress.1.192.168.1.3 = IpAddress: 192.168.1.3
IP-MIB::ipNetToMediaType.1.192.168.1.3 = INTEGER: dynamic(3)

So its definately in there somewhere just i cant get MRTG to read it.

Basically i want it to graph traffic on the ATM/VC2 interface or ppp (type 23) giving a total and break down per IP
 
Old 02-04-2005, 07:04 PM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
If I understand your post correctly, have you tried speciifying the OID in the mrtg "target"? Thats what I do.

Example: Get the numerical OID by using the -On snmpwalk[get] command
Code:
snmpwalk -v2c -On -c my_community hostname if
BTW: You can also specify the "name" like IP-MIB::ipNetToMediaIfIndex in the mrtg target, but you would need to "include" the linux MIB in your mrtg config file.

So using your the OID example in your post, the mrtg "target" would be (note the & separator between the input/output OID's):
Code:
Target[eth0_1]: .1.3.6.1.2.1.2.2.1.10.2&.1.3.6.1.2.1.2.2.1.16.2:public@hostname:
See the mrtg documentation for the other parameters that can be specifed in the target definition. Especially if you need to use v2c queries.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
internet router for multiple static ips shizzilla Linux - Networking 3 11-23-2005 11:20 PM
Linux as a router but for multiple public IPs gnirtS Linux - Networking 8 03-07-2005 03:08 PM
how to define a specific range of IPs and/or multiple IPs in an iptables rule?... TheHellsMaster Linux - Security 9 09-20-2004 10:06 AM
Router with multiple public IPs Neodymium Linux - Newbie 1 04-13-2004 06:39 PM
MRTG for multiple IPs graphed individually newb13 *BSD 3 07-28-2003 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration