very brief question: cactid conf file

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

Moderators: Developers, Moderators

Post Reply
User avatar
mrh
Cacti User
Posts: 84
Joined: Tue Mar 08, 2005 9:50 am

very brief question: cactid conf file

Post by mrh »

Hi all,
please, I would need to know if I can user the root user and password for cactid. I'm actually using them for cacti but I cannot get cactid working. If I run cactid.exe it says:

CACTID: MYSQL: Connection failed after 10 attempts : Host 'myhostname' is not al
lowed to connect to this MySQL server

I've put the IP address instead of localhost, as the instructions says.

Any comments would be very appreciated!
mrh
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

mrh,

What version of Cactid and MySQL are you using? For MySQL 4.1.x use Cactid 0.8.6c. If you are using MySQL 4.0.x, you can use either.

Then, you specify the IP address of the host and not "localhost". Then, review the installation documentation and make sure you add permissions using the following, or close to it, command "grant all on cacti.* for root@a.b.c.d identified by 'somepassword';"

Then, you can test on the command line by simply running cactid to verify your changes are working. You don't have to wait on the poller.

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?
User avatar
mrh
Cacti User
Posts: 84
Joined: Tue Mar 08, 2005 9:50 am

Post by mrh »

Hi Witness, this is what I obtain from doing that:
-----
mysql> GRANT ALL ON cacti.* TO root@localhost IDENTIFIED BY 'somepassword';
Query OK, 0 rows affected (0.16 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.18 sec)

mysql> quit
Bye

C:\mysql\bin>cd\cactid

C:\cactid>cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: MYSQL: Connection failed after 10 attempts : Host 'esmdrsrv03' is not allowed to connect to this MySQL server
-----
I'm using MySQL 4.0 and cactid 086d, I've another cacti in other PC running MySQL 4.1 and cactid 086c and I've different error mssg:
-----
D:\cactid>cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: MYSQL: Connection failed after 10 attempts : Client does not support authentication protocol requested by server; consider upgrading MySQL client
-----
Thanks for all,
mrh
User avatar
mrh
Cacti User
Posts: 84
Joined: Tue Mar 08, 2005 9:50 am

Post by mrh »

I forgot attach my cactid.conf file:
-----
DB_Host a.b.c.d
DB_Database cacti
DB_User root
DB_Pass cacti
-----
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You should enter the following:
mysql> GRANT ALL ON cacti.* TO root@esmdrsrv03 IDENTIFIED BY 'somepassword';
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest