LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Install/Configuration (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=11)
-   -   ./rrdgraph_install.sh ? (http://www.litespeedtech.com/support/forum/showthread.php?t=5571)

eva2000 12-21-2011 12:42 AM

./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


NiteWave 12-21-2011 12:51 AM

please try:

modify
/path/to/ls_stats/config/main.php
'rrdtool' => '/usr/bin/rrdtool',
to
'rrdtool' => '/usr/local/cpanel/3rdparty/bin/rrdtool',

eva2000 12-21-2011 01:26 AM

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


eva2000 12-21-2011 01:35 AM

Seems getting CRON emails every minute now.. there's a logger_mail.class.php so how to disable emails ?

NiteWave 12-21-2011 02:58 AM

thanks. please try:

modify
/path/to/ls_stats/config/log.php
'logger' => new logger_syslog(),
to
'logger' => new logger_file("/tmp/rrdtool.log"),

eva2000 12-21-2011 03:12 AM

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 ?

NiteWave 12-21-2011 03:24 AM

will delete those 2 files in package

please check if file /tmp/rrdtool.log is writable -- it will be updated by cron job.

eva2000 12-21-2011 03:34 AM

chmod 0666 /tmp/rrdtool.log

didn't help still sending emails

NiteWave 12-21-2011 04:11 AM

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.

eva2000 12-21-2011 04:15 AM

strange i have several other custom cron jobs added and not one of them sends out email themselves.. will double check


All times are GMT -7. The time now is 05:01 AM.