MRTG Port

127.0.0.1.html

Hi There,

If the URL is always going to be 127.0.0.1.html, then you may as well do something like this.

Logged in as Admin, click on Custom HTTPD Configurations.
Select the domain you wish to manage (traffic.allcrazy.net in your case)

Add this to your httpd.conf file.

--

DirectoryIndex index.html index.php 127.0.0.1.html

--

(Don't put in the --'s I'm just using those as a seperator.)

Click Save. DONE.

This will tell Apache that 127.0.0.1.html can be used as a Directory Index like index.html.

Now, if this works for you, can you tell me how you got MRTG working for FreeBSD? I would like to use it as well.

Cheers!!
 
for freebsd u need to do this:

cd /usr/ports/net-mgmt/net-snmp
make && make install && make clean

edit /etc/rc.conf and add

snmpd_enable="YES"
snmpd_flags="-a -Lsd -p /var/run/snmpd.pid"

save and exit and after do

chmod 444 /usr/local/etc/rc.d/snmptrapd.sh

snmpconf -i

look in the menu something like SNMPv1 read only

exit from conf generator and do

/usr/local/etc/rc.d/snmpd.sh start


after u can install mrtg with

cd /usr/ports/net-mgmt/mrtg
make && make install && make clean

thanks for the apache changin.. do u know how may i change the kind of visualizzation and information that mrtg give?
 
Hi There,

Thanks for the information.
I don't know how to change the information as I'm a bit of a newbie to MRTG.

If you can tell me what to do after (as in, how to attach it to a domain to be viewable in a browser)

--
after u can install mrtg with

cd /usr/ports/net-mgmt/mrtg
make && make install && make clean
--

I can then get one of my Admin friends who uses MRTG quite a bit to look at it and perhaps help with a config file.

Cheers!!
 
Error

I have complited 1 -st step with snmp but
when i start installing MRTG i get this error !>>

** 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
===> Script "configure" failed unexpectedly.
Please report the problem to [email protected] [maintainer] and attach the
"/usr/ports/net-mgmt/mrtg/work/mrtg-2.11.1/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/net-mgmt/mrtg.

Please help me wit this.
I think that GD is installed with DA. isn't it?
Thank you
 
the GD that comes with DA is incompatible install it from the ports and you will be fine.
 
I'm afraid to dammage somthing if I uninstall previous GD and install the new one.

will I?
 
Back
Top