problem after migration to cacti0.8.6.c with cactid.0.8.6.d
Moderators: Developers, Moderators
-
- Posts: 15
- Joined: Fri Apr 08, 2005 6:56 am
- Contact:
problem after migration to cacti0.8.6.c with cactid.0.8.6.d
Hello
I have a redhat 9 on PC with Cacti0.8.6c with with cactid.0.8.6.d.
SInce the migration, cacti does not graph anymore.
I put in the root crontab the following command:
With root: crontab -e
15,30,45,00 * * * * su - cactiuser -c "/usr/bin/php /pkg/cacti/poller.php" > /dev/null 2>&1
In my cacti/log file I have a lot of things browsed and in my rra directory all my files have the new date and hour from the load of cactid.
Thanks do your help
I have a redhat 9 on PC with Cacti0.8.6c with with cactid.0.8.6.d.
SInce the migration, cacti does not graph anymore.
I put in the root crontab the following command:
With root: crontab -e
15,30,45,00 * * * * su - cactiuser -c "/usr/bin/php /pkg/cacti/poller.php" > /dev/null 2>&1
In my cacti/log file I have a lot of things browsed and in my rra directory all my files have the new date and hour from the load of cactid.
Thanks do your help
Pierre GUERRINI
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Why don't you run it from the users cron?
Entry like:
And do you really want to run it every 15 minutes?
The reason I suggest the above, its that there could be some inherent enviroment issues with using su and paths.
Code: Select all
crontab -e -u cactiuser
Code: Select all
*/15 * * * * /usr/bin/php /pkg/cacti/poller.php > /dev/null 2>&1
The reason I suggest the above, its that there could be some inherent enviroment issues with using su and paths.
[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]
-
- Posts: 15
- Joined: Fri Apr 08, 2005 6:56 am
- Contact:
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Can you run the poller once from the command line and send me the output?
[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]
-
- Posts: 15
- Joined: Fri Apr 08, 2005 6:56 am
- Contact:
-
- Posts: 15
- Joined: Fri Apr 08, 2005 6:56 am
- Contact:
Hello
I have in my root crontab :
15,35,48,00 * * * * su - cactiuser -c "/usr/bin/php /pkg/cacti/poller.php" > /dev/null 2>&1
All the cacti directory is the cactuiser owner.
see the log in attachement
Redhat 9
[root@ggeuxp37 log]# rpm -qa | grep mysql
mysql-3.23.54a-11
php-mysql-4.2.2-17
mysql-server-3.23.54a-11
mysql-devel-3.23.54a-11
[root@ggeuxp37 log]# rpm -qa | grep php
php-4.2.2-17
php-ldap-4.2.2-17
php-mysql-4.2.2-17
php-imap-4.2.2-17
php-snmp-4.2.2-17
drwxr-xr-x 14 root root 4096 sep 14 2004 rrdtool-1.0.49
Thanks for your help
I have in my root crontab :
15,35,48,00 * * * * su - cactiuser -c "/usr/bin/php /pkg/cacti/poller.php" > /dev/null 2>&1
All the cacti directory is the cactuiser owner.
see the log in attachement
Redhat 9
[root@ggeuxp37 log]# rpm -qa | grep mysql
mysql-3.23.54a-11
php-mysql-4.2.2-17
mysql-server-3.23.54a-11
mysql-devel-3.23.54a-11
[root@ggeuxp37 log]# rpm -qa | grep php
php-4.2.2-17
php-ldap-4.2.2-17
php-mysql-4.2.2-17
php-imap-4.2.2-17
php-snmp-4.2.2-17
drwxr-xr-x 14 root root 4096 sep 14 2004 rrdtool-1.0.49
Thanks for your help
- Attachments
-
- cacti.log.1.gz
- (30.4 KiB) Downloaded 94 times
Pierre GUERRINI
-
- Posts: 15
- Joined: Fri Apr 08, 2005 6:56 am
- Contact:
- TheWitness
- Developer
- Posts: 17051
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Run cactid from a command line in debug mode and post output. If you are running mysql 4.1, it is likely a client build issue. You should give the code on the Announcement forum a try if that is the case.
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: 15
- Joined: Fri Apr 08, 2005 6:56 am
- Contact:
Hello
Sorry my cactid is the 0.8.6e but with the 0.8.6d I have the same pb.
The log of the command cactid is in attachement.
Mysql is :
[root@ggeuxp37 bin]# rpm -qa | grep mysql
mysql-3.23.54a-11
php-mysql-4.2.2-17
mysql-server-3.23.54a-11
mysql-devel-3.23.54a-11
thanks
Sorry my cactid is the 0.8.6e but with the 0.8.6d I have the same pb.
The log of the command cactid is in attachement.
Mysql is :
[root@ggeuxp37 bin]# rpm -qa | grep mysql
mysql-3.23.54a-11
php-mysql-4.2.2-17
mysql-server-3.23.54a-11
mysql-devel-3.23.54a-11
thanks
- Attachments
-
- FILECACTID-cactid8.6e.zip
- (16.98 KiB) Downloaded 128 times
Last edited by p_guerrini on Tue Apr 12, 2005 4:21 am, edited 1 time in total.
Pierre GUERRINI
- TheWitness
- Developer
- Posts: 17051
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
What attachment?
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: 17051
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Dah, slet that comment. Ok, your problem is too many scripts. Cactid is finishing, but not until after 390 seconds. I need to convert the query_host_partitions to the script server. That will cut 50% off your polling time.
Until then, try to use 2-4 processes to reduce the overall polling cycle.
TheWitness
Until then, try to use 2-4 processes to reduce the overall polling cycle.
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?
- TheWitness
- Developer
- Posts: 17051
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Double slet You are using the query host partitions, you need to migrate to the script server. Closely follow the procedure in the attached link and you will see your polling time decrease significantly.
TheWitness
http://www.cacti.net/downloads/docs/htm ... eries.html
TheWitness
http://www.cacti.net/downloads/docs/htm ... eries.html
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: 15
- Joined: Fri Apr 08, 2005 6:56 am
- Contact:
- TheWitness
- Developer
- Posts: 17051
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Please dump database again and forward via e-mail.
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: 15
- Joined: Fri Apr 08, 2005 6:56 am
- Contact:
Hello
Sorry for the delay because I was in holidays
See the attachment for the db dump
(mysqldump -l --add-drop-table cacti > mysql.cacti)
Thanks
Sorry for the delay because I was in holidays
See the attachment for the db dump
(mysqldump -l --add-drop-table cacti > mysql.cacti)
Thanks
- Attachments
-
- mysql.cacti.zip
- (176.46 KiB) Downloaded 130 times
Pierre GUERRINI
Who is online
Users browsing this forum: No registered users and 2 guests