Poller script 5 minutes running time

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
denisnikulin
Posts: 3
Joined: Wed Aug 28, 2013 5:50 am

Poller script 5 minutes running time

Post by denisnikulin »

Hi,

We have more than 5000 devices in our network and it takes the poller ~5mins 20 seconds to finish all jobs.

The maximum timeout of 298 seconds is hardcoded in the PHP script so we increased it manually by setting the max_execution_time to a fixed number to ensure that the poller finished polling all the devices.

We're thinking of submitting a bug report with a patch to implement a larger interval. But could anyone explain why 5 minutes was chosen as the largest interval? And whether there's anything else we should be looking at to improve our poller's performance?

Thanks,
Den
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: Poller script 5 minutes running time

Post by Linegod »

The poller runs every 5 minutes. If it runs for longer than 5 minutes, you can running into insert overlaps and end up missing data.

Switch to spine instead of cmd.php
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
denisnikulin
Posts: 3
Joined: Wed Aug 28, 2013 5:50 am

Re: Poller script 5 minutes running time

Post by denisnikulin »

Thanks for your reply. We are already using the latest version of spine.
jftuga
Posts: 49
Joined: Mon Feb 07, 2011 11:50 am
Location: Athens, GA

Re: Poller script 5 minutes running time

Post by jftuga »

Have you tried the boost plugin?

Under settings -> poller -> Spine Specific Execution Parameters you can change the # of threads.
killlereye
Posts: 1
Joined: Mon Feb 09, 2015 6:39 am

Re: Poller script 5 minutes running time

Post by killlereye »

If it runs for longer than 5 minutes, you can running into insert overlaps and end up missing data.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests