Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Jun 26, 2017 8:52 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 170 posts ]  Go to page 1, 2, 3, 4, 5 ... 12  Next
Author Message
 Post subject: RELEASED: < 1 Minute to 5 Minute Polling Interval Patch
PostPosted: Wed Oct 04, 2006 5:46 pm 
Offline
Developer
User avatar

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


Attachments:
File comment: Cacti 0.8.6j w/o Plugin Architecture
PollingIntervalsPatchv8.zip [24.58 KiB]
Downloaded 2098 times
File comment: Cacti 0.8.6j w/Plugin Architecture 1.1
PollingIntervalsPatchv8-pia1.1.zip [24.65 KiB]
Downloaded 1998 times
File comment: Documentation/Usage Tips
Cacti_Polling_Intervals.pdf [708.59 KiB]
Downloaded 7202 times

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Last edited by TheWitness on Mon Feb 19, 2007 10:58 am, edited 3 times in total.
Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 04, 2006 6:50 pm 
Offline
Cacti User
User avatar

Joined: Tue Nov 01, 2005 2:10 pm
Posts: 72
Location: Lafayette, LA
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
Image


Last edited by mahuani on Wed Jan 31, 2007 5:43 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 04, 2006 7:10 pm 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5948
Location: Michigan, USA
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.. :)

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 04, 2006 9:12 pm 
Offline
Developer
User avatar

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

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 04, 2006 10:01 pm 
Offline
Developer
User avatar

Joined: Thu Feb 20, 2003 10:16 am
Posts: 1635
Location: Canada
You need to use mcron instead of vixie-cron: http://www.gnu.org/software/mcron/

_________________
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 05, 2006 7:55 am 
Offline
Cacti User
User avatar

Joined: Tue Oct 28, 2003 4:54 pm
Posts: 108
Location: Bucharest, RO.
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?

_________________
http://www.x-graphs.com X-graphs :: All kind of graphs


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 05, 2006 6:50 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14863
Location: MI, USA
Ian should have it out by tomorrow night. After that, I will be releasing. Probably on Sunday.

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 12, 2006 9:57 am 
Offline
User avatar

Joined: Mon Oct 02, 2006 8:05 am
Posts: 44
Location: NJ, USA
From where I can download this patch?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 12, 2006 9:58 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
TheWitness wrote:
Probably on Sunday.

Wait a few days :)

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 12, 2006 7:24 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14863
Location: MI, USA
Bump for all watching :)

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Graph Tree
PostPosted: Fri Oct 13, 2006 2:02 am 
Offline

Joined: Fri Oct 13, 2006 1:55 am
Posts: 4
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 13, 2006 2:09 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Hi

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

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 13, 2006 3:18 am 
Offline

Joined: Fri Oct 13, 2006 1:55 am
Posts: 4
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?

_________________
Cacti 0.8.6i, CactiD 0.8.6i Beta3


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 13, 2006 5:22 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14863
Location: MI, USA
Please "READ" the documentation. If you don't understand it, please post in General!!!

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: 1 Minute Polling "Patch"
PostPosted: Fri Oct 13, 2006 11:22 pm 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2562
Location: B/CS Texas
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.


Attachments:
File comment: 1 Minute Polling Patch
1MinutePolling.patch [11.33 KiB]
Downloaded 3202 times

_________________
CactiEZ CD
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 170 posts ]  Go to page 1, 2, 3, 4, 5 ... 12  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group