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

RELEASED: < 1 Minute to 5 Minute Polling Interval Patch

Post by TheWitness »

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
PollingIntervalsPatchv8-pia1.1.zip
Cacti 0.8.6j w/Plugin Architecture 1.1
(24.65 KiB) Downloaded 4831 times
PollingIntervalsPatchv8.zip
Cacti 0.8.6j w/o Plugin Architecture
(24.58 KiB) Downloaded 4967 times
Cacti_Polling_Intervals.pdf
Documentation/Usage Tips
(708.59 KiB) Downloaded 10152 times
Last edited by TheWitness on Mon Feb 19, 2007 10:58 am, edited 3 times in total.
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?
User avatar
mahuani
Cacti User
Posts: 72
Joined: Tue Nov 01, 2005 2:10 pm
Location: Lafayette, LA
Contact:

Post by mahuani »

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
Last edited by mahuani on Wed Jan 31, 2007 5:43 pm, edited 1 time in total.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

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
Lol, that does work... Not a bad idea...

You could also just call a script that does the same.. :)
[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]
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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 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?
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

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
User avatar
Alice
Cacti User
Posts: 111
Joined: Tue Oct 28, 2003 4:54 pm
Location: Bucharest, RO.

Post by Alice »

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?
[url=http://www.x-graphs.com/]http://www.x-graphs.com[/url] [color=red]X[/color]-[color=blue]graphs[/color] :: All kind of graphs
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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 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?
User avatar
rock_manlove
Cacti User
Posts: 56
Joined: Mon Oct 02, 2006 8:05 am
Location: NJ, USA

Post by rock_manlove »

From where I can download this patch?

Thanks
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

TheWitness wrote:Probably on Sunday.
Wait a few days :)
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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

Graph Tree

Post by romput »

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
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

have you tried to change in your settings (the tab on the right) the default RRA ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
romput
Posts: 4
Joined: Fri Oct 13, 2006 1:55 am

Post by romput »

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

Post by TheWitness »

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 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?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

1 Minute Polling "Patch"

Post by cigamit »

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
1MinutePolling.patch
1 Minute Polling Patch
(11.33 KiB) Downloaded 6147 times
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests