Problem by switching from CMD.php to CACTID
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Thu Jan 20, 2005 3:20 am
Problem by switching from CMD.php to CACTID
Using cmd.php as poller-task is working fine, if I try to switch over to use cactid (because I have to poll 100+ hosts with a lot of interfaces) cactid is not return any values.
Starting cactid from the command line causes the following Error Message:
CACTID: MYSQL: Connection failed after 10 attemts : Access denied for user 'cactiuser@MY_HOSTNAME' (Using password: YES)
The Cacti-Log-File is showing the following Error:
01/20/2005 07:36:57 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
I checked the cactid.conf:
DB_HOST 10.0.0.100
DB_DATABASE cacti
DB_USER cactiuser
DB_PASS MY_PASSWORD
I checked the PATH-setting to cactid:
c:\cactid\cactid.exe
I created following users für accessing the cacti-db:
cactiuser@localhost
cactiuser@MY_HOSTNAME
cactiuser@10.0.0.100
cactiuser@'%'
None of these steps was abele to get cactid as poller working.
Do you have any suggestions?
Markus
PS: Using PHP 5.0.3, Apache 2.0.52, rrdtool 1.0.48, mysql 4.0.23, netsnmp 5.2.1, cactid 0.8.6d, cacti 0.8.6c
Starting cactid from the command line causes the following Error Message:
CACTID: MYSQL: Connection failed after 10 attemts : Access denied for user 'cactiuser@MY_HOSTNAME' (Using password: YES)
The Cacti-Log-File is showing the following Error:
01/20/2005 07:36:57 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
I checked the cactid.conf:
DB_HOST 10.0.0.100
DB_DATABASE cacti
DB_USER cactiuser
DB_PASS MY_PASSWORD
I checked the PATH-setting to cactid:
c:\cactid\cactid.exe
I created following users für accessing the cacti-db:
cactiuser@localhost
cactiuser@MY_HOSTNAME
cactiuser@10.0.0.100
cactiuser@'%'
None of these steps was abele to get cactid as poller working.
Do you have any suggestions?
Markus
PS: Using PHP 5.0.3, Apache 2.0.52, rrdtool 1.0.48, mysql 4.0.23, netsnmp 5.2.1, cactid 0.8.6d, cacti 0.8.6c
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Markus,
I had the same problem. You need to follow the procedure for each of those users per the manual. I think the command went something like the following:
"GRANT ALL ..."
Once I did this all went well. For some reason, just simply adding the ID's in both MySQL Admin and MySQL CC did not work.
TheWitness
I had the same problem. You need to follow the procedure for each of those users per the manual. I think the command went something like the following:
"GRANT ALL ..."
Once I did this all went well. For some reason, just simply adding the ID's in both MySQL Admin and MySQL CC did not work.
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?
-
- Posts: 4
- Joined: Thu Jan 20, 2005 3:20 am
Hmmm, that was exactly what I did....
I created the Users by using the following commands:
mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'my_password';
mysql> flush privileges;
mysql> GRANT ALL ON cacti.* TO cactiuser@10.0.0.100 IDENTIFIED BY 'my_password';
mysql> flush privileges;
mysql> GRANT ALL ON cacti.* TO cactiuser@MY_HOSTNAME IDENTIFIED BY 'my_password';
mysql> flush privileges;
mysql> GRANT ALL ON cacti.* TO cactiuser@'%' IDENTIFIED BY 'my_password';
mysql> flush privileges;
I rebootet the workstation as well.
But these actions did not resolve the Problem....
Markus
I created the Users by using the following commands:
mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'my_password';
mysql> flush privileges;
mysql> GRANT ALL ON cacti.* TO cactiuser@10.0.0.100 IDENTIFIED BY 'my_password';
mysql> flush privileges;
mysql> GRANT ALL ON cacti.* TO cactiuser@MY_HOSTNAME IDENTIFIED BY 'my_password';
mysql> flush privileges;
mysql> GRANT ALL ON cacti.* TO cactiuser@'%' IDENTIFIED BY 'my_password';
mysql> flush privileges;
I rebootet the workstation as well.
But these actions did not resolve the Problem....
Markus
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
What version of Mysql are you running?
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?
-
- Posts: 4
- Joined: Thu Jan 20, 2005 3:20 am
-
- Posts: 4
- Joined: Thu Jan 20, 2005 3:20 am
problem solved
thanks for the replys.
I deleted and recreated the cactiuser in the sql-server-db and "juhu" - cactid was working....
now I am monitoring 59 devices with over 290 graphs...still configuring ;-)
Markus
I deleted and recreated the cactiuser in the sql-server-db and "juhu" - cactid was working....
now I am monitoring 59 devices with over 290 graphs...still configuring ;-)
Markus
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Awesome
[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 1 guest