Re: Problems.
> To: <cacti _at_ packages.debian.org>
> Subject: Problems.
> From: "Stefan Andersson" <stefan _at_ networksolutions.se>
> Date: Sun, 24 Aug 2003 21:57:07 +0200
> Message-id: <004c01c36a79$e6732a00$030aa8c0@cerebro>
> Old-return-path: <stefan _at_ networksolutions.se>
>
>
----------------------------------------------------------------------------
----
> Hi.
> Sorry to bother you.
> But I'm having some serious malfunctions with the latest unstable cacti /
rrdtool / php4 ...
> Are there some problems in the latest unstable release php4 vs cacti ??
> For example i'm getting this .. And alot more of these errors too ..
>
> Warning: rrdtool_function_update(include/functions.php): failed to open
stream: No such file or directory in
/usr/share/cacti/include/rrd_functions.php on line 180
>
> Warning: rrdtool_function_update(): Failed opening 'include/functions.php'
for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in
/usr/share/cacti/include/rrd_functions.php on line 180
>
> Warning: rrdtool_function_update(include/database.php): failed to open
stream: No such file or directory in
/usr/share/cacti/include/rrd_functions.php on line 181
>
> Warning: rrdtool_function_update(): Failed opening 'include/database.php'
for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in
/usr/share/cacti/include/rrd_functions.php on line 181
>
> Warning: getdatasourcepath(include/database.php): failed to open stream:
No such file or directory in /usr/share/cacti/include/functions.php on line
109
>
> Warning: getdatasourcepath(): Failed opening 'include/database.php' for
inclusion (include_path='.:/usr/share/php:/usr/share/pear') in
/usr/share/cacti/include/functions.php on line 109
>
> Warning: mysql_query(): supplied argument is not a valid MySQL-Link
resource in /usr/share/cacti/include/functions.php on line 113
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /usr/share/cacti/include/functions.php on line 115
>
> Warning: mysql_query(): supplied argument is not a valid MySQL-Link
resource in /usr/share/cacti/include/rrd_functions.php on line 187
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /usr/share/cacti/include/rrd_functions.php on line 189
>
> Warning: mysql_query(): supplied argument is not a valid MySQL-Link
resource in /usr/share/cacti/include/rrd_functions.php on line 219
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /usr/share/cacti/include/rrd_functions.php on line 223
>
> Warning: rrdtool_execute(include/functions.php): failed to open stream: No
such file or directory in /usr/share/cacti/include/rrd_functions.php on line
32
>
> Warning: rrdtool_execute(): Failed opening 'include/functions.php' for
inclusion (include_path='.:/usr/share/php:/usr/share/pear') in
/usr/share/cacti/include/rrd_functions.php on line 32
ERROR: Not enough arguments
>
>
> You have any idea ?
> Thanks !
>
I had the same problem whith Debian/unstable cacti 0.6.8a-13.1.
The problem occurs, when you run the cron-commad php4
/usr/share/cacti/cmd.php which is called by /etc/cron.d/cacti. If you run
that command manually out of the /usr/share/cacti directory, everything is
fine.
After I changed by cron-line to this, everything was fine:
---
*/5 * * * * www-data cd /usr/share/cacti && php4 /usr/share/cacti/cmd.php >
/dev/null 2>&1
---
Greetings,
Stefan
Reply to: