All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rene Gallati <lartc@draxinusom.ch>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] tc+mrtg
Date: Mon, 19 Jul 2004 13:47:38 +0000	[thread overview]
Message-ID: <40FBD0FA.7060100@draxinusom.ch> (raw)
In-Reply-To: <014901c46d7d$0e58d9a0$15a02bca@gsd03>

Gideon le Grange wrote:

> On Mon, 2004-07-19 at 14:20, Roy wrote:
> 
>>MRTG can only show interface load, basicaly it is the graphic representation
>> of what you will see with ifconfig.
>>
>>For more advanced graph you need to use another software than mrtg.
> 
> 
> 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). 
> 

MRTG doesn't necessarily need SNMP, you can feed it ANY value via a perl 
script. I've been doing it for ages. You just need to get at the values 
(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 
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 
target.

Line 4
     string, telling the name of the target.

Depending on the type of data your script returns you might want to use 
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 
you must escape it with a backslash ...

If your script does not have any data to return but does not want mrtg 
to complain about invalid data, it can return 'UNKNOWN' instead of a 
number. Note though that only rrdtool is realy equipped to handle 
unknown data well.
"


-- 

C U

      - -- ---- ----- -----/\/  René Gallati  \/\---- ----- --- -- -
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2004-07-19 13:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-19 10:42 [LARTC] tc+mrtg Kristiadi Himawan
2004-07-19 12:20 ` Roy
2004-07-19 13:00 ` Gideon le Grange
2004-07-19 13:47 ` Rene Gallati [this message]
2004-07-19 16:20 ` Alessandro Ren
2004-07-20  1:42 ` Rio Martin.
2004-07-20  5:43 ` Kristiadi Himawan
2004-07-23 17:45 ` Stef Coene
2004-08-19 15:15 ` Michael Eck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40FBD0FA.7060100@draxinusom.ch \
    --to=lartc@draxinusom.ch \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.