content of table poller_output available to plugins
Moderators: Developers, Moderators
content of table poller_output available to plugins
i want to be able to use the data that poller write into "poller_output" table in a plugin.
the problem is that this table is truncated just before plugins are launched.
is it possible to truncate this table at the start of polling, not at the end ?
the code in question is in cacti/lib folder, poller.php file, i think
the problem is that this table is truncated just before plugins are launched.
is it possible to truncate this table at the start of polling, not at the end ?
the code in question is in cacti/lib folder, poller.php file, i think
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Re: content of table poller_output available to plugins
Hi gillesgilles wrote:is it possible to truncate this table at the start of polling, not at the end ?
if this table gets truncated at the start of polling, nothing will get polled ?
Maybe it should be truncated at the end of plugins runtime (I'm using Weathermap, and it's launched at the end of Cacti's polling).
[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]
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Jimmy is adding a hook that will allow you to copy the poller_output table before truncation.
[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]
[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]
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Boost me baby! Boost makes developers of things like Manage/Thold/WMap very happy!!!
TheWitness
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?
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?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Gilles,
Boost is still in development. I will send you RC2. Don't have it in SVN though. Jimmy's got THold under SVN though.
Larry
Boost is still in development. I will send you RC2. Don't have it in SVN though. Jimmy's got THold under SVN though.
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?
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?
Public access to the SVN isn't currently available for a few reasons I shall keep to myself, but it shall be available again in a few weeks. If you would like to know how the hook works, I will gladly explain that though. I also don't mind emailing you a current copy of thold, it just isn't ready for production use (actually, I think it is, I just haven't tested every 15 times to be sure).
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Boost makes developer of WMap hold his head and try to figure out a way to squeeze it into the recently rewritten-to-be-LESS-cacti-specific WMap, actually, but close I suspect that other design decisions I've made will actually make WMap+Boost either slightly clunky or slower (for WMap). The Win from Boost will cover for it, hopefullyTheWitness wrote:Boost me baby! Boost makes developers of things like Manage/Thold/WMap very happy!!!
TheWitness
I still don't fully follow how delaying the rrdtool updates til later actually improves performance though - the writes still have to be done, and things I've been reading lately on rrdtool-users suggest that rrdtool is pretty quick at updates (limited by disk i/o, which it always would be). Obviously the poller returns quicker, but some other process doing the update takes the same CPU and i/o, and if it does it slower than the poller produces them, then it'd never have worked anyway...
I'm not an expert, and don't play one on TV, even. Just curious! It obviously does work, otherwise people wouldn't be so cheerful about it with their giant installations.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Granted, I'm no expert either, but that is exactly it. Being that it doesn't have to waste so much time with the hard drive seeking to the new rrd file to write 1-2 bits of data. Instead of 10000 seeks every 5 minutes, you can have 10000 seeks every 4 hours (saving 470,000 seeks). It takes almost the same amount of time to write the 1 bit of data, as it does the the 192 bits at once, so the write itself is not the part slowing you down.(limited by disk i/o, which it always would be)
Who is online
Users browsing this forum: No registered users and 6 guests