Follow the "Installation How-to for Linux" to install cacti and all necessary components on a RHEL 3.0 box:
cacti-0.8.6f
cacti-cactid-0.8.6e
httpd-2.0.54
mysql-standard-4.0.25-pc-linux-gnu-i686-icc-glibc23
net-snmp-5.1.2
php-4.4.0
rrdtool-1.0.49
Add the entry in crontab as:
*/5 * * * * cactiuser /www/php/bin/php /www/htdocs/cacti/poller.php /dev/null 2>&1
and make sure it's running.
Also configured the poller to be cmd.php
Then I can access http://hostname/cacti with no problem.
But after one day, there's no any .rra file created under /www/htdocs/cacti/rra/ directory.
Double checked the permission of the rra/ and log/ directory, they are fine:
ib04b12:[/www/htdocs/cacti]>ls -ld rra log
drwxrwxrwx 2 cactiuser cacti 4096 Jul 16 19:04 log/
drwxrwxrwx 2 cactiuser cacti 4096 Jul 15 00:22 rra/
The log file keeps saying:
ib04b12:[/www/htdocs/cacti/log]>cat cacti.log
07/16/2005 07:04:57 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceed
ed. Exiting.
07/16/2005 07:09:57 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceed
ed. Exiting.
07/16/2005 07:15:00 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceed
ed. Exiting.
Try manually run cmd.php, got the following error:
cactiuser@ib04b12:/www/htdocs/cacti[cactiuser@ib04b12 cacti]$ php cmd.php
Content-type: text/html
X-Powered-By: PHP/4.3.2
<br />
<b>Fatal error</b>: Call to undefined function: mysql_connect() in <b>/www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php</b> on line <b>339</b><br />
But I can access the web interface without any problem (before I install and configure mysql properly, I got connect error when accessing the web interface).
I'm a newbie to cacti, could somebody help me out? Any suggestion to how to debug this?
No rra files created in rra/ directory after install
Moderators: Developers, Moderators
Path of wrong version of php caused this problem
Found the place to set the log level in cacti, run manually again, log says:
07/17/2005 06:03:44 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /www/htdocs/cacti/cmd.php 0 1]
I notice the php I installed is at /www/php/bin/php instead of /usr/bin/php.
Seems cacti found an original installed php and I didn't correct it at the first login.
Correct the php path and try manually again, no hang or timeout, seems the problem resolved.
Cacti has quite a few dependencies, the user has to be very carefully about the path. I'll remember this lesson for a long time.
Thx a lot, TheWitness, you support me at the point I almost lost my confidence to use Cacti. I'll keep on trying.
07/17/2005 06:03:44 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /www/htdocs/cacti/cmd.php 0 1]
I notice the php I installed is at /www/php/bin/php instead of /usr/bin/php.
Seems cacti found an original installed php and I didn't correct it at the first login.
Correct the php path and try manually again, no hang or timeout, seems the problem resolved.
Cacti has quite a few dependencies, the user has to be very carefully about the path. I'll remember this lesson for a long time.
Thx a lot, TheWitness, you support me at the point I almost lost my confidence to use Cacti. I'll keep on trying.
Who is online
Users browsing this forum: No registered users and 0 guests