i can't install it with this steps
http://forums.cpanel.net/showthread....g+installation
i can't install it with this steps
http://forums.cpanel.net/showthread....g+installation
Why not post in that thread where people are actively working on the installs. Getting MRTG running requires reading the docs and compiling/configuring it correctly unless you can find a package that is available like the one in the thread.
I am running centos 4 and I was able to install it with these exact instructions:Originally Posted by zinehost
1: rpm -e mrtg
2: rpm http://www.interxstream.com/mrtg-2.9...panel.i386.rpm -Uvh
3: cd /usr/lib
4: mv libpng.so.2 libpng.so.2.OLD
5: ln -s libpng.so.3 libpng.so.2
6: pico /etc/sysconfig/i18n
7: change LANG to LANG="en_US"
8: Start and stop MTRG several times ignoring errors ... service mrtg start/stop/restart
9: chkconfig --add mrtg
10. Add this line to httpd.conf at ver top: Alias /mrtg/ /usr/local/apache/htdocs/mrtg/
11. Restart httpd - httpd stop -> httpd startssl
11: Now check http://YourMainIP/mrtg/
Don't forget the trailing "/" on step 11....
Regards,
Damion
Just run the following command and it will install mrtg automatically for you.
yum install mrtg
Regards
For some reason it seems that UPCP breaks MRTG every night. I installed this yesterday, everything was working until this morning, where I started getting a ton of errors. Which I didnt copy.
Then I tried to restart MRTG by doing a service mrtg restart, and it was unrecognized. I was able to start it by doing a /usr/bin/mrtg /etc/mrtg/mrtg.cfg start and then it still wasnt working, so what happened?
I do a chkconfig --list |grep mrtg and its not there anymore.
I try to do a chkconfig --add mrtg and I get an error.
chkconfig --add mrtg
error reading information on service mrtg: No such file or directory
Last edited by Adrnalnrsh; 04-27-2006 at 03:55 PM.
With witch install did you do it:
[recommended]yum install mrtg
or
1: rpm -e mrtg
2: rpm http://www.interxstream.com/mrtg-2.9...panel.i386.rpm -Uvh
3: cd /usr/lib
4: mv libpng.so.2 libpng.so.2.OLD
5: ln -s libpng.so.3 libpng.so.2
6: pico /etc/sysconfig/i18n
7: change LANG to LANG="en_US"
8: Start and stop MTRG several times ignoring errors ... service mrtg start/stop/restart
9: chkconfig --add mrtg
10. Add this line to httpd.conf at ver top: Alias /mrtg/ /usr/local/apache/htdocs/mrtg/
11. Restart httpd - httpd stop -> httpd startssl
11: Now check http://YourMainIP/mrtg/
If it is the last you can fix it by the following way:
pico /etc/yum.conf
find: exclude=httpd* mysql* php* perl* spamassassin* mod_ssl* kernel* courier* apache* exim*
add: libpng* png*
Good luck!
Well, I made the changes and MRTG has been destroyed again.
Here are a few things that start appearing in the console.
[/usr/local/apache/htdocs]# service mrtg stop
mrtg: unrecognized service
[/usr/local/apache/htdocs]# WARNING: Running '/etc/mrtg/system network eth0': No such file or directory
WARNING: Could not get any data from external command '/etc/mrtg/system network eth0'
Maybe the external command did not even start. (No such file or directory)
WARNING: Running '/etc/mrtg/system tcp': No such file or directory
WARNING: Could not get any data from external command '/etc/mrtg/system tcp'
Maybe the external command did not even start. (No such file or directory)
WARNING: Running '/etc/mrtg/system load': No such file or directory
WARNING: Could not get any data from external command '/etc/mrtg/system load'
Maybe the external command did not even start. (No such file or directory)
WARNING: Running '/etc/mrtg/system swap': No such file or directory
WARNING: Could not get any data from external command '/etc/mrtg/system swap'
Maybe the external command did not even start. (No such file or directory)
WARNING: Running '/etc/mrtg/system processes': No such file or directory
WARNING: Could not get any data from external command '/etc/mrtg/system processes'
Maybe the external command did not even start. (No such file or directory)
WARNING: Running '/etc/mrtg/system uptime': No such file or directory
WARNING: Could not get any data from external command '/etc/mrtg/system uptime'
Maybe the external command did not even start. (No such file or directory)
WARNING: Running '/etc/mrtg/email-totals1 MAIL-HOST': No such file or directory
WARNING: Could not get any data from external command '/etc/mrtg/email-totals1 MAIL-HOST'
Maybe the external command did not even start. (No such file or directory)
WARNING: Running '/etc/mrtg/email-queue1 MAIL-HOST': No such file or directory
WARNING: Could not get any data from external command '/etc/mrtg/email-queue1 MAIL-HOST'
Maybe the external command did not even start. (No such file or directory)
WARNING: Running '/etc/mrtg/email-count1 MAIL-HOST': No such file or directory
WARNING: Could not get any data from external command '/etc/mrtg/email-count1 MAIL-HOST'
Maybe the external command did not even start. (No such file or directory)
WARNING: Running '/etc/mrtg/system network eth0': No such file or directory
WARNING: Could not get any data from external command '/etc/mrtg/system network eth0'
Maybe the external command did not even start. (No such file or directory)
This is the script that mrtg.cfg uses.
Maybe just un install it and use, because the mrtg is very old:
yum install mrtg
I know about the mrtg.cfg file, the problem is upcp breaks it. Anyhow, I found something that may fix it.
http://forums.cpanel.net/showthread....289#post158289
This will tell upcp not to update mrtg.