Support Migration Notice: To update migrated JIRA cases click here to open a new case use www.vmware.com/go/sr | vFabric Hyperic 5.7.0 is Now Available

Hyperic HQ

hq-server AlertDefinition.java out of sync with hqapi AlertDefinitionBuilder.java

Details

  • Case Links:
  • Regression:
    No
  • Tags:

Description

The server has the ability to parse etc/alert-definitions.xml from a plugin and create pre-defined alert definitions from xml generated by HQApi. HQApi has more elements defined for it's "AlertDefinition" element than what AlertDefinition (hq-server/src/main/java/org/hyperic/hq/types/AlertDefinition.java) understands. One example is AlertAction.

Need to catch AlertDefinition up with hqapi.

Issue Links

Activity

Hide
Robert Palmer added a comment - - edited

I found a workaround for using the API but trying to load via etc/alert-definitions.xml in a jar file is still broken.

1. Use alertdefinition sync with a file that does not contain <AlertAction> or <AlertActionConfig> tag to create the initial Type alert.
2. Dump the Type Alert to a file. (Would be nice to be able to use both --typeAlert and --alertName='regex')
3. Add the <AlertAction> and <AlertActionConfig> tags to the dumped file.
4. Sync file back through the API.

There is no workaround that I have found for loading in a jar file except to exclude the offending tags and following steps 2 - 4 above.

Show
Robert Palmer added a comment - - edited I found a workaround for using the API but trying to load via etc/alert-definitions.xml in a jar file is still broken. 1. Use alertdefinition sync with a file that does not contain <AlertAction> or <AlertActionConfig> tag to create the initial Type alert. 2. Dump the Type Alert to a file. (Would be nice to be able to use both --typeAlert and --alertName='regex') 3. Add the <AlertAction> and <AlertActionConfig> tags to the dumped file. 4. Sync file back through the API. There is no workaround that I have found for loading in a jar file except to exclude the offending tags and following steps 2 - 4 above.
Hide
Wes Schlichter added a comment -

This is being tagged for 4.5.2.3 and 4.6.0.2, however, since it's not a regression if more pressing bugs come up before the code complete deadline for those releases this might get pushed out into 4.6.1.

Show
Wes Schlichter added a comment - This is being tagged for 4.5.2.3 and 4.6.0.2, however, since it's not a regression if more pressing bugs come up before the code complete deadline for those releases this might get pushed out into 4.6.1.
Hide
Wes Schlichter added a comment -

Used the jaxb-ri generator to create the class files. Verified with simple test plugin and xml.

Show
Wes Schlichter added a comment - Used the jaxb-ri generator to create the class files. Verified with simple test plugin and xml.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved:
    Last comment:
    2 years, 20 weeks ago