poller & max.time of run cmd.php (or cactid)

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
Ev
Cacti User
Posts: 104
Joined: Tue Jan 25, 2005 12:16 pm

poller & max.time of run cmd.php (or cactid)

Post by Ev »

is your 0.8.6.c max/time of run = 296 sec. But interval may be <>300 sec. Can you make max.time of poller execution configurable ?
williem
Cacti User
Posts: 69
Joined: Tue Feb 08, 2005 10:36 am

timout

Post by williem »

Ev,

Remember that you have to set your PHP timeout in the php.ini file or it doesnt make much difference what you have the program set for. When I was first starting with cacti, I had the defaults from php.ini as it came which was 30 secs. When I started adding hosts, I scratched my head thinking, "why isnt this working, I am not close to 296 secs". then I found the timeout in php.ini and my problems went away. I set it up the same as cacti and all is well. but, if you change the timeout in php.ini, you have to restart your web server to make the change take.

Regards,

Willie
User avatar
solefald
Posts: 38
Joined: Fri Jun 11, 2004 1:35 pm

Post by solefald »

are you talking about

default_socket_timeout=60

from php.ini ?
you changed that to 296 and cactid is working now ?
Ev
Cacti User
Posts: 104
Joined: Tue Jan 25, 2005 12:16 pm

Post by Ev »

Cactid working with 60 sec timeout , but it hang sometimes
Now I set 120 sec PHP timeout.
williem
Cacti User
Posts: 69
Joined: Tue Feb 08, 2005 10:36 am

timeout

Post by williem »

Hey,

Here is the timeout section of php.ini

Regards,

Willie

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 295 ; Maximum execution time of each script, in seconds
max_input_time = 295 ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
Ev
Cacti User
Posts: 104
Joined: Tue Jan 25, 2005 12:16 pm

Post by Ev »

Thank you.
I now solved problem with many hang processes - with cron+pkill 8-)

isn't solved problem with loss of data (5 min interval), when cactid is hang -
topic - http://forums.cacti.net/viewtopic.php?p=25089
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests