[zenoss-users] Transform an event
James Alspach
jalspach at shastacoe.org
Fri Mar 14 14:56:28 EDT 2008
I know that this should be easy but I just can not seem to figure it
out. I would like to take a new event (in this case a when an interface
exceeds the 75% threshold) and allow it to be at the default severity
until count is , lets say, 5 then bump it up to the next severity and
keep doing this until it becomes critical. Even better would be to have
different counts between jumps. For instance, 10 moves it up from info
to warning, 5 more from warning up to error...
My overall feeling is that I should be able to set a mapping rule to be
evt.priorty=2 AND evt.count=10 and then a regex to find the threshold
warning then use a transform to add one to the priority. I have 3
problems with the above
1) I do not know how to specify the regex in Zenoss (I have used them
some in perl and php but I am not sure how to specify them in Zenoss. Do
I need parens, brackets, quotes, ???)
2) I do not know how to put two rules in the rule
3)...you guessed it, I am not sure how to start with the TALES in the
transform
I have read through Appendix C of the Zope book and googled regular
expressions but I am still not sure how to get started.
I know that I can do something like this in notifications but I can only
have it jump up one level. I would like this to percolate up as the
event persists.
Thanks and have a fantastic weekend.
James
James Alspach
Systems Applications Technician
Shasta County Office of Education
1644 Magnolia avenue
Redding, California
96003
jalspach at shastacoe.org <mailto:jalspach at shastacoe.org>
(530) 225-0293
IT Hotline: 225-0279
hotline at shastacoe.org <mailto:hotline at shastacoe.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.zenoss.org/pipermail/zenoss-users/attachments/20080314/4ca8dd74/attachment.html
More information about the zenoss-users
mailing list