cactid hangning when run from cron [SOLVED]
Moderators: Developers, Moderators
cactid hangning when run from cron [SOLVED]
I was forced to run cactid because i poll a little over a 100 hosts (and more i getting added when i can get cactid to work). and when i run poller from cron the cactid process hangs and returns a max execution time of 296 seconds exceeded.
When i run cactid from the prompt it works like a charm, it polls all the hosts and updates the rrd-files.
the system im running is a Debian Linux with php-4.3.10, mysql-4.1.10, cacti 0.8.6c and cactid 0.8.6d. I have reinstalled all the mentioned programs, not using debians packets.
When i run cactid from the prompt it works like a charm, it polls all the hosts and updates the rrd-files.
the system im running is a Debian Linux with php-4.3.10, mysql-4.1.10, cacti 0.8.6c and cactid 0.8.6d. I have reinstalled all the mentioned programs, not using debians packets.
Last edited by Devil on Mon Feb 28, 2005 7:39 am, edited 1 time in total.
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Back off to Cactid 0.8.6b and let me know if the problem persists.
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?
I have now tried with cactid versions:
- 0.8.6a i get segmentation fault
- 0.8.6b i get segmentation fault
- 0.8.6c if i run cactid directly it runs perfectly, if i run from poller.php it times out.
- 0.8.6d if i run cactid directly it runs perfectly, if i run from poller.php it times out.
- 0.8.6e i run cactid directly it runs perfectly, i run from poller.php it times out.
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Devil,
Please check your table poller_output and clear it if it has lot's of rows. From mysql:
truncate table poller_output;
TheWitness
Please check your table poller_output and clear it if it has lot's of rows. From mysql:
truncate table poller_output;
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?
I found the problem. the poller settings was very strange, in the "Maximum Processes" i had 10 and in "Maximum Threads per process" i had 100. when i chaged it to 5 and 5 cactid works again.
The really strange part is that i havent changed these numbers.
Thanks for the suggestions Witness and a really cool product.
The really strange part is that i havent changed these numbers.
Thanks for the suggestions Witness and a really cool product.
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
That will do it every time. You only have up to 100 concurrent MySQL connections out of the box and Cactid, would have taken just about all of them.
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?
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Hey Devil,
Please check out the post. This is a modified (re-releasable) version of Cactid 0.8.6e. Could you please test.
TheWitness
http://forums.cacti.net/viewtopic.php?p=26992#26992
Please check out the post. This is a modified (re-releasable) version of Cactid 0.8.6e. Could you please test.
TheWitness
http://forums.cacti.net/viewtopic.php?p=26992#26992
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?
Will do when i have a few minutes to spare.TheWitness wrote:Hey Devil,
Please check out the post. This is a modified (re-releasable) version of Cactid 0.8.6e. Could you please test.
TheWitness
http://forums.cacti.net/viewtopic.php?p=26992#26992
-
- Posts: 3
- Joined: Fri Mar 18, 2005 11:37 am
Same problem but not the same resolution
Hi,
I have the 296 timeout issue... but the parameter in the Thread and process are OK.
But it still not working...
Should I try the 0.8.6e version????
Help will be very appreciated!
Thanks
Marquis
I have the 296 timeout issue... but the parameter in the Thread and process are OK.
But it still not working...
Should I try the 0.8.6e version????
Help will be very appreciated!
Thanks
Marquis
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Please. Once built, run cactid from the command line a few times in DEBUG mode to see if it's running correctly. Then also check the number of records in poller_output table. If you have several thousand, truncate it.
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?
Who is online
Users browsing this forum: No registered users and 13 guests