DirectAdmin Forums

Go Back   DirectAdmin Forums > Modifications / Add-ons > How-To Guides

Reply
 
Thread Tools Display Modes
  #201  
Old 06-21-2008, 04:16 PM
codeman05 codeman05 is offline
Verified User
 
Join Date: Jun 2008
Posts: 44
so, finally got this to install on Debian 4.0r3.

But I'm not sure if it is working.

First I got this error
Code:
Executing MRTG for the first time (you may see some warnings)...
-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
       variable LANG is set to UTF-8. Please run mrtg in an environment
       where this is not the case. Try the following command to start:

       env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg
-----------------------------------------------------------------------
If you see warnings above, it is generally safe to ignore.
Cleaning up installation...
Installation of MRTG complete!
So I update the crontab to: */5 * * * * root env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg

and to test run: env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg

which yields
Code:
2008-06-21 19:12:29, Rateup WARNING: /usr/local/mrtg-2/bin/rateup Can't remove index.old updating log file
2008-06-21 19:12:29, Rateup WARNING: /usr/local/mrtg-2/bin/rateup Can't remove tcp.old updating log file
2008-06-21 19:12:29, Rateup WARNING: /usr/local/mrtg-2/bin/rateup Can't remove load.old updating log file
2008-06-21 19:12:29, Rateup WARNING: /usr/local/mrtg-2/bin/rateup Can't remove swap.old updating log file
2008-06-21 19:12:29, Rateup WARNING: /usr/local/mrtg-2/bin/rateup Can't remove processes.old updating log file
2008-06-21 19:12:29, Rateup WARNING: /usr/local/mrtg-2/bin/rateup Can't remove uptime.old updating log file
2008-06-21 19:12:29, Rateup WARNING: /usr/local/mrtg-2/bin/rateup Can't remove cpu.old updating log file
2008-06-21 19:12:29, Rateup WARNING: /usr/local/mrtg-2/bin/rateup Can't remove memory.old updating log file
are these a cause for concern?

Last edited by codeman05; 06-21-2008 at 04:34 PM.
Reply With Quote
  #202  
Old 07-04-2008, 06:14 PM
deja_wu deja_wu is offline
Verified User
 
Join Date: Jun 2008
Posts: 22
i have same problem on my web server

i can't install mrtg with install.mrtg.sh script my problem is same with conkgai mrtg is not making but i have installed gd or other requirements.what is this problem ? i think maybe we can install gd with --disable-shared but where i am going to write in my files for gd ?
Reply With Quote
  #203  
Old 08-14-2008, 03:11 PM
codeman05 codeman05 is offline
Verified User
 
Join Date: Jun 2008
Posts: 44
hey guys. I've been running MRTG for a while now.

The only problem I have is the CPU Utilization graphs do not work at all.
They did work in the past, however a few weeks back I did a reinstall of the O/S and MRTG...since it has not worked.

Any suggestions?

Thank you in advance
Reply With Quote
  #204  
Old 08-20-2008, 09:36 PM
knoll knoll is offline
Verified User
 
Join Date: Sep 2005
Location: Belgium
Posts: 55
server1# cfgmaker westhost@127.0.0.1 > /usr/local/etc/mrtg/mrtg.cfg
Can't locate SNMP_util.pm in @INC (@INC contains: /usr/local/bin/../lib/mrtg2 /usr/local/bin /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /usr/local/bin/cfgmaker line 105.
server1# cat /usr/local/etc/mrtg/mrtg.cfg

anyone knows an solution?

i'm running freebsd 6.3

cpan> install Net::SNMP
Net::SNMP is up to date.
so that can't be the problem?

Last edited by knoll; 08-20-2008 at 09:56 PM.
Reply With Quote
  #205  
Old 08-21-2008, 06:32 AM
chatwizrd's Avatar
chatwizrd chatwizrd is offline
Verified User
 
Join Date: Jul 2005
Posts: 1,310
Thats probably not the right module then.

find / -name SNMP_util.pm
__________________
No soup for you!

Reply With Quote
  #206  
Old 08-21-2008, 06:57 AM
knoll knoll is offline
Verified User
 
Join Date: Sep 2005
Location: Belgium
Posts: 55
nothing found hmm
Reply With Quote
  #207  
Old 08-21-2008, 07:01 AM
chatwizrd's Avatar
chatwizrd chatwizrd is offline
Verified User
 
Join Date: Jul 2005
Posts: 1,310
Try: perl -MCPAN -e 'install SNMP::Util'
__________________
No soup for you!

Reply With Quote
  #208  
