poller.php doesn't work....

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Doomulation
Posts: 12
Joined: Wed Mar 07, 2007 10:50 am

poller.php doesn't work....

Post by Doomulation »

Hi
I've just installed this morning apache2, php5, mysql5 and cacti 8.6j on a debian4 and the installation worked fine.

However, no graph is editing :cry:

My phpinfo works fine.

I've placed that in my root's crontab (crontab -e):
*/5 * * * * root php /var/www/cacti/poller.php > /dev/null 2>&1

tail -f on syslog give me that every 5 minutes:
Jul 18 12:00:01 echidna /USR/SBIN/CRON[3127]: (root) CMD (root php /var/www/cacti/lib/poller.php > /dev/null 2>&1)

I've make a chmod on /rra and log, i've no message in my log files....

php /var/www/cacti/poller.php returns me nothing...

Is there somebody who can help a poor student? ... thanks :lol:
thegritch
Posts: 7
Joined: Wed Jul 18, 2007 4:04 am

Post by thegritch »

I have the same problem...
Doomulation
Posts: 12
Joined: Wed Mar 07, 2007 10:50 am

OK OK...

Post by Doomulation »

I've removed my 8.6j version, and i've just make:
apt-get install cacti

It works!
But i've another problem now:

php /usr/share/cacti/site/poller.php

Fatal error: Call to undefined function: mysql_pconnect() in /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 377

I think it's because /usr/share/adodb is become /usr/share/php/adodb, but where do i make modification??

...help me... please... :wink:
thegritch
Posts: 7
Joined: Wed Jul 18, 2007 4:04 am

Post by thegritch »

heum ..strange.

Maybe try to relaod mysql ?

Code: Select all

/etc/init.d/mysql stop 
/etc/init.d/mysql start 
Or create a php page with a simple connection with mysql :

Code: Select all

mysql_pconnect("myhome", "cacti", 'password');
the mysql_pconnect function must be known by mysql...
Doomulation
Posts: 12
Joined: Wed Mar 07, 2007 10:50 am

Oh Oh....

Post by Doomulation »

I've rebooted the computer and....

computer:~# php /usr/share/cacti/site/lib/poller.php

computer:~#


:-? Return to the begining...

Can you help me?

Bye
thegritch
Posts: 7
Joined: Wed Jul 18, 2007 4:04 am

Post by thegritch »

Sorry,

I'am not too fluent in Cacti to help you :(
But if i see anything i post

Good luke
neophitus
Posts: 1
Joined: Sat Jul 21, 2007 10:14 am

Same Issue

Post by neophitus »

Im having the same issue here.

Can anyone help us?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I never ran a Debian Cacti install. But from other postings, there's a chance that sth like

Code: Select all

dpkg-reconfigure php5-mysql
or the like may help
Reinhard
evil_andy
Posts: 1
Joined: Fri Apr 10, 2009 11:42 am

SOLVED

Post by evil_andy »

Hey, don't know if anyone still cares about this.
The fix is:
apt-get install php5-cli

works like a charm :)
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests