Ticket #4060 (new defect)
Class transforms for /Unknown don't work
| Reported by: | zenoss | Owned by: | edahl |
|---|---|---|---|
| Priority: | 3 - Medium | Milestone: | Blue Crab |
| Component: | All | Version: | 2.2.4 |
| Keywords: | Cc: | ||
| Community Patch Attached: | Deployed @ Customer: | ||
| Installer: | Stack | Maintenance Target: | |
| Specific ZenPack: | Maintenance Status: | ||
| Documentation Note?: | Not required | Regression: |
Description
Description
- Zenoss Version: Stack build 2.2.0 -> 2.2.4
- Operating System(s): SuSE 10.3
- Regression (Y/N): N
Steps to Reproduce
- Create an event class transform on the /Unknown event class. Go to the /Unknown event class and choose More ->Transform from its menu. Transform was:
if evt.agent == "zentrap"
evt.summary="gotcha"
- Doesn't work with an SNMP event
- Also tried modifying zProperties for /Unknown (changing severity and/or drop to history). No works. 4.I find any modifications to the /Unknown event class transform don't "take" with the Save button. I've had to either recycle all the Zenoss daemons or, using zendmd, use:
dmd.Events.reIndex()
commit()
You can see what the database thinks is in the transform with:
for ec in dmd.Events.getSubOrganizers():
if ec.transform:
print ec, ec.getOrganizerName(), ec.transform
After a reIndex it gets the changes; before it doesn't
- To make sure my transform isn't buggy, I have cut and paste it into an event class mapping for a different Event Class - it works fine there.
- Also tried changing my /Unknown transform to a single line that changes evt.summary. If I test with the AddEvent dropdown and just specify message, device and class then the transform works but it does NOT transform any "real" events coming in with the /Unknown class.
Results
Transforms on /Unknown class don't work
Expected Results
Impact
Important
Notes
Jane Curry
jane.curry@…
Phone: +44 1628 782565
Change History
Note: See
TracTickets for help on using
tickets.