Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Hook documentation?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Development
Author Message
cigamit
Developer


Joined: 07 Apr 2005
Posts: 945
Location: B/CS Texas

PostPosted: Thu Mar 15, 2007 9:16 pm    Post subject: Reply with quote

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.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2135
Location: United Kingdom

PostPosted: Fri Mar 16, 2007 3:21 am    Post subject: Reply with quote

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 Time for a rethink.
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Fri Mar 16, 2007 8:44 am    Post subject: Reply with quote

Memory table in mysql 5.x and greater? And a temporary table in 4.x and less?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Development All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group