Hello list!

I configured three single rules: the first one trigger a context and the next 
two add a text to the context when there is a match.

In the first rule I copied the content of the context to a variable.

I know I should use a miniperl program to do what I need, but I don't have any 
experience in perl. The problem is:

How can I evaluate the variable h to know whether is empty or not? If it is 
empty do nothing, if not empty, create an event.

I have this:

type=Single
ptype=RegExp
pattern=linkDown (\S+) on interface (\S+)
desc=There is a link down on $1 on $2
action=create linkDown 3 (copy linkDown %h; <- is %h empty ->; event %s 
%h)


type=Single
ptype=RegExp
pattern=^(RsvpIfStateChange).+
desc=$0
action=add linkDown RsvpIfStateChange


type=Single
ptype=RegExp
pattern=^(RsvpIfNbrStateDown).+
desc=$0
action=add linkDown RsvpIfNbrStateDown

Thanks.

Raul.

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to