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...

------------------------------------------------------------------------------
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

Reply via email to