[mrtg] Re: Feature Request

Alejandro Acosta A. aacosta at geocities.com
Mon Jul 19 15:44:33 MEST 1999


I dont think to graph 0 is the best way to do it, if you do it
you are graphing something that is not real.
Of course, to graph an horizontal line is not true at all, but
at leat you keep your last value measured (that is more real
than 0).

Probably the best thing to do is to "copy" in a smart way
your graph behavior during the time your server was down.
Did you undestand?.

This could be an option, but I prefer to see my server or router
down.

Just a comment.

Bye,-

Alejandro Acosta A.


-----Original Message-----
From: Alex van den Bogaerdt <alex at slot.hollandcasino.nl>
To: Jeff Liebermann <jeffl at comix.santa-cruz.ca.us>
Cc: MRTG mailing list <mrtg at list.ee.ethz.ch>
Date: Domingo 18 de Julio de 1999 08:06 PM
Subject: [mrtg] Re: Feature Request


>> Keep it simple.  Zero traffic and zero data should graph as a zero,
>> not the last value.
>>
>IMHO you are right about this however it does not describe your
>problem. What you are saying is that if you know the data to be
>zero, graph zero. No argue about that. In your case, you don't
>know that the data is zero because you don't get a response.
>MRTG will in that case use the last known value. Don't get me
>wrong, I don't think it is the right way to go.
>
>Most likely you have no lines that can actually go zero. For me,
>zero has no special meaning. Sadly, if the last known value actually
>*was* zero, I don't notice any problems by looking at the graphs
>alone, I really must read my mail. (are there still people using
>that horrible ">/dev/null 2>&1" ?)
>
>Tobi already responded and recommended to use rrdtool for these
>kind of wishes. I partially agree with this however I do understand
>that many people would be *very* glad if someone could write an
>interface from mrtg to rrdtool (as it now interfaces with rateup)
>thus being able to migrate slowly.
>
>A quick workaround for you: Poll the device using an external script,
>let the script handle any timeouts or other problems by returning
>the values from the 1st line in the mrtg log (and the current time).
>Warning: unchecked code. Just ment as a starting point:
>
>---cut-here---
>#!/bin/bash
>set `snmpget router public 2.2.1.ifInOctets.1 2.2.1.ifOutOctets.1 || echo
$?`
>if [ $# -ne 6 ]
>then
> set `head -1 mrtg.log`
>else
> set `echo noop $3 $6`
>fi
>DATE=`date +%s`
>echo $DATE $2 $3
>---cut-here---
>
>Regards,
>Alex
>
>--
>* To unsubscribe from the mrtg mailing list, send a message with the
>  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
>* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
>

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list