li calvin
2013-10-10 07:29:41 UTC
li calvin [http://community.zenoss.org/people/calvin_li] created the discussion
"Can I use custom properties in Notifications content ?"
To view the discussion, visit: http://community.zenoss.org/message/74901#74901
--------------------------------------------------------------
I found I can add more properties into device, like role, datacenter, regions, it is real good feature, but I want use these properties in event alerts when zenoss send the notifications if some event trigger.
like :
Subject: [zenoss] ${evt/device} ${evt/summary}
Body:
Device: ${evt/device}
System: ${evt/Systems}
Component: ${evt/component}
Severity: ${evt/severityString}
Time: ${evt/firstTime}
Message:
${evt/message}
<a href="${urls/eventUrl}">Event Detail</a>
<a href="${urls/ackUrl}">Acknowledge</a>
<a href="${urls/closeUrl}">Delete</a>
<a href="${urls/eventsUrl}">Device Events</a>
I want add more properties
like
Subject: [zenoss] ${evt/device} ${evt/summary} ${evt/device/cRole} ${evt/device/cRegion}
Body:
Device: ${evt/device}
System: ${evt/Systems}
Component: ${evt/component}
Severity: ${evt/severityString}
Time: ${evt/firstTime}
Role: ${evt/device/cRole}
Region: ${evt/device/cRegion}
Message:
${evt/message}
<a href="${urls/eventUrl}">Event Detail</a>
<a href="${urls/ackUrl}">Acknowledge</a>
<a href="${urls/closeUrl}">Delete</a>
<a href="${urls/eventsUrl}">Device Events</a>
but it won't take effect, I can not find any hint in zenoss manual, so I want to ask how to do it ?
Thank you.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74901#74901]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Can I use custom properties in Notifications content ?"
To view the discussion, visit: http://community.zenoss.org/message/74901#74901
--------------------------------------------------------------
I found I can add more properties into device, like role, datacenter, regions, it is real good feature, but I want use these properties in event alerts when zenoss send the notifications if some event trigger.
like :
Subject: [zenoss] ${evt/device} ${evt/summary}
Body:
Device: ${evt/device}
System: ${evt/Systems}
Component: ${evt/component}
Severity: ${evt/severityString}
Time: ${evt/firstTime}
Message:
${evt/message}
<a href="${urls/eventUrl}">Event Detail</a>
<a href="${urls/ackUrl}">Acknowledge</a>
<a href="${urls/closeUrl}">Delete</a>
<a href="${urls/eventsUrl}">Device Events</a>
I want add more properties
like
Subject: [zenoss] ${evt/device} ${evt/summary} ${evt/device/cRole} ${evt/device/cRegion}
Body:
Device: ${evt/device}
System: ${evt/Systems}
Component: ${evt/component}
Severity: ${evt/severityString}
Time: ${evt/firstTime}
Role: ${evt/device/cRole}
Region: ${evt/device/cRegion}
Message:
${evt/message}
<a href="${urls/eventUrl}">Event Detail</a>
<a href="${urls/ackUrl}">Acknowledge</a>
<a href="${urls/closeUrl}">Delete</a>
<a href="${urls/eventsUrl}">Device Events</a>
but it won't take effect, I can not find any hint in zenoss manual, so I want to ask how to do it ?
Thank you.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74901#74901]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]