I am sorry, for some reason I was not getting replies to my other thread and missed your valuable help! I have implemented that, and it works very well. I had also found when using the eval, that $2 of course would not have the value I expected until the action was carried out , and so it made my !IGNORE contexts not work anymore. Everything is fine with this sort of rule - it doing exactly what we want and the folks I did this work for are quite pleased!


type=single
ptype=perlfunc
pattern=sub { if ($_[0] =~ /.*(SRVE0255E).*/) { my($temp) = $1; \
return ($temp, $_[1] =~ m/.*\/(.*)\.SystemOut\.log$/);  } else { return 0; } }
context=!IGNORE_SRVE0255E_FOR_$2
desc=$0
action="" Error reported by Application: %app on Layer: %layer. Node: $2 reports: $1. Full error message is: $0 ; write %alertfile %t Error reported by Application: %app on Layer: %layer. Node: $2 reports: $1. Full error is: $0; shellcmd %email_script $1 %layer %app $2 %mailto; create IGNORE_SRVE0255E_FOR_$2 60 logonly IGNORE_SRVE0255E_FOR_$2 has Expired!




------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to