[mrtg] Re: Problems with low values and option gauge

Alex van den Bogaerdt alex at ergens.op.HET.NET
Wed Apr 3 23:44:20 MEST 2002

html-kurs at gmx.de wrote:

> I hope I've decribed the problem exactly enough. Raising the 
> "1-Mail"-return to "5-Mails" and using "perminute" (so the average is 
> greater or equal to 1) doesn't solve the problem.

You seem to understand the problem, at least partially.
So, why didn't you say you tried testing with numbers > 300 ? :)

Perhaps mrtg does some normalizing first and the resulting number isn't
1, it could for instance become 0.9   Try using large numbers so that
you can analize what's going on.  If 1.0 would indeed be converted into
0.9, chances are 1000 will become 900 (or 999, or whatever) and this
*will* be visible in the log file and thus in MRTG.

I don't know if "PerMinute" first multiplies and then divides, you could
try to do some multiplication yourself:

   Target[x]: `/path/to/your/script` * 300

> BTW: using absolute instead of gauge with perminute doesn't show the mails,
> too.

Er... you're using gauge... this should make it into the log file.

Small gauge values should be visible even if the same small value with
the absolute counter type would be rounded down to 0.  This is because
absolute does (current_value)/(time_now - time_before) whereas gauge just
takes (current_value).

 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
| Technical questions sent directly to me will be nuked. Use the list. | 
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |

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