Here is the problem I experience:
I run poller as cactiuser and I get the fallowing message:
Code: Select all
cactiuser@ntop01:/usr/share/cacti/site$ ./poller.php
Fatal error: Call to undefined function: mysql_connect() in /usr/share/cacti/si te/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Code: Select all
// returns true or false
function _connect($argHostname, $argUsername, $argPassword, $argDatabasename)
{
if (ADODB_PHPVER >= 0x4300)
$this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,
[b]$this->forceNewConnect,$this->clientFlags);
else if (ADODB_PHPVER >= 0x4200)[/b]
$this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,
$this->forceNewConnect);
else
$this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword);
if ($this->_connectionID === false) return false;
if ($argDatabasename) return $this->SelectDB($argDatabasename);
return true;
}
Can anybody help me?? I don't know much about MySQL.
Thanks,