sander815 said:any1 got some nice configs?
interfasys said:*/5 * * * * /usr/local/mrtg-2/bin/mrtg /path/to/html/folder/mrtg/mrtg.cfg
does not work for me (command works from console though)
Any idea on how to run the script every 5 minutes?
I mean should I use this one instead :
*/5 * * * * root /usr/local/mrtg-2/bin/mrtg /path/to/html/folder/mrtg/mrtg.cfg
?
deltaned said:What do I add where to get the trafic on ALL switch ports?
Now it is counting of 1 domain, but I wich to view the traffic of all the servers on my switch ports
- overview of every switchport
ret said:i installed mrtg, but the results are by far not ok:
Max In: 7766.0 B/s (0.0%) Average In: 3059.0 B/s (0.0%) Current In: 2864.0 B/s (0.0%)
Max Out: 33.6 kB/s (0.1%) Average Out: 15.2 kB/s (0.1%) Current Out: 15.3 kB/s (0.1%)
that should be like this
Max In: 333.2 kb/s (0.3%) Average In: 108.1 kb/s (0.1%) Current In: 97.5 kb/s (0.1%)
Max Out: 138.7 kb/s (0.1%) Average Out: 61.1 kb/s (0.1%) Current Out: 53.0 kb/s (0.1%)
whats wrong? i used the standard cfg posted here
tar -zxvh mrtg.tar.gz
tar (child): /dev/sa0: Cannot open: Device not configured
tar (child): Error is not recoverable: exiting now
gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: mrtg.tar.gz: Not found in archive
tar: Error exit delayed from previous errors
** Ooops, one of many bad things happened:
a) You don't have the GD library installed.
Get it from http://www.boutell.com, compile it and
use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify
its location. You might also have to use --with-z-inc,
--with-z-lib and --with-png-inc, --with-png-lib for gd
versions 1.6 and higher. Check config.log for more
information on the problem.
b) You have the GD library installed, but not the gd.h
header file. Download the source (see above) and use
--with-gd-inc=DIR to specify where the file can be found.
c) You have the library and the header file installed, but
you also have a shared GD library in the same directory.
Remove the shared library files and/or links (e.g.
libgd.so.2.0.0, libgd.so and libgd.so.2). This is especially
likely if you're using a recent (post 1.8.4) version of GD
and didn't configure it with --disable-shared.
d) You have gd library installed and also it's headers, but you are
missing libpng (and headers) or freetype (and headers)
(mrtg does not use freetype, but if your copy of gd is precompiled
against it, you have to install it ...
Consider following the instructions in doc/mrtg-unix-guide.txt
tar -zxvh mrtg.tar.gz