[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: monitoring ppp0 with mrtg
- From: Alejandro Flores <alejandrorflores gmail com>
- To: For users of Fedora Core releases <fedora-list redhat com>
- Subject: Re: monitoring ppp0 with mrtg
- Date: Sat, 19 Nov 2005 09:37:11 -0300
Hey,
> Hello,
> I am trying to monitor a standard dial-up connection as ppp0
> (non-static ip) with mrtg. I can generate a cfg file, but find ppp0 as
> disabled. Can some one please suggest a suitable configuartion syntax
> for ppp0.
I use a script like this:
/usr/local/sbin/mrtgstats-net.sh
#!/bin/sh
awk '
/'$1':/ {
$0=substr($0,index($0,":")+1);
print $1;print $9
}
' /proc/net/dev
And my mrtg.cfg looks like this:
--
Target[ppp0]: `/usr/local/sbin/mrtgstats-net.sh ppp0`
Title[ppp0]: Internet Traffic
MaxBytes[ppp0]: YOUR_SPEED_HERE_IN_BYTES/S
PageTop[ppp0]: <h1>Internet Traffic</h1>
Options[ppp0]: growright,bits,noinfo
--
This can be used to generate stats for others interfaces as well.
--
Regards,
Alejandro Flores
http://www.triforsec.com.br/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]