From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rene Gallati Date: Mon, 19 Jul 2004 13:47:38 +0000 Subject: Re: [LARTC] tc+mrtg Message-Id: <40FBD0FA.7060100@draxinusom.ch> List-Id: References: <014901c46d7d$0e58d9a0$15a02bca@gsd03> In-Reply-To: <014901c46d7d$0e58d9a0$15a02bca@gsd03> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Gideon le Grange wrote: > On Mon, 2004-07-19 at 14:20, Roy wrote: >=20 >>MRTG can only show interface load, basicaly it is the graphic representat= ion >> of what you will see with ifconfig. >> >>For more advanced graph you need to use another software than mrtg. >=20 >=20 > MRTG can graph any variable that you can read using SNMP. The problem is > getting the tc stats readable using SNMP, that's the trick bit (which as > far as I've seen can't be done, but I hope I'm wrong).=20 >=20 MRTG doesn't necessarily need SNMP, you can feed it ANY value via a perl=20 script. I've been doing it for ages. You just need to get at the values=20 (peridoic tc -s qdisc show, parse it, feed mrtg) From : http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-reference.html "External Monitoring Scripts If you want to monitor something which does not provide data via=20 snmp you can use some external program to do the data gathering. The external command must return 4 lines of output: Line 1 current state of the first variable, normally 'incoming bytes count' Line 2 current state of the second variable, normally 'outgoing bytes count' Line 3 string (in any human readable format), telling the uptime of the=20 target. Line 4 string, telling the name of the target. Depending on the type of data your script returns you might want to use=20 the 'gauge' or 'absolute' arguments for the Options keyword. Example: Target[ezwf]: `/usr/local/bin/df2mrtg /dev/dsk/c0t2d0s0` Note the use of the backticks (`), not apostrophes (') around the command. If you want to use a backtick in the command name this can be done but=20 you must escape it with a backslash ... If your script does not have any data to return but does not want mrtg=20 to complain about invalid data, it can return 'UNKNOWN' instead of a=20 number. Note though that only rrdtool is realy equipped to handle=20 unknown data well. " --=20 C U - -- ---- ----- -----/\/ Ren=E9 Gallati \/\---- ----- --- -- - _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/