Cactid Woes

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Cactid Woes

Post by jengstro »

After following what I thought was the simple configuration instructions provided by BSOD2600... I cannot get cactid to auth to MySQL...

I tried by IP... hostname... added another user with full rights to the cacti DB... used the root user... none of which worked.

Any ideas?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Did you apply the old password trick, as outlined in step #6 under MySQL in my guide?
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Yeah... would cacti work if I had not ran through that step?
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Depends on versions. If it was compiled using an older API on a newer database then it's nogo. Please state more about your environment and what version of Cactid you are running and where you got it from.

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?
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Not sure what else you need? Here is the version information on the two apps involved...

Catid - 0.8.6f (Downloaded from http://www.cacti.net/downloads/cactid/p ... 8.6f-1.zip)
MySQL - 4.1.15

Please let me know if you need more and thanks for the help.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That version works perfectly fine with MySQL 4.1.x. The "old password's" trick should do the trick for you. Please follow BSOD's instructions.

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?
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Just to make sure... I applied the OLD_PASSWORD change again but cactid still is unable to connect to the server...
c:\cactid\cactid

c:\cactid\cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: MYSQL: Connection Failed: Can't connect to local MySQL server socket '/tmp/mysql.sock' (2)
Any other ideas?

Cacti itself is able to access the database no problem (using the same mysql account)...
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes, in your cactid.conf file, please change "localhost" to "127.0.0.1".

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?
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Now I have this message...
c:\cactid\cactid

c:\cactid\cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: MYSQL: Connection Failed: Access denied for user 'cactiuser'@'localhost' (using password: YES)
I know that user data works... because it is what Cacti is sucessfully using at the moment...
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is definately the "old password" issue. Look very carefully at BSOD's install guide. The "GRANT ALL..." is very important. Remember to enclose the user_id and password in single quotes. Then, from MySQL Administrator, make sure you have old password support enabled.

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?
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Could this have been a PATH issue? It appears that I did not have php in the system PATH...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Not likely since mysql is explicitly denying cactid from connecting. Double check you properly did step 5 & 6 in the MySQL section in my guide.
Could also look in MySQL Administrator at your cactiuser to make sure it's properly set up right (and post a screenshot).
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Once I removed mysql/php and re-installed the login error went away. I did notice something odd after using the GRANT statement. Even though it said it ran the change with success... the GRANT option was not flagged. So I installed phpmyadmin and made the change with it to see if it was a typo or something.

Either way I was just wondering where my mistake was.

Thanks for the help btw.
[size=75]Cacti - 0.8.6h + patches
PHP - 5.1.2
ZendOptimizer - 2.6.2
FastCGI - 0.6
MySQL - 4.1.15
Cactid - 0.8.6g
rrdtool - 1.2.x
IIS6[/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests