[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

syweb installation problem



I'm stuck getting the syweb package functional in a chrooted apache/php
install and haven't seen a proper solution after searching the web.  I'm
running the symon, symux, and syweb packages all on the same machine.  I
get the index.php page w/o the actual graphs.  The error I receive in my
apache logs is:

[error] PHP Warning:  dir(/var/www/symon/rrds): failed to open dir: No
such file or directory in /htdocs/symon/index.php on line 171
[error] PHP Fatal error:  Call to a member function on a non-object in
/htdocs/symon/index.php on line 172

Looking at those lines in index.php, I see that the function is getting
the location of the rrd files...but notice the locations match up per the
configuration details below.  Where am I going wrong?

>pkg_info -a
libiconv-1.8
gettext-0.10.40p1
recode-3.6p1
php4-core-4.3.3
rrdtool-1.0.40
symon-mon-2.60
symon-mux-2.60
symon-web-2.60

I configured my rrd directory as:
/var/www/symon/rrds/localhost -->ls
cpu0.rrd     if_lo0.rrd   if_sl0.rrd   if_xl0.rrd   io_wd0.rrd   mem.rrd
if_gre0.rrd  if_lo1.rrd   if_sl1.rrd   if_xl1.rrd   mbuf.rrd     pf.rrd

I altered /var/www/htdocs/symon/datasources.inc to:
$symon2web["tree"]='/var/www/symon/rrds';

I set the /etc/symux.conf location of rrds to:
datadir "/var/www/symon/rrds/localhost"

I did notice in the installation docs that the author says, "Install
rrdtool into the chroot using ./install_rrdtool.sh." though that script is
not included in the package.  Instead I did an "ldd rrdtool" and installed
the associated hierarchy of files under the chroot of /var/www/.

Thanks in advance!

-sam