[mrtg] Re: Wrong figures being graphed?!
Mike Koch
Mike.Koch at etsi.fr
Mon Aug 27 09:07:50 MEST 2001
Hi,
I'm not 100% sure, but I think that you script must return :
75
75
0
0
-> Note the two zeroes... They are mandatory I believe.
In order ro help, could you grab the first lines of your log file and give
them to us ?
-----Original Message-----
From: Michael Bartlett [mailto:michael_jw_bartlett at hotmail.com]
Sent: lundi 27 août 2001 04:21
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Wrong figures being graphed?!
hi all
i've just started running mrtg (2.8.12)
i've got a configuration entry that looks like this:
Target[performance.disc]: `/usr/local/etc/mrtg/scripts/file_stats.sh`
MaxBytes[performance.disc]: 1000
Title[performance.disc]: Open Files
PageTop[performance.disc]: <H1>Open Files</H1>
Options[performance.disc]: growright, gauge
ShortLegend[performance.disc]: F
Legend1[performance.disc]: Open Files
now, if i run file_stats.sh manually - at this point in time i get:
su-2.03# ./file_stats.sh
75
75
if i take a look at my graph, the has been an original spike of 72 (which
was about 30 mins ago), but its now registering no data as can be
illustrated by pasting:
Max In:72.0 F (7.2%) Average In:41.0 F (4.1%) Current In:0.0 F (0.0%)
Max Out:72.0 F (7.2%) Average Out:41.0 F (4.1%) Current Out:0.0 F (0.0%)
i would have expected that behaviour if i didn't have the "gauge" in the
options. any idea why on earth i would be getting such results. is there any
way to run mrtg so that it prints out the output of each script that it runs
so i can maybe see what is going on? i've tried looking at the log file, but
it doesn't make much sense to me!
additionally. on the same graph, if i look at the weekly graph, its values
appear to be less than the daily (max values):
Max In: 35.0 F (3.5%) Average In: 35.0 F (3.5%) Current In: 0.0 F
(0.0%)
Max Out: 35.0 F (3.5%) Average Out: 35.0 F (3.5%) Current Out: 0.0 F
(0.0%)
sure the average should be different, yes, but the Max must be the same
because the week time period has to experience the same Max value of a day
time perioud. or is the 30 minute calls done as snapshot and not averages?
cheers
mike
--
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
--
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