TECHZEN Zenoss User Community ARCHIVE  

Passing Custom Fields to Event Notification

Subject: Passing Custom Fields to Event Notification
Author: Larry
Posted: 2019-03-21 19:37

We have a custom ZenPack which utilizes components. It has several custom fields for each component. The "Windows Services" modeler plugin has several fields for each component (e.g. "Caption", "Start Mode") so it is similar to our ZenPack.

We want to run a command notification to auto-clear events for this component. The command needs one of the custom fields though. Are these fields part of the component namespace? Are they part of the event namespace?

Thanks,
Larry

------------------------------
Larry
IPC Global
GA
------------------------------


Subject: RE: Passing Custom Fields to Event Notification
Author: Larry
Posted: 2019-03-21 19:39

P.s. We are running Zenoss Core 4.2.5. We are planning to upgrade to 6.2.1 soon, but this area appears to be the same for both versions.

------------------------------
Larry
IPC Global
GA
------------------------------

Subject: RE: Passing Custom Fields to Event Notification
Author: Jane Curry
Posted: 2019-03-22 11:55

Have you looked at this wiki item - http://wiki.zenoss.org/Custom_Event_Fields_in_Notifications  ?
You might also have a look at this one - http://wiki.zenoss.org/Providing_Triggers_Notifications_and_Event_Details_in_ZenPack 

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: Passing Custom Fields to Event Notification
Author: Larry
Posted: 2019-03-23 22:14

Thanks Jane!

Related question: Would it be possible to include any of the custom fields with triggers? I imagine the code for triggers would need modifying.

Thanks,
Larry

------------------------------
Larry
IPC Global
GA
------------------------------


Subject: RE: Passing Custom Fields to Event Notification
Author: Jane Curry
Posted: 2019-03-24 04:58

As I remember it, if you follow the second reference for populating custom event fields in the zep directory of a ZenPack, then those fields should just show up in the dialogue when you create triggers - no need to modify any Zenoss code.

There were some bugs around this area but provided you are on a late ZUP patch, I think you should be fine.

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: Passing Custom Fields to Event Notification
Author: Larry
Posted: 2019-03-25 14:57

Sounds good. Thanks!

------------------------------
Larry
IPC Global
GA
------------------------------


< Previous
Recent Performance/Graphing Issues with Zenoss Core 4.2.5
  Next
Cannot add new devices
>