LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > ./rrdgraph_install.sh ?

Reply
 
Thread Tools Display Modes
  #1  
Old 12-21-2011, 12:42 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
Question ./rrdgraph_install.sh ?

Hi Gary and George

Followed the guide at http://www.litespeedtech.com/support...aph_monitoring for WHM/Cpanel based Litespeed 4.1.9 VPS and seem to get an error maybe to do with different rrdtool install/location ?

WHM/Cpanel rrdtool install

Code:
/scripts/rrdtoolinstall
RRDtool 1.4.5 is up to date.
If i manually run the command

Code:
/usr/local/lsws/fcgi-bin/lsphp5 /path/to/ls_stats/update.php
get errors

Code:
/usr/local/lsws/fcgi-bin/lsphp5 /path/to/ls_stats/update.php
#!/usr/bin/php
Working on cpu
Error:
exception 'Exception' with message 'rrdtool version check failed!' in /path/to/ls_stats/includes/rrd.class.php:478
Stack trace:
#0 /path/to/ls_stats/update.php(83): rrd->checkVersion('<', '1.2')
#1 {main}
Working on load
Error:
exception 'Exception' with message 'rrdtool version check failed!' in /path/to/ls_stats/includes/rrd.class.php:478
Stack trace:
#0 /path/to/ls_stats/update.php(83): rrd->checkVersion('<', '1.2')
#1 {main}
Working on memory
Error:
exception 'Exception' with message 'rrdtool version check failed!' in /path/to/ls_stats/includes/rrd.class.php:478
Stack trace:
#0 /path/to/ls_stats/update.php(83): rrd->checkVersion('<', '1.2')
#1 {main}
Working on lsws_stats
Error:
exception 'Exception' with message 'rrdtool version check failed!' in /path/to/ls_stats/includes/rrd.class.php:478
Stack trace:
#0 /path/to/ls_stats/update.php(83): rrd->checkVersion('<', '1.2')
#1 {main}
My version of rrdtool

Code:
/usr/local/cpanel/3rdparty/bin/rrdtool -V
RRDtool 1.4.5  Copyright 1997-2010 by Tobias Oetiker <tobi@oetiker.ch>
               Compiled Jun  1 2011 16:45:36
Reply With Quote
  #2  
Old 12-21-2011, 12:51 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
please try:

modify
/path/to/ls_stats/config/main.php
'rrdtool' => '/usr/bin/rrdtool',
to
'rrdtool' => '/usr/local/cpanel/3rdparty/bin/rrdtool',
Reply With Quote
  #3  
Old 12-21-2011, 01:26 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
thanks working and much easier than cacti!

Code:
#!/usr/bin/php
Working on cpu
        Creating RRD-file
        Updating RRD-file
Working on load
        Creating RRD-file
        Updating RRD-file
Working on memory
        Creating RRD-file
        Updating RRD-file
Working on lsws_stats
        Creating RRD-file
        Updating RRD-file
Reply With Quote
  #4  
Old 12-21-2011, 01:35 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
Seems getting CRON emails every minute now.. there's a logger_mail.class.php so how to disable emails ?
Reply With Quote
  #5  
Old 12-21-2011, 02:58 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
thanks. please try:

modify
/path/to/ls_stats/config/log.php
'logger' => new logger_syslog(),
to
'logger' => new logger_file("/tmp/rrdtool.log"),
Reply With Quote
  #6  
Old 12-21-2011, 03:12 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
tried that but seems still sending emails and the log is empty

there seems to be a log.php.000 and log.php.001 file too ?
Reply With Quote
  #7  
Old 12-21-2011, 03:24 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
will delete those 2 files in package

please check if file /tmp/rrdtool.log is writable -- it will be updated by cron job.
Reply With Quote
  #8  
Old 12-21-2011, 03:34 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
chmod 0666 /tmp/rrdtool.log

didn't help still sending emails
Reply With Quote
  #9  
Old 12-21-2011, 04:11 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Code:
Seems getting CRON emails every minute now
this rrdgraph add-on itself don't send out email.

it looks your cron job send out email once the rrdgraph job runs(it runs once / 1 minute). it may relate to your linux's setting. no email ever received per our tests.
Reply With Quote
  #10  
Old 12-21-2011, 04:15 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
strange i have several other custom cron jobs added and not one of them sends out email themselves.. will double check
Reply With Quote
Reply

Tags
cpanel, rrdgraph, rrdtool, whm

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:03 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.