Cacti on RHEL3?
Moderators: Developers, Moderators
Cacti on RHEL3?
I'm running RHEL 3 WS Update 4. When I install the fedora core 3 version,
I get the following errors :
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Fatal error: Call to undefined function: cacti_log() in /var/www/html/cacti/lib/database.php on line 51
Any idea what's going on?
I get the following errors :
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Fatal error: Call to undefined function: cacti_log() in /var/www/html/cacti/lib/database.php on line 51
Any idea what's going on?
-------------------
BitPusher, LLC
http://www.bitpusher.com/
1.888.9PUSHER
BitPusher, LLC
http://www.bitpusher.com/
1.888.9PUSHER
Re: Cacti on RHEL3?
After following the patch, and making my config.php look like this :bitpusher wrote:I'm running RHEL 3 WS Update 4. When I install the fedora core 3 version,
I get the following errors :
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Fatal error: Call to undefined function: cacti_log() in /var/www/html/cacti/lib/database.php on line 51
Any idea what's going on?
nclude($config["library_path"] . "/adodb/adodb.inc.php");
include_once($config["library_path"] . "/functions.php");
include($config["library_path"] . "/database.php");
db_connect_real($database_hostname, $database_username, $database_password, $database_default, $
database_type);
I'm still getting the following errors :
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Notice: Use of undefined constant POLLER_VERBOSITY_NONE - assumed 'POLLER_VERBOSITY_NONE' in /var/www/html/cacti/lib/functions.php on line 327
Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
I am using the correct mysql databasename, username, and password.
-------------------
BitPusher, LLC
http://www.bitpusher.com/
1.888.9PUSHER
BitPusher, LLC
http://www.bitpusher.com/
1.888.9PUSHER
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
What version of MySQL. If version 4.1.x, did you specify the old passwords hack? The other issue is just a screwed up patch and is not a problem (for now anyway). We need to move "inclue\config_constants.php" before "lib\functions.php".
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 4.0.22TheWitness wrote:What version of MySQL. If version 4.1.x, did you specify the old passwords hack? The other issue is just a screwed up patch and is not a problem (for now anyway). We need to move "inclue\config_constants.php" before "lib\functions.php".
TheWitness
-------------------
BitPusher, LLC
http://www.bitpusher.com/
1.888.9PUSHER
BitPusher, LLC
http://www.bitpusher.com/
1.888.9PUSHER
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Try this config.php.dist.
TheWitness
TheWitness
- Attachments
-
- config.php.zip
- (1.89 KiB) Downloaded 383 times
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Put functions ahead of everything else and try again.
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?
The joys of php in RHELTheWitness wrote:Put functions ahead of everything else and try again.
TheWitness
Now I get this error :
Fatal error: Call to undefined function: db_connect() in /var/www/html/cacti/lib/database.php on line 110
-------------------
BitPusher, LLC
http://www.bitpusher.com/
1.888.9PUSHER
BitPusher, LLC
http://www.bitpusher.com/
1.888.9PUSHER
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Try this.
TheWitness
TheWitness
- Attachments
-
- config.php.zip
- (1.89 KiB) Downloaded 275 times
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?
Still the same error message :TheWitness wrote:Try this.
TheWitness
Fatal error: Call to undefined function: db_connect() in /var/www/html/cacti/lib/database.php on line 110
what library does db_connect com from? php-mysql's mysql.so?
-------------------
BitPusher, LLC
http://www.bitpusher.com/
1.888.9PUSHER
BitPusher, LLC
http://www.bitpusher.com/
1.888.9PUSHER
Help?
Has anybody actually gotten cacti to work properly on RHEL? It seems that RedHat went out of their way to break php (removing php-snmp, etc).
-------------------
BitPusher, LLC
http://www.bitpusher.com/
1.888.9PUSHER
BitPusher, LLC
http://www.bitpusher.com/
1.888.9PUSHER
-
- Posts: 2
- Joined: Thu Mar 17, 2005 3:47 pm
RHEL 3
I got Cacti to run on RHEL3, but am having rrd graphing problems, errors when creating new graph trees & no hosts being shown in the devices view. poller.php also states that "there are no items in the cache or polling is disabled" I have polling enabled, I'm not sure what I need to do to get "items in the cache"
any ideas???
thanks
Brett
any ideas???
thanks
Brett
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
dieselpower,
go to "System Utilities-> Clear Poller Cache".
This will populate your poller_item table in the mysql-db.
You may have a look at this using
<cactiuser> ist the cacti database userid in <path_cacti>/include/config.php
<cactipw> is the cacti database user pw
hth
go to "System Utilities-> Clear Poller Cache".
This will populate your poller_item table in the mysql-db.
You may have a look at this using
Code: Select all
mysql --user=<cactiuser> --password=<cactipw>
> use cacti
> select count(*) from poller_item;
(Now you will see the output of the command)
(use following command to clear the poller cache if problem persists)
> delete from poller_item;
>quit
<cactipw> is the cacti database user pw
hth
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Did you resently update your server?
If so, what RPM updates did you apply?
If so, what RPM updates did you apply?
[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]
[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]
Who is online
Users browsing this forum: No registered users and 2 guests