[mrtg] Re: Wrong figures being graphed?!
Mike Koch
Mike.Koch at etsi.fr
Mon Aug 27 15:31:07 MEST 2001
Wait five minutes. The values will appear in the html page. This is because
MRTG normalizes data before graphing them. Alex van den Bogaerdt gives me an
excellent explanation about normalizing (I can forward it to you if you
want).
Anyway, all that you have to know is that MRTG graphs the 'average' of datas
received, that is a normalization of datas in a 300 seconds interval... ( I
don't want to bother you with a complex explication ). Well, by now, these
maximum values (normalized) must have been showed on the html page...
By the way, you can see the normalized datas now in the log file too (look
in front of 998903400).
One last thing: if in your scheduler (the crontab ? sorry but I'm not a *nix
guy) you call mrtg with the --logging=whatnameyouwant.log you will have a
log file with informations within. However, I think this option is available
only on a recent version of MRTG ( > 2.9.7 ??)
That is : MRTG xxx.cfg --logging=whatnameyouwant.log
-----Original Message-----
From: Michael Bartlett [mailto:michael_jw_bartlett at hotmail.com]
Sent: lundi 27 août 2001 12:37
To: Mike Koch; MRTG Mailing List (E-mail)
Subject: Re: [mrtg] Re: Wrong figures being graphed?!
hi mike
thanks for keeping with me here.
with regards to what you are saying, i've changed all my scripts now to
return two zeros at the end now - but i don't think that's the problem
because my other graphs are all fine!
anyway. you see those 238 and 245 values in the log
if that is really the case, surely my max value would be 245
but its not
its
Max In: 108.0 F (10.8%) Average In: 50.0 F (5.0%) Current In: 0.0 F
(0.0%)
Max Out: 108.0 F (10.8%) Average Out: 50.0 F (5.0%) Current Out: 0.0
F (0.0%)
if i run the script manually right now, i get :
su-2.03# ./scripts/file_stats.sh
233
233
0
0
that file is a+x
mrtg is in my root crontab, so there are no file permisison problems
and as you can see the MaxBytes is nowhere near MAX
is there anyway to run mrtg with verbose options so i could have more eyes
than just the log file?
cheers
mike
----- Original Message -----
From: "Mike Koch" <Mike.Koch at etsi.fr>
To: "'Michael Bartlett'" <michael_jw_bartlett at hotmail.com>; "MRTG Mailing
List (E-mail)" <mrtg at list.ee.ethz.ch>
Sent: Monday, August 27, 2001 10:43 AM
Subject: [mrtg] Re: Wrong figures being graphed?!
>
> I can explain you what is in the log files :
>
> 1) The first line is the last result that MRTG got. The first number is
the
> number of seconds since 1st January 1970. It's a 'universal' notation, and
> easier to do differences between dates. The second and third numbers are
the
> results returned by your script: here 238 and 238. So, actually, your
> scripts is running fine.
>
> 2) All the others lines are an historic: you can see the time decreasing
in
> the first column, every 5 minutes (300 seconds). The second and third
> columns are the results of your script at these dates. So you can see that
> there is a lot of 0, but now it seems to work.
>
> So what is going on ? MRTG put 0 values in the log. It can be because of
> various things: value greater than MaxBytes (don't seems the case here),
> problem of rights with executing the script (if it worked before, has
> something been changed ?), a problem with the script itself...
>
> By the way, I've got MRTG 2.9.17 and I'm pretty sure that you have to give
4
> values when calling an external script. But maybe that wasn't the case
with
> older versions.
>
> Maybe we can help you if you provide other informations...
>
> Cheers.
>
>
> -----Original Message-----
> From: Michael Bartlett [mailto:michael_jw_bartlett at hotmail.com]
> Sent: lundi 27 août 2001 11:24
> To: Mike Koch; MRTG Mailing List (E-mail)
> Subject: Re: [mrtg] Re: Wrong figures being graphed?!
>
>
> hi mike
> as far as i am aware, you don't need the 2nd two figures - they are
> optional. i don't use them in any of my other scripts...
> herewith the paste of the log file:
> 998903534 238 238
> 998903534 238 238 238 238
> 998903523 245 245 248 248
> 998903400 0 0 0 0
> 998903100 0 0 0 0
> 998902800 0 0 0 0
> 998902500 0 0 0 0
> 998902200 0 0 0 0
> 998901900 0 0 0 0
>
> i've also got another graph as well that isn't responding correctly to
> input. its all a bit strange...
> cheers
> mike
> ----- Original Message -----
> From: "Mike Koch" <Mike.Koch at etsi.fr>
> To: "MRTG Mailing List (E-mail)" <mrtg at list.ee.ethz.ch>
> Sent: Monday, August 27, 2001 8:07 AM
> Subject: [mrtg] Re: Wrong figures being graphed?!
>
>
> >
> > 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
> >
> >
>
> --
> 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