cactid hangning when run from cron [SOLVED]

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Devil
Posts: 21
Joined: Sun Oct 03, 2004 2:14 am
Contact:

cactid hangning when run from cron [SOLVED]

Post by Devil »

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.
Last edited by Devil on Mon Feb 28, 2005 7:39 am, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Back off to Cactid 0.8.6b and let me know if the problem persists.

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?
Devil
Posts: 21
Joined: Sun Oct 03, 2004 2:14 am
Contact:

Post by Devil »

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.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Devil,

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?
Devil
Posts: 21
Joined: Sun Oct 03, 2004 2:14 am
Contact:

Post by Devil »

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.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
Devil
Posts: 21
Joined: Sun Oct 03, 2004 2:14 am
Contact:

Post by Devil »

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
Will do when i have a few minutes to spare.
marquisthib
Posts: 3
Joined: Fri Mar 18, 2005 11:37 am

Same problem but not the same resolution

Post by marquisthib »

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
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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 13 guests