Old 08-21-2008, 07:23 AM
knoll knoll is offline
Verified User
 
Join Date: Sep 2005
Location: Belgium
Posts: 55
giving errors :

http://www.westhost.be/error

look there thats the error output
Reply With Quote
  #209  
Old 08-21-2008, 07:32 AM
chatwizrd's Avatar
chatwizrd chatwizrd is offline
Verified User
 
Join Date: Jul 2005
Posts: 1,310
Code:
cd /root
fetch "http://search.cpan.org/CPAN/authors/id/W/WM/WMARQ/SNMP-Util-1.8.tar.gz"
tar xvfz SNMP-Util-1.8.tar.gz
cd SNMP-Util-*
perl Makefile.PL
make
make install
or

Code:
cd /usr/ports/net-mgmt/p5-SNMP-Util
make install clean
__________________
No soup for you!

Reply With Quote
  #210  
Old 08-21-2008, 07:35 AM
knoll knoll is offline
Verified User
 
Join Date: Sep 2005
Location: Belgium
Posts: 55
server1# perl Makefile.PL
Checking for SNMP, V1.8 ok

Enter the IP address of the Device: 127.0.0.1
Enter the SNMP community string: westhost
Writing Makefile for SNMP::Util
server1# make install
Installing /usr/local/lib/perl5/site_perl/5.8.8/SNMP/Util.pm
Installing /usr/local/lib/perl5/site_perl/5.8.8/SNMP/Util_env.pm
Installing /usr/local/lib/perl5/5.8.8/man/man3/SNMP::Util.3
Writing /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/SNMP/Util/.packlist
FreeBSD: Registering installation in the package database
Appending installation info to /usr/local/lib/perl5/5.8.8/mach/perllocal.pod

server1# /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg
Can't locate SNMP_util.pm in @INC (@INC contains: /usr/local/bin/../lib/mrtg2 /usr/local/bin /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /usr/local/bin/mrtg line 292.

still the same error
Reply With Quote
  #211  
Old 08-21-2008, 07:41 AM
chatwizrd's Avatar
chatwizrd chatwizrd is offline
Verified User
 
Join Date: Jul 2005
Posts: 1,310
Might have to do:

ln -s /usr/local/lib/perl5/site_perl/5.8.8/SNMP/Util.pm /usr/local/lib/perl5/site_perl/5.8.8/SNMP/SNMP_util.pm
__________________
No soup for you!

Reply With Quote
  #212  
Old 08-21-2008, 07:56 AM
knoll knoll is offline
Verified User
 
Join Date: Sep 2005
Location: Belgium
Posts: 55
i tryed

make -C /usr/ports/net-mgmt/p5-SNMP_Session install clean

and that solvs the error

does anyone has the system file that works on freebsd with spam stats?

Greets,
Reply With Quote
  #213  
Old 08-23-2008, 05:55 AM
tkapower tkapower is offline
Registered User
 
Join Date: Aug 2008
Posts: 1
prob with mrtg.cfg html

Hi for me this worket like a clock
and i have also made my own scripts
but i cant get the
mrtg.cfg with

# HTML formatting stuff


to work i got
/usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg
i got
ERROR: Line 18 (<table cellspacing="0") in CFG file (/var/www/html/mrtg/core/mrtg.cfg) does not make sense

do you have som fast answear what i can have done wrong?
iam trying this one

###############################################################################
#
# HTML formatting stuff
#
###############################################################################

PageTop[^]: <table cellspacing="0" cellpadding="10" border="0" width="100%" align="center"><tr><td width="185" valign="top" class="small"><table cellspacing="0" cellpadding="5" border="0" width="100%"><tr><td class="tableh">Network</td></tr><tr><td class="tablesh"><a href="index.html">- Traffic</a><br><a href="tcp.html">- Open Connections</a></td></tr><tr><td>&nbsp;</td></tr><tr><td class="tableh">System Stats</td></tr><tr><td class="tablesh"><a href="load.html">- Load Averages</a><br><a href="swap.html">- Swap Memory</a><br><a href="processes.html">- Processes</a><br><a href="uptime.html">- Uptime and Idle Time</a><br><a href="cpu.html">- CPU</a><br><a href="memory.html">- Memory Usage</a><br><a href="pop3.html">- Email POP3 Logins</a><br><a href="imap.html">- Email IMAP Logins</a><br><a href="mail.html">- Email Delivered</a><br><a href="queue.html">- Email Queued</a><br><a href="spam.html">- Email Spam Blocked</a><br><a href="sa.html">- SpamAssassin Scans</a></td></tr><tr><td>&nbsp;</td></tr></table></td><td>
PageFoot[^]: </td></tr></table>
AddHead[^]: <meta http-equiv='Expires' content='-1'><style><!-- body { text-align: center; background-color: #CCCCCC; font-size: 10pt; font-family: arial, verdana; } th, td { font-size: 10pt; font-family: arial, verdana; } h3 { font-size: 12pt; font-family: arial, verdana; font-weight: bold; } .small { font-size: 8pt; font-family: arial, verdana; } .tableh { font-size: 10pt; font-family: arial, verdana; color: white; background-color: black; font-weight: bold; } .tablesh { font-size: 10pt; font-family: arial, verdana; color: black; background-color: #999999; font-weight: normal; } a:visited, a:active, a:link { text-decoration: none; font-weight: normal; font-family: arial, verdana; color: black; } a:hover { font-weight: normal; font-family: arial, verdana; background-color: #999999; color: white; } --></style>

###############################################################################



tnx for the help
Reply With Quote
  #214  
Old 10-02-2008, 08:54 AM
rkoechel rkoechel is offline
Registered User
 
Join Date: Dec 2007
Posts: 4
dns stats

Anyone have this setup to pull dns stats as well, I'd be interested in how to do this on centos.
Reply With Quote
  #215  
Old 10-02-2008, 06:33 PM
chatwizrd's Avatar
chatwizrd chatwizrd is offline
Verified User
 
Join Date: Jul 2005
Posts: 1,310
What sort of dns stats do you want? You can use mrtg to graph just about anything you can imagine just need a script to create the numbers to feed to mrtg.
__________________
No soup for you!

Reply With Quote
  #216  
Old 01-01-2009, 12:42 AM
spectrumproduct spectrumproduct is offline
Verified User
 
Join Date: Apr 2008
Posts: 34
I'm working .. all data seems to be coming through ..

although the pop3/imap/spam email logs just seem to be increasing .. I thought it would be a 5 minute average of what just went on .. it just seems to be an increasing total ..
Reply With Quote
  #217  
Old 02-06-2009, 12:51 PM
nimafire's Avatar
nimafire nimafire is offline
Verified User
 
Join Date: Aug 2008
Posts: 199
EMPTY
help me.

Index of /mrtg
[ICO] Name Last modified Size Description
[DIR] Parent Directory -
Apache/2 Server at IP Port 80
Reply With Quote
  #218  
Old 02-06-2009, 01:00 PM
nimafire's Avatar
nimafire nimafire is offline
Verified User
 
Join Date: Aug 2008
Posts: 199
i want to install mrtg like :

http://70.38.22.154/mrtg/
Reply With Quote
  #219  
Old 02-06-2009, 02:04 PM
SupermanInNY SupermanInNY is offline
Verified User
 
Join Date: Sep 2004
Posts: 299
Quote:
Originally Posted by nimafire View Post
i want to install mrtg like :

http://70.38.22.154/mrtg/
Have you used the update.script of Wael?

It does it for you.
If you already started the process, meaning if you tried to install it and it didn't work for you, you MUST erase the mrtg/ directory and it's content and then let the update.script run again.

This should work fine for you.

-Alon.
Reply With Quote
  #220  
Old 02-07-2009, 01:25 AM
nimafire's Avatar
nimafire nimafire is offline
Verified User
 
Join Date: Aug 2008
Posts: 199
-bash-3.2# cd /usr/local/updatescript
-bash-3.2# ./update.script MRTG
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: centosf.centos.org
* updates: centosq.centos.org
* addons: centosf.centos.org
* extras: centosf.centos.org
base 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Package gd-devel - 2.0.33-9.4.el5_1.1.i386 is already installed.
Nothing to do
Checking for previous MRTG installation...
There appears to be files in /var/www/html/mrtg already! Exiting...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto: Install Horde 3.0.4/IMP on FreeBSD Wouter How-To Guides 77 05-30-2007 01:24 PM
HOWTO: Install MRTG (FULLY AUTOMATED) 2.12.2 @how@ How-To Guides 73 05-12-2007 12:10 AM
[RELEASE] Ruby on Rails Direct Admin Plugin vandal 3rd Party Software 84 04-13-2007 03:44 AM
SNMP is not supported by your PHP installation. deltaned General Technical Discussion & Troubleshooting 6 04-03-2005 10:50 AM
HOWTO: Very easy RPM based MRTG installation ProWebUK How-To Guides 60 03-12-2005 08:55 AM


All times are GMT -7. The time now is 07:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
DirectAdmin © 2007 JBMC Software