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
ritter6281
Posts: 11
Joined: Fri Sep 30, 2005 5:12 pm
Location: Madison, WI

Problems with 1 minute patch

Post by ritter6281 »

I have checked everything and did two complete reinstalls to make sure I didn't mess something up. I am running cactid and I see the poller fetching the OIDs every minute. The only thing that I can't get to work is the blasted graphs for 1 minute polling. All other graphs are working.

The only thing I see that I did differently than the PDF was that I created a data query rather than adjusted one so that I would have 5 minute graphing and 1 minute graphing ability. The 1 minute graphs show up as broken images.

The PDF guide seems to go vague in section 4, among other places. If I could get this working, I would contribute a setup guide. I am using 0.8.6j with plugin architecture 1.1 on Linux. Any suggestions on troubleshooting this problem?
Kalli
Posts: 2
Joined: Mon Jun 18, 2007 11:38 am

Cacti 10 seconds doesn't work

Post by Kalli »

Hi,

I'm a french user of Cacti, so first, sorry for my english :-?

I apply the patch to Cacti v0.8.6j and works fine when the poller is set to "Every minute", but under (20, 15 or 10), no graph is created.

Thanks.
Attachments
Pb_Cacti_1.jpg
Pb_Cacti_1.jpg (161.54 KiB) Viewed 9218 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

There is an alternate open source cron that does 1 second cron. You have to replace your normal cron with it, or setup a wrapper script.

This post has more details on the replacement script.

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?
Bazou
Posts: 28
Joined: Tue Apr 10, 2007 7:45 am
Location: Brussels/Belgium

Post by Bazou »

cigamit wrote:
Bazou wrote:Is the patch for 0.8.6i (with PlugArch 1.1) still available somewhere?
As of an hour ago, the Multi polling patch has now been added to the Plugin Architecture SVN (so basically now you only need 1 patch!). I have also made a few minor enhancements to it, mainly to protect you from setting the interval to a setting, but having the cron run at a different interval. So basically, if your cron is set to 1 minute / 10 sec / whatever, and you have Cacti set to a 5 Minute interval, it will still only poll every 5 minutes no matter what the cron is set to run.

I will probably push out the new version tomorrow after some more testing.
Do you mean the new patch will be OK for cacti 0.8.6i and 0.8.6j ?
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Bazou wrote:
cigamit wrote:
Bazou wrote:Is the patch for 0.8.6i (with PlugArch 1.1) still available somewhere?
As of an hour ago, the Multi polling patch has now been added to the Plugin Architecture SVN (so basically now you only need 1 patch!). I have also made a few minor enhancements to it, mainly to protect you from setting the interval to a setting, but having the cron run at a different interval. So basically, if your cron is set to 1 minute / 10 sec / whatever, and you have Cacti set to a 5 Minute interval, it will still only poll every 5 minutes no matter what the cron is set to run.

I will probably push out the new version tomorrow after some more testing.
Do you mean the new patch will be OK for cacti 0.8.6i and 0.8.6j ?
No, I have removed the "I" patches from the latest PA SVN, as "J" has been out for 6 months now. If your going to be manually patching cacti files with the latest PA, you might as well upgrade cacti to the latest stable version also. Back porting the patch to old, outdated versions just takes way too much time (most of the time I have to re-patch the files by hand to get a workable patch).
Bazou
Posts: 28
Joined: Tue Apr 10, 2007 7:45 am
Location: Brussels/Belgium

Post by Bazou »

Ok, I understand.

I'm still in "I" because it's the current version in debian stable. I don't like to mix stable and testing software, it's most of the time a source of problems :/

Anyway, thank you for your answer.

Gilles
X505
Posts: 39
Joined: Fri Jun 29, 2007 3:53 pm
Contact:

Post by X505 »

Hi !
No questions
No BlaBla
Just THANKS !

I play with cacti since a week and it's a real pleasure !

I just finish the final cacti server for my boss with the 1 min average patch and it's working very well :

Image

I also donate some money because it really give me skills in linux (enough to make it work anyway) and much fun because i love cacti graph !

thank you again 8)
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

it seems that multiple polling interval has been added to the upcoming 0.8.6k release : http://svn.cacti.net/cgi-bin/viewcvs.cg ... 9&view=rev

Does it replace this patch ?
[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]
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

fmangeant wrote:Hi

it seems that multiple polling interval has been added to the upcoming 0.8.6k release : http://svn.cacti.net/cgi-bin/viewcvs.cg ... 9&view=rev

Does it replace this patch ?
Yep, this patch will not be necessary in K
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Jimmy,

Don't forget to get those poller.php changes in...

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

Post by fmangeant »

And will the plugin arch still be needed ? :)
[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: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Fortunately/Unfortunately yes. Even though the author is a part of the team 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?
StarLog
Cacti User
Posts: 150
Joined: Sat Jun 02, 2007 3:57 pm

Post by StarLog »

fmangeant wrote:Hi

it seems that multiple polling interval has been added to the upcoming 0.8.6k release : http://svn.cacti.net/cgi-bin/viewcvs.cg ... 9&view=rev

Does it replace this patch ?
What is required of us to install this on a 0.8.6j version.?

I am not sure if it is just a copy over the existing files, or what.

Thanks
Cacti v0.8.8a
Weathermap 9.7a
--------------------
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Well, you have both that step and to also change your include/config.php file.

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 »

All,
I need a 15m snmp polling interval (5m would be too intrusive and our switches are quite large so polling multiple switches would exceed 5m). I'm trying to hack this patch to do the job and have updated the poller_interval in config_settings, config_array, etc but the issue I'm having is I get a devide by 0 on line 180 in poller.php on poller_inteval.

I suspect this is because this is a new install with the patch put directly on a new install, and then devices added afterwards. Any recommendations on the easiest way to go after the 15m polling inteval? Should I reinstall, add devices, then add the patch?

Thanks
Carmody
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests