On 04/02/2012 06:38 PM, John Grasett wrote: > Rules to increment/decrement a counter, add, remove items from a list, > and fire on counter threshold. > > Given a number of servers, and rules in existance already: > > 1. detect OOM, add a context: OOM_on_serverX (!OOM_on_severX is ther > also to prevent repeat rule matches) > 2. detect a server restart, delete context: OOM_on_serverX > > I need to create a counter such as: > > OOM_count = i > > which would be incremented every time a OOM rule is matched (for a new > server), > and is decremented every time a server restart takes place (if that > server was reported OOM). > > Be nice to have a list: > > OOM_servers = serverX, ServerY > > which again can be aded to and removed from > > and lastly, another rule that monitors the OOM_count and fires off if > the count reaches a certain value. > > This looks tough to me... >
I think this problem could be easily solved by setting up a Perl hash which holds counter values for each server. Recently, I posted one example which illustrates the idea: http://sourceforge.net/mailarchive/message.php?msg_id=28622750 Also, there should be other relevant examples in the mailing list archive. hope this helps, risto > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > > > > _______________________________________________ > Simple-evcorr-users mailing list > Simple-evcorr-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ Simple-evcorr-users mailing list Simple-evcorr-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users