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
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What poller are your using? What is your operating system for the poller? You may have to simply wait for 0.8.6k to obtain this functionality.

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?
carmodyquinn
Posts: 3
Joined: Thu Aug 09, 2007 8:11 am

RELEASED: < 1 Minute to 5 Minute Polling Interval Patch

Post by carmodyquinn »

Wow- thanks for the quick response - here is what I'm using:

cacti-0.8.6j
solaris 10u3 (aka 5.10)
net-snmp 5.0.9
rrd 1.2.19
php 5.2.3

If you can point me to the areas in the code where this is getting initialized then maybe I can figure something out?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

No plugin architecture?

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?
carmodyquinn
Posts: 3
Joined: Thu Aug 09, 2007 8:11 am

RELEASED: < 1 Minute to 5 Minute Polling Interval Patch

Post by carmodyquinn »

No plugins - was this suppose to be against a specific plugin?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Then, simply apply the files, become familiar with the Documentation provided, and create your data templates.

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?
ashfieldm
Posts: 25
Joined: Tue Oct 11, 2005 8:47 am

Post by ashfieldm »

Sorry, i'm coming into this late and finding the 9-page thread a bit confusing.

I want to be able to do 30 second polling. I'm running 0.8.6g cacti.

What in brief (i can figure out the docs) do I need to download to make this happen?

Thanks!
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You need to download 0.8.7 in October when it's released.. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
ashfieldm
Posts: 25
Joined: Tue Oct 11, 2005 8:47 am

Post by ashfieldm »

Does that have the 30 second polling built-in?
zeki
Cacti User
Posts: 92
Joined: Fri Feb 09, 2007 10:55 pm
Location: So. Cal
Contact:

Post by zeki »

i followed the instructions on page 7 to setup the 10 sec poller and once traffic exceeds 800mb it stops graphing, creating a big gap in my graph. i am using 64-bit graphing.
did i mess up somewhere in the settings that doesn't allow it to graph over 800mb?
i'll also attach a graph of the problem
TIA

edit: i think i found the answer here http://forums.cacti.net/viewtopic.php?t ... ight=800mb
gonna try this then report back

update: i tried the method in the link and it works
Attachments
800.jpg
800.jpg (113.87 KiB) Viewed 12034 times
Last edited by zeki on Thu Oct 04, 2007 4:50 am, edited 1 time in total.
DeathWolf
Posts: 1
Joined: Tue Oct 02, 2007 8:52 am

Post by DeathWolf »

I tried to follow the instructions as closely as possible(though a few screenshots were missing)
Everything seemed to go fine, exept I'm never seeing any rrd file created for my 1 min data sources...

Turning on data source shows this:

Code: Select all

C:/www/cactid/rrdtool.exe create \
C:/www/htdocs/cacti/rra/natsuki_traffic_in_29.rrd \
--step 60  \
DS:traffic_out:COUNTER:120:0:100000000 \
DS:traffic_in:COUNTER:120:0:100000000 \
RRA:AVERAGE:0.5:1:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
However the poller never seems to be doing anything related to that data source... Any hints as of what to do?


Note: if anyone feels like doing/sharing his 1min templates, it would be really nice, importing instead of dup-and-mod is far nicer.
ogiljae
Posts: 19
Joined: Wed Apr 04, 2007 11:15 pm

How can I fix it

Post by ogiljae »

After installing 1 minute polling.
some Graphs drawn have differnet timings. I mean Before installing 1 minute polling patch, all Graphs were drawn at the same time.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: How can I fix it

Post by cigamit »

ogiljae wrote:After installing 1 minute polling.
some Graphs drawn have differnet timings. I mean Before installing 1 minute polling patch, all Graphs were drawn at the same time.

This is an important feature. What is happening is it is now taking your 5 minute graphs and spreading them out over the 5 minute interval. Since you now have 5 polling per 5 minutes (1 every minute). This way they are not all polled at once and cause the 1 minute polling to go over the 1 minute interval.
ben_c
Cacti User
Posts: 203
Joined: Mon May 14, 2007 8:12 pm
Location: Melbourne, Australia.

Post by ben_c »

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

Code: Select all

*/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
Would this work on existing rrd's that have step/heartbeat of 300/600 or would it just break them?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

It would not "break" them. But you won't see any details below 5 min unless changing step/heartbeat. It simply updates those rrd's 10 times in 5 minutes.
Reinhard
Raphael
Posts: 1
Joined: Wed Oct 31, 2007 1:52 am

So is any of this valid for the latest version?

Post by Raphael »

I installed the latest version the other day via the Debian Ubuntu server. So I am assuming it is the latest version. How dio you know which version you are running?

I tried the patch that was shown previously... but that just stops cacti from working. Obviously I'm running a newer version and things have changed.

I still don't have the option to do do 1min intervals. Can someone help?

cheers

G.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests