fatal error

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
derrick.joseph
Posts: 12
Joined: Wed Jan 26, 2005 11:00 pm

fatal error

Post by derrick.joseph »

Hello,

What is this error all about ?

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 341

Thanks
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

One of 2 things...

1. You have not setup the config.php to point to the cacti database with the correct username/password.

2. PHP does not have mysql support. Run the following command and if you don't see mysql, it's you need to add it in php.

Code: Select all

php -m
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
ApoC
Posts: 18
Joined: Sun Jan 16, 2005 10:11 pm

Post by ApoC »

i have the same problem....

have installed over apt-get install php4-mysql but its not in the php -m list....

what is the problem?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Make sure that the module is included in your php.ini file.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
ApoC
Posts: 18
Joined: Sun Jan 16, 2005 10:11 pm

Post by ApoC »

the prob is solved...but now i have another problems...

can show the graphs for hdd space, but nothing appears on the cpu load, mem usage, logged in users... graphs...

can u help?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Go into the Devices section and edit the Localhost. Click the little green circle by the "Unix - Get Mounted Partitions" Associated Data Queries line. This will requery the partitions on the system. After that has updated, you can click the "Create Graphs for this Host" link at the top and create your graphs for the mounted partitions.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
ApoC
Posts: 18
Joined: Sun Jan 16, 2005 10:11 pm

Post by ApoC »

hmm, u dont understand me..;)

i CAN graph the hdd

BUT

NOT the cpu load/ mem load/ logged in users/ interface...

the graphes for this are there, but no data is in it...

Code: Select all

Data Query Debug Information
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'


and btw...the SNMP Cache is empty....is it normal?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

FYI, you have to have a running and configured SNMP Daemon to graph traffic. There are not scripts to graph interface stats from localhost.

Sorry, jazzed up on coffee, didn't get enough sleep last night.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
ApoC
Posts: 18
Joined: Sun Jan 16, 2005 10:11 pm

Post by ApoC »

hmmmm

on the "devices" tab are shown the following...

Localhost (127.0.0.1)
SNMP Information
SNMP not in use

hmm, but i have installed snmp...and conft wit the snmpconf...i have a snmp.conf file but ....

im confused....
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Have you updated localhosts snmp community?

:)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests