Hook documentation?

Discussions on developing plugins for the Cacti Plugin Architecture

Moderators: Developers, Moderators

cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Howie wrote:What I really meant was - is there any issue with a fairly long-running process hooking into poller_output?
Just remember that the poller_output hook will get called once per host, so if you are using it to launch a new process, it will launch that new process multiple times. Any other major computations it has to do will just slow down your polling slightly, nothing more.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

cigamit wrote:
Howie wrote:What I really meant was - is there any issue with a fairly long-running process hooking into poller_output?
Just remember that the poller_output hook will get called once per host, so if you are using it to launch a new process, it will launch that new process multiple times. Any other major computations it has to do will just slow down your polling slightly, nothing more.
OK. So I think I actually need a 3-step process:

poller_top: parse all the map configs, decide if any need poller_output data

poller_output: save away the required data in a table somewhere

poller_bottom: draw the maps (which can have a mix of data sources, so they need to be done after rrd updates in a non-boost system).

The easy way of doing that - holding all the map objects in memory between poller_top and poller_bottom - sounds like it'll be quite memory-hungry. and worse, memory hungry before the poller has run, so possible to kill it :o Time for a rethink.
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!)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Memory table in mysql 5.x and greater? And a temporary table in 4.x and less?
[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]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests