HOWTO: Install MRTG (FULLY AUTOMATED) 2.12.2

still yet these errors!



[root@server ~]# ./install.mrtg.sh
----------------------------------------


Released By Wael Isa (www.web4host.net)
----------------------------------------


Checking for previous MRTG installation...
The directory /var/www/html/mrtg does not exist. I will create it...
Creating necessary directories and preparing for installation...
Preparations complete...
Downloading the most recent MRTG and installing it...
--00:00:49-- ftp://ftp.idilis.ro/mirrors/mrtg/mrtg-2.13.2.tar.gz
=> `mrtg-2.13.2.tar.gz'
Resolving ftp.idilis.ro... 217.156.85.15
Connecting to ftp.idilis.ro|217.156.85.15|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /mirrors/mrtg ... done.
==> PASV ... done. ==> RETR mrtg-2.13.2.tar.gz ... done.

[ <=> ] 1,107,214 423.59K/s

00:00:52 (422.48 KB/s) - `mrtg-2.13.2.tar.gz' saved [1107214]

./install.mrtg.sh: ./configure: /bin/sh: bad interpreter: Permission denied
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
MRTG has been installed...
Updating MRTG config and template...
--00:00:52-- http://www.web4host.net/tools/mrtgcfg.tar.gz
=> `mrtgcfg.tar.gz'
Resolving www.web4host.net... 72.232.91.74
Connecting to www.web4host.net|72.232.91.74|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,056 (2.0K) [application/x-gzip]

100%[====================================>] 2,056 --.--K/s

00:00:52 (158.46 KB/s) - `mrtgcfg.tar.gz' saved [2056/2056]

Update complete!
Adding MRTG to /etc/crontab...
Executing MRTG for the first time (you may see some warnings)...
./install.mrtg.sh: line 68: /usr/local/mrtg-2/bin/mrtg: No such file or directory
If you see warnings above, it is generally safe to ignore.
Cleaning up installation...
----------------------------------------


Installation of MRTG complete!
----------------------------------------


Released By Wael Isa (www.web4host.net)
----------------------------------------


[root@server ~]# env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg
env: /usr/local/mrtg-2/bin/mrtg: No such file or directory
 
Well i think i found the soulition for my problem above.

My /tmp has noexec,nosuid.

I did this:

# nano -w /etc/fstab
by the /tmp directory i deleted loop,noexec,nosuid and change this to defaults.

save the file

umount /tmp
mount /tmp

and then run the install script!


Note: don,t forget to protect your /tmp again!
 
I dont have any problems with installation, but my traffic and memory stats are in a descending order =/
Weeks are like Sunday -> Saturday -> Friday -> Thursday etc etc
Also the hours are like this 22 -> 20 -> 18

How to fix this?
 
DhoTjai said:
I dont have any problems with installation, but my traffic and memory stats are in a descending order =/
Weeks are like Sunday -> Saturday -> Friday -> Thursday etc etc
Also the hours are like this 22 -> 20 -> 18

How to fix this?

edit and fix what you want in mrtg.cfg
 
FreeBSD Scripts?

Does anyone have mrtg.cfg & core/system scripts for FreeBSD that work like the linux ones made in this auto install script?
 
Same happened to me, It just installed these files and directories:

/usr/local/mrtg-2
/usr/local/mrtg-2/bin
/usr/local/mrtg-2/bin/rateup
/usr/local/mrtg-2/bin/indexmaker
/usr/local/mrtg-2/bin/cfgmaker
/usr/local/mrtg-2/bin/mrtg-traffic-sum
/usr/local/mrtg-2/bin/mrtg
/usr/local/mrtg-2/lib
/usr/local/mrtg-2/lib/mrtg2
/usr/local/mrtg-2/lib/mrtg2/SNMP_Session.pm
/usr/local/mrtg-2/lib/mrtg2/BER.pm
/usr/local/mrtg-2/lib/mrtg2/Pod
/usr/local/mrtg-2/lib/mrtg2/Pod/PlainText.pm
/usr/local/mrtg-2/lib/mrtg2/Pod/Usage.pm
/usr/local/mrtg-2/lib/mrtg2/Pod/Parser.pm
/usr/local/mrtg-2/lib/mrtg2/Pod/Select.pm
/usr/local/mrtg-2/lib/mrtg2/Pod/InputObjects.pm
/usr/local/mrtg-2/lib/mrtg2/MRTG_lib.pm
/usr/local/mrtg-2/lib/mrtg2/Net_SNMP_util.pm
/usr/local/mrtg-2/lib/mrtg2/SNMP_util.pm
/usr/local/mrtg-2/lib/mrtg2/locales_mrtg.pm
/usr/local/mrtg-2/man
/usr/local/mrtg-2/man/man1
/usr/local/mrtg-2/man/man1/mrtg-nw-guide.1
/usr/local/mrtg-2/man/man1/mrtg-unix-guide.1
/usr/local/mrtg-2/man/man1/mrtg.1
/usr/local/mrtg-2/man/man1/mrtg-contrib.1
/usr/local/mrtg-2/man/man1/mrtg-mibhelp.1
/usr/local/mrtg-2/man/man1/mrtg-forum.1
/usr/local/mrtg-2/man/man1/mrtg-reference.1
/usr/local/mrtg-2/man/man1/cfgmaker.1
/usr/local/mrtg-2/man/man1/mrtg-rrd.1
/usr/local/mrtg-2/man/man1/mrtg-nt-guide.1
/usr/local/mrtg-2/man/man1/mrtg-faq.1
/usr/local/mrtg-2/man/man1/mrtg-webserver.1
/usr/local/mrtg-2/man/man1/mrtglib.1
/usr/local/mrtg-2/man/man1/indexmaker.1
/usr/local/mrtg-2/man/man1/mrtg-squid.1
/usr/local/mrtg-2/man/man1/mrtg-logfile.1
/usr/local/mrtg-2/man/man1/mrtg-ipv6.1
/usr/local/mrtg-2/share
/usr/local/mrtg-2/share/mrtg2
/usr/local/mrtg-2/share/mrtg2/icons
/usr/local/mrtg-2/share/mrtg2/icons/mrtg-ti.gif
/usr/local/mrtg-2/share/mrtg2/icons/mrtg-r.png
/usr/local/mrtg-2/share/mrtg2/icons/mrtg-l.png
/usr/local/mrtg-2/share/mrtg2/icons/mrtg-m.gif
/usr/local/mrtg-2/share/mrtg2/icons/mrtg-l.gif
/usr/local/mrtg-2/share/mrtg2/icons/mrtg-r.gif
/usr/local/mrtg-2/share/mrtg2/icons/mrtg-m.png
/usr/local/mrtg-2/share/mrtg2/icons/mrtg-ti.png
/usr/local/mrtg-2/share/doc
/usr/local/mrtg-2/share/doc/mrtg2
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-ipv6.txt
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-rrd.txt
/usr/local/mrtg-2/share/doc/mrtg2/cfgmaker.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-faq.txt
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-r.png
/usr/local/mrtg-2/share/doc/mrtg2/THANKS
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-reference.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-l.png
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-ipv6.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-unix-guide.txt
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-unix-guide.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-faq.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtg.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-webserver.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-logfile.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtglib.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-nt-guide.txt
/usr/local/mrtg-2/share/doc/mrtg2/indexmaker.txt
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-mibhelp.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-forum.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-nw-guide.txt
/usr/local/mrtg-2/share/doc/mrtg2/mrtg.txt
/usr/local/mrtg-2/share/doc/mrtg2/COPYRIGHT
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-mibhelp.txt
/usr/local/mrtg-2/share/doc/mrtg2/COPYING
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-nt-guide.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-squid.txt
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-contrib.txt
/usr/local/mrtg-2/share/doc/mrtg2/mrtglib.txt
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-squid.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-webserver.txt
/usr/local/mrtg-2/share/doc/mrtg2/CHANGES
/usr/local/mrtg-2/share/doc/mrtg2/cfgmaker.txt
/usr/local/mrtg-2/share/doc/mrtg2/indexmaker.pod
/usr/local/mrtg-2/share/doc/mrtg2/README
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-logfile.txt
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-forum.txt
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-m.png
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-contrib.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-reference.txt
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-ti.png
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-nw-guide.pod
/usr/local/mrtg-2/share/doc/mrtg2/mrtg-rrd.pod
/var/spool/up2date/mrtg-2.10.15-1.i386.hdr

Is it save to uninstall delete the mrtg-2 directory?
 
Back
Top