Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


RELEASED: < 1 Minute to 5 Minute Polling Interval Patch
Goto page 1, 2, 3 ... 9, 10, 11  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Announcements
Author Message
TheWitness
Developer


Joined: 14 May 2002
Posts: 9691
Location: MI, USA

PostPosted: Wed Oct 04, 2006 5:46 pm    Post subject: RELEASED: < 1 Minute to 5 Minute Polling Interval Patch Reply with quote

All,

I held off for quite a while and finally decided, with the approval of the broader Cacti Group, to release this patch. I hope you all enjoy it.

I will also be releasing some additional interesting patches in the months to come. Again, enjoy.

Regards,

TheWitness



PollingIntervalsPatchv8.zip
 Description:
Cacti 0.8.6j w/o Plugin Architecture

Download
 Filename:  PollingIntervalsPatchv8.zip
 Filesize:  24.58 KB
 Downloaded:  1163 Time(s)


PollingIntervalsPatchv8-pia1.1.zip
 Description:
Cacti 0.8.6j w/Plugin Architecture 1.1

Download
 Filename:  PollingIntervalsPatchv8-pia1.1.zip
 Filesize:  24.65 KB
 Downloaded:  1194 Time(s)


Cacti_Polling_Intervals.pdf
 Description:
Documentation/Usage Tips

Download
 Filename:  Cacti_Polling_Intervals.pdf
 Filesize:  708.59 KB
 Downloaded:  4592 Time(s)



Last edited by TheWitness on Mon Feb 19, 2007 10:58 am; edited 3 times in total
Back to top
mahuani
Cacti User


Joined: 01 Nov 2005
Posts: 66
Location: New Orleans, LA

PostPosted: Wed Oct 04, 2006 6:50 pm    Post subject: Reply with quote

This is what I came up with to poll every 30 seconds
Code:

*/1 * * * * cactiuser /usr/bin/php /www/cacti.mahuani.net/htdocs/poller.php > /dev/null 2>&1
*/1 * * * * cactiuser /bin/sleep 30; /usr/bin/php /www/cacti.mahuani.net/htdocs/poller.php > /dev/null 2>&1


It's not pretty, but it seems to work


Last edited by mahuani on Wed Jan 31, 2007 5:43 pm; edited 1 time in total
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5453
Location: Wisconsin, USA

PostPosted: Wed Oct 04, 2006 7:10 pm    Post subject: Reply with quote

mahuani wrote:
This is what I came up with to poll every 30 seconds
Code:

*/1 * * * * cactiuser /usr/bin/php /www/cacti.mahuani.net/htdocs/poller.php > /dev/null 2>&1
*/1 * * * * cactiuser /bin/sleep 30; /usr/bin/php /www/cacti.mahuani.net/htdocs/poller.php > /dev/null 2>&1


It's not pretty, but it seems to work


Lol, that does work... Not a bad idea...

You could also just call a script that does the same..
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9691
Location: MI, USA

PostPosted: Wed Oct 04, 2006 9:12 pm    Post subject: Reply with quote

I remember JP talking about this at Linuxworld. He indicated, with the "new" cron syntax, that you could poll every second. However, I have not been able to find that syntax.

Larry
Back to top
Linegod
Developer


Joined: 20 Feb 2003
Posts: 517
Location: Canada

PostPosted: Wed Oct 04, 2006 10:01 pm    Post subject: Reply with quote

You need to use mcron instead of vixie-cron: http://www.gnu.org/software/mcron/
Back to top
Alice
Cacti User


Joined: 28 Oct 2003
Posts: 88
Location: Bucharest, RO.

PostPosted: Thu Oct 05, 2006 7:55 am    Post subject: Reply with quote

Quote:
I will release sometime before next Monday

You promise? I'm in process of re-installing my cacti server. Should I wait for 0.8.6i with the patch or not?
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9691
Location: MI, USA

PostPosted: Thu Oct 05, 2006 6:50 pm    Post subject: Reply with quote

Ian should have it out by tomorrow night. After that, I will be releasing. Probably on Sunday.

TheWitness
Back to top
rock_manlove



Joined: 02 Oct 2006
Posts: 44
Location: NJ, USA

PostPosted: Thu Oct 12, 2006 9:57 am    Post subject: Reply with quote

From where I can download this patch?

Thanks
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Thu Oct 12, 2006 9:58 am    Post subject: Reply with quote

TheWitness wrote:
Probably on Sunday.

Wait a few days
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9691
Location: MI, USA

PostPosted: Thu Oct 12, 2006 7:24 pm    Post subject: Reply with quote

Bump for all watching
Back to top
romput



Joined: 13 Oct 2006
Posts: 4

PostPosted: Fri Oct 13, 2006 2:02 am    Post subject: Graph Tree Reply with quote

Problem,

the first Graph i see in my Graph Tree is not the 1 Minute Average Graph. It is always the 5 Minute.
If if go in Zoom all 5 Graphs are build.

How could I change this?

Thanks
Romput
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Fri Oct 13, 2006 2:09 am    Post subject: Reply with quote

Hi

have you tried to change in your settings (the tab on the right) the default RRA ?
Back to top
romput



Joined: 13 Oct 2006
Posts: 4

PostPosted: Fri Oct 13, 2006 3:18 am    Post subject: Reply with quote

So,

i found the option and change it to 1 Minute Graph. But it doesn't solve the problem. Should i delete and recreate the graph?
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9691
Location: MI, USA

PostPosted: Fri Oct 13, 2006 5:22 am    Post subject: Reply with quote

Please "READ" the documentation. If you don't understand it, please post in General!!!

TheWitness
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 946
Location: B/CS Texas

PostPosted: Fri Oct 13, 2006 11:22 pm    Post subject: 1 Minute Polling "Patch" Reply with quote

The topic spoke of a "patch" but all I could find were already patched files. So I have went ahead and created the patch in case anyone else wants it too.

It should apply clean against stock Cacti v0.8.6i. Interesting thing to note is that poller.php (not the lib one) is included in the above file, but the only modification was to strip the newline at the end of the file.

It be interesting to see how some of the plugins actually handle working with this... A few will out right break with a faster poller, but the others might do fine.



1MinutePolling.patch
 Description:
1 Minute Polling Patch

Download
 Filename:  1MinutePolling.patch
 Filesize:  11.33 KB
 Downloaded:  2020 Time(s)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Announcements All times are GMT - 5 Hours
Goto page 1, 2, 3 ... 9, 10, 11  Next
Page 1 of 11

 



Powered by phpBB © 2001, 2005 phpBB Group