Custom variable change notifies broker module

Andreas Ericsson ae at op5.se
Thu Sep 15 13:52:24 CEST 2011


On 07/29/2011 03:36 PM, Matthieu Kermagoret wrote:
> Hi list,
> 
> Attached patch allows broker modules to be notified when a custom
> variable is updated (either on host, service or contact) through
> external commands.
> 
> This feature could be very useful for modules like ndomod which are
> forced to dump _all_ custom variables at every status update, which in
> turn causes one SQL query per custom variable in ndo2db.
> 
> What do you think about it ?
> 

Sorry for the delay. I've been away on vacation and jobtrips and
this sort of fell between the chairs.

I was hoping someone else would comment on this for a yea or nay
response. Since the information is already present in the command
(which does get sent to the module, if it subscribes to commands),
this would simply make it accessible in a new way. While I have no
objections to that in general, I also have no strong opinion in
favour of it.

I take it you want this for mk_livestatus for some reason? I won't
add it unless there's a usecase for it, and the potential case
where ndoutils might need it isn't strong enough for that. A used
module wanting this to make it more effective would be a strong
incentive to put it in though.

Thanks.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/




More information about the Developers mailing list