Fatal Error while execute poller.php???

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

Moderators: Developers, Moderators

Post Reply
adilalpman
Posts: 2
Joined: Tue Oct 04, 2005 7:53 pm

Fatal Error while execute poller.php???

Post by adilalpman »

Fisrtly, i have to say i am very unexperienced about cacti, i use mrtg many times before but cacti is very new for me. I have two question now. Firstly, must I use php or php4 to run poller.php, which one? Secondly when i use "php poller.php" or "php4 poller.php" commands in my debian's console i get "Fatal error: Call to undefined function: mysql_connect() in /var/www/cacti-mrtg/lib/adodb/drivers/adodb-mysql.inc.php on line 339" message and when i look cacti's graph page on the web i see mrtg pictures places but there seems to be blank. On the other hand i can logon successfully and i can install my cisco1900 device on cacti and i can logon sucessfully cacti's mysql db on debian's console. Please help me to how can i fix theese problems, thanks a lot...
User avatar
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Re: Fatal Error while execute poller.php???

Post by pirx »

adilalpman wrote:Fisrtly, i have to say i am very unexperienced about cacti, i use mrtg many times before but cacti is very new for me. I have two question now. Firstly, must I use php or php4 to run poller.php, which one? Secondly when i use "php poller.php" or "php4 poller.php" commands in my debian's console i get "Fatal error: Call to undefined function: mysql_connect() in /var/www/cacti-mrtg/lib/adodb/drivers/adodb-mysql.inc.php on line 339" message and when i look cacti's graph page on the web i see mrtg pictures places but there seems to be blank. On the other hand i can logon successfully and i can install my cisco1900 device on cacti and i can logon sucessfully cacti's mysql db on debian's console. Please help me to how can i fix theese problems, thanks a lot...
Check that the debian package php4-mysql is installed and that there is a line with 'extension=mysql.so' in your php.ini. Then check your database settings in include/config.php.

Ralf
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests