[mrtg] Re: empty graph

alex at ergens.op.Het.Net alex at ergens.op.Het.Net
Sat Mar 4 11:50:53 MET 2000


"Patacsil, Wilson \"Jun\"" wrote:
> 
> Hi
> 
> I'm trying to get my BLN router CPU Utilization but I am not so lucky.
> Attached is my cfg file, I got an empty graph. Any idea?  Thanks
> 

> # Router CPU load %
> Target[x.x.x.x.cpu]:
> 1.3.6.1.4.1.18.3.3.2.5.7.1.4.1&1.3.6.1.4.1.18.3.3.2.5.7.1.4.1:public at x.x.x.x
> RouterUptime[x.x.x.x.cpu]: public at x.x.x.x
> MaxBytes[x.x.x.x.cpu]: 100
> Options[x.x.x.x.cpu]: gauge, growright

config file looks okay, as long as the returned values are below 100.

First, check what the router returns.  You can do this with a tool such
as "snmpget" on unix or "snmputil.exe" on windows.  If the value returned
is 0, there's nothing MRTG can do about it.

If the router does return values other than 0, check the mrtg log file.
Look at the first few lines and do this again after five minutes.  The
values must change if everything works.

If there is something wrong with the values that are put in the log file
and you are sure that the router does return values, chances are that there
are errors during processing.  Make sure that you don't trow away your
error channel:  calling "mrtg mrtg.cfg 2>/dev/null" is *wrong* unless you
know what you are doing and why you are doing it.


Example (not a router cpu, doesn't matter in this case):
first:
   [alex at home alex]$ head -4 home.cpu.log
   952166406 114891692 128752121
   952166406 15 17 15 17
   952166346 15 18 18 21
   952166100 15 17 18 21
then:
   [alex at home alex]$ head -4 home.cpu.log
   952166525 114893820 128754500
   952166525 18 20 18 20
   952166466 16 18 17 19
   952166400 15 17 18 21

The values on each first line are the values that MRTG received.  They've
changed.  In my example the values are not GAUGEs so the second line will
show the resulting rate.  In your case they should show the same (i think).

If the values in the log file look OK, there is something wrong in your
MRTG installation or with the web server.  Make sure you are not looking
at old, cached, images.  Delete the x.x.x.x.cpu-day.png file, click
refresh in your browser and see if the image is missing.

regards,
-- 
   __________________________________________________________________
 / 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 |
+----------------------------------------------------------------------+

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg



More information about the mrtg mailing list