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:[EMAIL PROTECTED]">here</a> for more info.<p> PageTop[eth0]: <H1>Public ethernet traffic</H1> ######################################################################
-----Original Message----- From: Corey Goldberg [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 9:06 AM To: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] [EMAIL PROTECTED] ----------------------------------- -- Unsubscribe mailto:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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
