Mar 2, 2010 1:31 PM
Any way to make heartbeat failures critical instead of error?
-
Like (0)
I have a few apps that generate syslog messages, and i'm using Zenoss hearbeat mechanism to alert me if they fail. But i need to escalate these to crticial level. Is that possible? I've scratched my head for a while and i can't see a way.
Thanks...Tas
Did you try changing the zEventSeverity zProperty for the event? Where did you find documentation regarding custom heartbeats?
It's in the community FAQ from a post from Chet Luther I think.
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University
phonegi wrote, On 3/2/2010 10:53 PM:
Did you try changing the zEventSeverity zProperty for the event? Where did you find documentation regarding custom heartbeats?
>
phonegi: thanks; that works. I was hoping for a way to only apply this to certain HB failures, but I dont think there is a way.
Here's what I was using for reference: docs/DOC-2479
Sure there is. Thats what event transforms are for. Read up in the admin guide and Jane Curry's Event Mangement paper.
For instance, you can leave the zEventSeverity set to error for the event, but add a transform that checks for the name of the component against a list and ups the severity:
if evt.component in ['Comp1', 'Comp2', 'Comp3']:
evt.severity = 5
Aha, I was missing the 'defaultmapping' EventClassKey... with that, I can make it work. Thanks!
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||