|
|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Here's an example configuration that is written by chris drake. Works fine
for me.
maarten
######################################################################
# #
# MRTG Config file to graph system usage on a RedHat 7.x server #
# #
# by Chris Drake - www.ReadNotify.com #
# #
######################################################################
#
# Remember to put this in your crontab (minus the leading # of course, and
after
# saving this configuration as /usr/local/bin/rh7.cfg) :-
# */10 * * * * /usr/bin/mrtg /usr/local/bin/rh7.cfg 2>> /var/log/mrtg.log
#
# Here is where your web server will pick up the graphs from:-
WorkDir:/usr/local/apache/htdocs/mrtg
# "sar" appears to run every 10 minutes, so that's the interval we pick.
Interval: 10
######################################################################
# #
# this is the eth0 traffic graphing section from /proc/net/dev #
# change "grep eth0" to something else to measure a different device #
# #
######################################################################
Target[eth0]: `perl -e '@a=split(/[:\s]+/,qx(grep eth0
/proc/net/dev));$f="%.0f";$fmt="$f\n$f\n1\neth0 traffic\n";$s=sprintf
$fmt,$a[2],$a[10];print $s; print
STDERR $s;'`;
Options[eth0]: noinfo, growright, transparent, dorelpercent
MaxBytes[eth0]: 12500000
# MaxBytes2[eth0]: 12500000
# AbsMax[eth0]: 12500000
kilo[eth0]: 1024
YLegend[eth0]: Bytes per second
ShortLegend[eth0]: B/s
Legend1[eth0]: Incoming Traffic in Bytes per second
Legend2[eth0]: Outgoing Traffic in Bytes per second
Legend3[eth0]: Maximal 10 Minute Incoming Traffic
Legend4[eth0]: Maximal 10 Minute Outgoing Traffic
LegendI[eth0]: In:
LegendO[eth0]: Out:
Timezone[eth0]: GMT
Title[eth0]: Server eth0 traffic
PageFoot[eth0]: Contact us <a href="/contact.asp">here</a> for more info<p>
PageTop[eth0]: <H2>Server eth0 traffic</H2>
######################################################################
> hi all
>
> how do i check traffic coming in and out from my eth0 of my web server?.
------------------------------------------------------------------------
To unsubscribe email security-discuss-request@linuxsecurity.com
with "unsubscribe" in the subject of the message.
[Home] [Fedora Announce] [Linux Crypto] [Kernel] [Netfilter] [Video for Linux] [Bugtraq] [USB] [Network Security] [Fedora Security]
![]() |