Poller setting not respected

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
geno
Posts: 11
Joined: Tue Jan 04, 2011 5:52 pm

Poller setting not respected

Post by geno »

Hello,

I have been using Cacti for a few weeks (excellent tool!), but have only recently dived into creating my own templates.
I'm running Cacti 0.8.7g with SPINE 0.8.7g.

My main problem was that I wanted graphs with 15 - 20 second intervals.
I have setup my cron for 1 minute which runs without a problem. And I have selected 20 seconds for the poller interval.
However when using cmd.php the poller never ran 3 times (even though it says it will during debug).
After hours of searching the forums, i found no solution (since it's supposed to work without custom cron & script), so I decided to try spine.
I was amazed that it instantly began running 3 times every minute. However, now, I have the exact same problem as before with cmd.php; it runs only once every minute. I have tried setting the cron back to 5minutes to no avail (it only runs every 5 minutes then). I went to the rebuild poller cache page every time I changed a setting.

Does anyone have an idea why this might happen?

It starts like this:
01/04/2011 11:49:01 PM - POLLER: Poller[0] NOTE: Poller Int: '20', Cron Int: '60', Time Since Last: '60', Max Runtime '58', Poller Runs: '3'
01/04/2011 11:49:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/share/cacti/spine/spine, ARGS: 0 2]
01/04/2011 11:49:01 PM - SPINE: Poller[0] DEBUG: The path_php variable is /usr/bin/php
And ends with:
01/04/2011 11:49:03 PM - SYSTEM STATS: Time:1.9107 Method:spine Processes:25 Threads:40 Hosts:10 HostsPerProcess:1 DataSources:77 RRDsProcessed:40
01/04/2011 11:50:01 PM - POLLER: Poller[0] NOTE: Poller Int: '20', Cron Int: '60', Time Since Last: '60', Max Runtime '58', Poller Runs: '3'

Example:
01/05/2011 12:00:03 AM - SYSTEM STATS: Time:1.8953 Method:spine Processes:25 Threads:40 Hosts:10 HostsPerProcess:1 DataSources:77 RRDsProcessed:40
01/04/2011 11:59:03 PM - SYSTEM STATS: Time:1.9104 Method:spine Processes:25 Threads:40 Hosts:10 HostsPerProcess:1 DataSources:77 RRDsProcessed:40
01/04/2011 11:57:02 PM - SYSTEM STATS: Time:0.8786 Method:spine Processes:25 Threads:40 Hosts:10 HostsPerProcess:1 DataSources:77 RRDsProcessed:40
01/04/2011 11:56:02 PM - SYSTEM STATS: Time:0.9002 Method:spine Processes:25 Threads:40 Hosts:10 HostsPerProcess:1 DataSources:77 RRDsProcessed:40
01/04/2011 11:55:03 PM - SYSTEM STATS: Time:1.9142 Method:spine Processes:25 Threads:40 Hosts:10 HostsPerProcess:1 DataSources:77 RRDsProcessed:40
01/04/2011 11:54:04 PM - SYSTEM STATS: Time:2.0115 Method:spine Processes:25 Threads:40 Hosts:10 HostsPerProcess:1 DataSources:77 RRDsProcessed:40

Thanks in advance,

Gen
geno
Posts: 11
Joined: Tue Jan 04, 2011 5:52 pm

Re: Poller setting not respected

Post by geno »

No ideas?
I hope I don't need to reinstall.

Kind regards,
Gen
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Poller setting not respected

Post by gandalf »

There's no need to reinstall. But sub minute polling is a seldom used "feature". There have been posts ...
R.
geno
Posts: 11
Joined: Tue Jan 04, 2011 5:52 pm

Re: Poller setting not respected

Post by geno »

I believe I've read up on most of the topics I could find most of them about RRA's and datasources.
I've tried using a script with a timer (I think this might have worked pre 0.8.7), but this no longer works giving me an informational error stating that it is too early to run the poller. The comments (I think TheWitness) stated this "feature" was integrated in 0.8.7, but it doesn't seem to work for me.
If you are stating there have been posts with the same problem, I'm sorry but I can't seem to find them.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Poller setting not respected

Post by gandalf »

geno wrote:If you are stating there have been posts with the same problem, I'm sorry but I can't seem to find them.
Personally, I won't say yes and I won't say no. As the current solution is ugly in my eyes, I made up my mind not to support that, ähem, crap; sorry. I decided to support it well or don't support it at all. I chose the second.
R.
geno
Posts: 11
Joined: Tue Jan 04, 2011 5:52 pm

Re: Poller setting not respected

Post by geno »

gandalf wrote:Personally, I won't say yes and I won't say no. As the current solution is ugly in my eyes, I made up my mind not to support that, ähem, crap; sorry. I decided to support it well or don't support it at all. I chose the second.
R.
I can respect your choice.
I suppose you won't change your mind any time soon and that I can call this a bug, that won't be solved or supported.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Poller setting not respected

Post by gandalf »

Oh, I'm not the only one on the team ...
R.
skatter
Cacti User
Posts: 153
Joined: Fri Oct 22, 2004 2:55 am
Contact:

Re: Poller setting not respected

Post by skatter »

I am seeing a similar problem, although my cron interval is 5 minutes and my poller is 1 minute.

The poller starts up, indicating that it will run 5 times:

Code: Select all

08/23/2011 01:20:00 PM - POLLER: Poller[0] NOTE: Poller Int: '60', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '5'
08/23/2011 01:20:00 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is spine
08/23/2011 01:20:00 PM - SPINE: Poller[0] NOTE: Spine did not detect multithreaded device polling.
08/23/2011 01:20:00 PM - SPINE: Poller[0] NOTE: Spine is behaving in a 0.8.7g manner
Unfortunately the result is that the poller runs every 5 minutes, at the cron interval. This happened out of the blue, after the 1 minute poller had been working for weeks.

Did you ever resolve this problem?
skatter
geno
Posts: 11
Joined: Tue Jan 04, 2011 5:52 pm

Re: Poller setting not respected

Post by geno »

skatter wrote:I am seeing a similar problem, although my cron interval is 5 minutes and my poller is 1 minute.

The poller starts up, indicating that it will run 5 times:

Code: Select all

08/23/2011 01:20:00 PM - POLLER: Poller[0] NOTE: Poller Int: '60', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '5'
08/23/2011 01:20:00 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is spine
08/23/2011 01:20:00 PM - SPINE: Poller[0] NOTE: Spine did not detect multithreaded device polling.
08/23/2011 01:20:00 PM - SPINE: Poller[0] NOTE: Spine is behaving in a 0.8.7g manner
Unfortunately the result is that the poller runs every 5 minutes, at the cron interval. This happened out of the blue, after the 1 minute poller had been working for weeks.

Did you ever resolve this problem?
Old post, just got back to the forum, sorry to unbury it.
And Nope,
I set up a new machine, where it worked every 20s again. However after some time it broke, and just ran every 1 minute.
But like Gandalf said, they will not support it.
I believe it has to do with the cron interval not handling below 1 minute jobs out of the box.
However I think it would work if you call the poller from a script that does run multiple times in 1 minute. (I guess this is what Gandalf is calling ugly)

Regards,
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests