Difference between revisions of "Custom Event Fields in Notifications"

From Zenoss Wiki
Jump to: navigation, search
m (Fixed TALES bracket typo)
 
Line 9: Line 9:
  
 
Instead, use a tales OR.
 
Instead, use a tales OR.
<console>$(evt/customField | string: custom Field does not exist}</console>
+
<console>${evt/customField | string: custom Field does not exist}</console>
  
 
[[File:CustomField_notif2.png]]
 
[[File:CustomField_notif2.png]]

Latest revision as of 20:09, 5 February 2019

You can add custom event fields in to notifications, but you must be careful to add them properly. If a zenactiond tries to evaluate a tales expression and the field is not there, zenactiond will error and your notification will never execute.

Creating your notification with a custom evt field

CustomField notif1.png

If that field does not exist on the event, zenaction will error and nothing will happen. CustomField zenactiond error.png

Instead, use a tales OR.

${evt/customField | string: custom Field does not exist}

CustomField notif2.png