[mrtg] PPP+SNMP+MRTG
Marcin Zurakowski
marcin-bin at interfirma.pl
Fri Jul 26 00:07:14 MEST 2002
Hi,
I've got a few ppp connections to my clients. Each client has its own P-t-P
IP number, but names of interfaces (fe. ppp0, ppp1) are sets randomly by
pppd. I want to monitor this connections.
I know, mrtg support selecting target interface by ip address, but it only
works for ethernet and lo. That's my problem. Output from cfgmaker:
----------------------------------------------------------------------------
--------
...
### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '192.168.1.1' | Eth:
'00-50-04-f7-ae-19' ###
Target[test.gronet.pl_192.168.1.1]: /192.168.1.1:test at test.gronet.pl:
SetEnv[test.gronet.pl_192.168.1.1]: MRTG_INT_IP="192.168.1.1"
MRTG_INT_DESCR="eth0"
MaxBytes[test.gronet.pl_192.168.1.1]: 1250000
Title[test.gronet.pl_192.168.1.1]: Traffic Analysis for 192.168.1.1--
test.gronet.pl
PageTop[test.gronet.pl_192.168.1.1]: <H1>Traffic Analysis for 192.168.1.1 --
test.gronet.pl</H1>
<TABLE>
<TR><TD>System:</TD> <TD>test.gronet.pl in Sosnowiec</TD></TR>
<TR><TD>Maintainer:</TD> <TD>Administrator
<root at test.gronet.pl></TD></TR>
<TR><TD>Description:</TD><TD>eth0 </TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD></TD></TR>
<TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD>192.168.1.1 (test.gronet.pl)</TD></TR>
</TABLE>
...
### Interface 8 >> Descr: 'ppp1' | Name: '' | Ip: '' | Eth: '' ###
### The following interface is commented out because:
### * has a speed of 0 which makes no sense
### * --ifref=ip is not unique for this interface
Target[test.gronet.pl_8]: 8:test at test.gronet.pl:
SetEnv[test.gronet.pl_8]: MRTG_INT_IP="" MRTG_INT_DESCR="ppp1"
MaxBytes[test.gronet.pl_8]: 0
Title[test.gronet.pl_8]: Traffic Analysis for 8 -- test.gronet.pl
PageTop[test.gronet.pl_8]: <H1>Traffic Analysis for 8 --
test.gronet.pl</H1>
<TABLE>
<TR><TD>System:</TD> <TD>test.gronet.pl in Sosnowiec</TD></TR>
<TR><TD>Maintainer:</TD> <TD>Administrator
<root at test.gronet.pl></TD></TR>
<TR><TD>Description:</TD><TD>ppp1 </TD></TR>
<TR><TD>ifType:</TD> <TD>ppp (23)</TD></TR>
<TR><TD>ifName:</TD> <TD></TD></TR>
<TR><TD>Max Speed:</TD> <TD>0.0 Bytes/s</TD></TR>
</TABLE>
----------------------------------------------------------------------------
------------
I have mrtg 2.9.21 and SNMP agent net-snmp 5.01. I've also tested it on
ucd-snmp, with the same result. What should I do?
Marcin Zurakowski
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list