php 4.1.2
mysql 3.23.49
apache 1.3.26
debian linux
Hey all
<b>I installed cacti 0.8.6c and all its depedences.</b>
<b>Then installed the following patches:</b>
rrd_fetch_negative_numbers.patch
no_auth_no_graphs_in_tree_bug.patch
device_create_multiple_graphs.patch
undefined_index_custom_problem_in_graph_view.patch
poller_recache_timeout.patch
output_field_name_period.patch
ping_sysdescription_to_sysuptime.patch
netsnmp_reduce_output_from_loaded_mibs.patch
php_snmp_v2.patch
config_php_include_order.patch
<b>Then i ran php poller.php and got the following response:</b>
Call to undefined function: mysql_connect() in <b>/usr/sharre/cacti/lib/adodb/drivers/adodb-mysql.inc.php</b>
<b>I have seen a few other people have the same problem. I haven't seen a clear resolution for it though. Am I missing something, anyone have some advice?</b>
-T
Undefinted function mysql_connect()
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Run "php -m" and verify that mysql is loaded.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
mysql is not loaded
Hey
Thanks for the tip, it looks like mysql is not loaded. I assume i have to edit the php.ini file to load it. I will let you know how it works out.
-T
Thanks for the tip, it looks like mysql is not loaded. I assume i have to edit the php.ini file to load it. I will let you know how it works out.
-T
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
In Unix, I am not entirely certain. I would look at it anyway.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Got it working
Okay, thanks a lot for the help. When I ran a php -m, i noticed that mysql was not compiled into the php install. This is what was causing the problem. To fix, you will need to recompile php with mysql (--with- mysql). In my case, using debian, i had to remove the php-mysql package and reinstall it. Thanks again for the help and I hope that this can help others get this working.
Who is online
Users browsing this forum: No registered users and 3 guests