[mrtg] Re: Monitoring Linux Server

mrtg mrtg at 2zero.net
Mon Feb 14 17:58:16 MET 2005


Here's one.

######################################################################
#                                                                    #
# this is the eth0 traffic graphing section from /proc/net/dev       #
#                                                                    #
######################################################################
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]: PST
Title[eth0]: Public ethernet traffic - 2 Zero Networking
PageFoot[eth0]: Contact 2 Zero <a
href="mailto:networks at 2zero.net">here</a> for more info.<p>
PageTop[eth0]: <H1>Public ethernet traffic</H1>
######################################################################


-----Original Message-----
From: Corey Goldberg [mailto:cgoldberg at earthlink.net] 
Sent: Monday, February 14, 2005 9:06 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Monitoring Linux Server

>I have a perl script that I copied. It works for some of the items - 
>traffic and memory/swap usage - but not for others - CPU and disk IO. I

>would like to grab uptime as well.

How are the scripts connecting to the servers you are mointoring.
rstat? telnet? ssh?




-----------------------------------
 Corey Goldberg
 cgoldberg at earthlink.net
 cmg at gnu.org
-----------------------------------

--
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



--
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