RELEASED: < 1 Minute to 5 Minute Polling Interval Patch

Important information about Cacti developments that all users should be interested in.

Moderators: Developers, Moderators

Post Reply
ellerbrockr
Posts: 8
Joined: Thu Jun 15, 2006 10:07 pm

Post by ellerbrockr »

Devil wrote:Ive found an error in The PDF file attached to this thread.

In section 2.1 "Click Devices..." under section 2 "Create new RRA" should say "Click 'Data Sources' ...
Otherwise a perfect/easy to follow guide...

regards Devil.
I followed the PDF instructions but somehow when doing step 5 - "Adjust Data Query" after updating the "SNMP - Interface Statistics" with the 1 min poll cacti managed to kill all the "Suggested values" on the page. I did this multiple times and each time cacti managed to kill all the suggested values. Now when I create new graphs they have default values - no good. Either something is 1) broken with cacti 0.8.6.i, 2) I missed something that broke the Data Query or 3) I don
flipflap
Cacti User
Posts: 142
Joined: Sat Jul 09, 2005 3:13 pm

Post by flipflap »

hi, what if i set the interval to 2 min, will the 1 min graph still look the same as when i set the interval to 1 min? thanks.

EDIT: what's the difference if i set the interval to 1 min but the scheduled task is set to run every 5 min?

what does interval do compared to scheduled task run time? thanks
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If you are polling every minute, the scheduled task must fire every minute. If you are polling every two minutes, the scheduled task must poll every two minutes. However, you should not poll any less frequently than 5 minutes, even though some data sources may only be polled ever few hours.

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

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
flipflap
Cacti User
Posts: 142
Joined: Sat Jul 09, 2005 3:13 pm

Post by flipflap »

thanks for the reply. i also noticed that the daily 5 min average of the bits/sec 1 min traffic is more should i say detailed than the daily 5 min average of the bits/sec traffic. is that normal?
Attachments
daily 5 min ave bits/sec 1 min
daily 5 min ave bits/sec 1 min
daily 5 min ave bits per sec 1 min traffic.JPG (24.1 KiB) Viewed 14436 times
daily 5 min ave bits/sec
daily 5 min ave bits/sec
daily 5 min ave bits per sec traffic.JPG (22.81 KiB) Viewed 14436 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Of course, the more frequently you measure, the more accurate the graphs "appear".

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

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
flipflap
Cacti User
Posts: 142
Joined: Sat Jul 09, 2005 3:13 pm

Post by flipflap »

ahh ok. i just thought that since both were 5 min average it would yield to the same graph and the only difference would be in the 1 min average graph. oh well. thanks for the info and great work! :lol:
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Oh, so what you are saying is that you still maintained the 5 minute average and the poller interval was 1 minute. Well here's the deal, each 5 minute poll is distributed so, as you know, traffic is bursty, and in any 1 minute period, you can go from 0 to saturation. So, numbers will fluctuate.

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

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
dfrailey
Posts: 2
Joined: Wed Jun 14, 2006 9:44 am
Location: Williamstown, WV

What Does This Patch Do?

Post by dfrailey »

Can someone explain what this patch actually does?

I've been running Cacti with 1-minute polling (just fine) for quite awhile now just by altering the Steps, Rows, and Heartbeat fields -- and the cron job. Why do I need this patch? What does it change? Why wasn't it incorporated in the last release?

Also, why not have a version of cactid that actually runs as a daemon? Why not add some smarts to Cacti and cactid so all we say is what kind of polling resolution we want for a data source per period, and then Cacti and cactid automatically handle scheduling and figure out the steps, rows, timespan, heartbeat, whatever -- stuff???

Regards,

David Frailey, MCSE, MCSA
Williamstown, WV
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The big difference here is that if you define DS's that are to be polled every 10 minutes, hour, 4 hours, they will be polled only that often. If you want 5 minute granularity and have a 1 minute poll interval, those items get polled every minute. This limits scalability. Therefore, I have introduced this patch.

Do you understand now?

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

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
PlaneTeeR
Posts: 14
Joined: Mon Nov 20, 2006 5:52 am

Post by PlaneTeeR »

Hey,

I don't seem to get how to install the patch, which version should i use? From thewitness or from cigamit? I'm using it on a windows xp machine the latest version.

the patch of cigamit what should i do with that file for example?

Thanks Johnny
himohit
Posts: 11
Joined: Fri Jun 30, 2006 8:59 am

Using cacti 0.8.6h

Post by himohit »

Hi All,
Thanks to everyones work and input on making the polling interval flexible from 5 minutes to lesser.
But I am facing some problems with the scripts and I am wondering if anyone can please help me out with this.
I am using the cacti version 0.8.6h and the scripts are not working. Can anyone please help me resolve this issue as I need to get the polling interval to 1 minute.

I will appreciate any help, suggestions or inputs I receive.
Thank you
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You need to be more specific.

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

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
himohit
Posts: 11
Joined: Fri Jun 30, 2006 8:59 am

Post by himohit »

Hi The Witness,
Is there any script made specifically for the cacti version 0.8.6h
I see in the forums that the patch works only with specific versions. Are you aware if this patch will work with my version as well.

Thanks
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Several. Look in the scripts directory.

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

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
himohit
Posts: 11
Joined: Fri Jun 30, 2006 8:59 am

Post by himohit »

Sorry, i was not clear again. I was looking for a script for making the polling interval to 1 minute. Is there a script for poller interval of 1 minute for the cacti v0.8.6h
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests