[mrtg] Re: Wrong figures being graphed?!

Paul C. Williamson pwilliamson at mandtbank.com
Mon Aug 27 13:38:27 MEST 2001


What it looks like is happening is your script looks fine by hand, but running automatically isn't working for some reason.  Looks like it didn't run ok the last time on autopilot, but 2 minutes and 3 seconds later when you ran it, it worked.  Then you ran it again 11 seconds later and things works again.  What does it do on auto?  An Mike is right, MRTG has required 4 numbers for as long as I can remember...(before 2.9.12)

>>> Mike Koch <Mike.Koch at etsi.fr> 08/27/01 06:03 AM >>>

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.


-----Origial 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 abut 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