Awesomeface
2012-10-08 18:18:38 UTC
Awesomeface [http://community.zenoss.org/people/Awesomeface] created the discussion
"Alert Message manipulation"
To view the discussion, visit: http://community.zenoss.org/message/68927#68927
--------------------------------------------------------------
Hi, I had a question or two about the alert messages within zenoss.
The messages for one of our alerts, is somewhat cryptic. I know what it means because I set it up, but this goes to our level 1 staff onsite who generally see an odd looking, somewhat cryptic automated message and delete it.
So, knowing zenoss runs in python, and the alert messages run in python string expressions, I was wondering if there was either another dictionary key within the messages to pull the OID value that tripped the alert to begin with. Or if not, is it possible put a small bit python code within the message body to pull a value out of the {message: "some message"}.
Essentially, what I'm trying to do is turn
'Threshold of diskpace free low or not met: current value 5'
into
'The disk on server x is filling up! Currnetly at 5% free!!! fire and panic!!!'
Version is 3.2
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/68927#68927]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Alert Message manipulation"
To view the discussion, visit: http://community.zenoss.org/message/68927#68927
--------------------------------------------------------------
Hi, I had a question or two about the alert messages within zenoss.
The messages for one of our alerts, is somewhat cryptic. I know what it means because I set it up, but this goes to our level 1 staff onsite who generally see an odd looking, somewhat cryptic automated message and delete it.
So, knowing zenoss runs in python, and the alert messages run in python string expressions, I was wondering if there was either another dictionary key within the messages to pull the OID value that tripped the alert to begin with. Or if not, is it possible put a small bit python code within the message body to pull a value out of the {message: "some message"}.
Essentially, what I'm trying to do is turn
'Threshold of diskpace free low or not met: current value 5'
into
'The disk on server x is filling up! Currnetly at 5% free!!! fire and panic!!!'
Version is 3.2
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/68927#68927]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]