Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
vFabric Hyperic HQApi 5.x incorrectly creates Recovery Alert Definition (2042977)
Symptoms
Resolution
This is a known issue affecting VMware vFabric HQApi 5.x. Currently, there is no resolution.
To workaround this issue, modify the Recovery Alert Definition condition after creation using the hqapi alertdefinition sync command in the resource's Alert Definition user interface. For more information, see HPApi alertdefinition command in vFabric Hyperic Documentation.
Impact/Risks
A Recovery Alert Definition is created with condition LESS_THAN instead of RECOVERYGREATERTHAN or RECOVERYNOTEQUALTO.
You must modify the Recovery Alert Definition condition after the Recovery Alert Definition has been created.
Additional Information
For example, the following command should generate:
- an Alert Definition with condition Availability < 1 for Win32 matching resource
- a Recovery Alert Definition with condition Availability > 0
hqapi alertdefinition create --regex="matching resource" --metric="Availability" --recoveryname="RECOVERY: Availability" --name="Availability" --prototype="Win32" --lessthan 1 --recoverygreaterthan 0
However, the Recovery Alert Definition is created with condition availability < 0. The hqapi alertdefinition list command confirms this:
<AlertDefinition mtime="1358229333250" ctime="1358229333234" id="10036" name="RECOVERY: Availability" description="" priority="2" enabled="true" active="true" frequency="0" count="0" range="0" willRecover="false" notifyFiltered="false" controlFiltered="false">
<Resource id="10976" name="matching resource"/>
<AlertCondition required="true" type="1" thresholdValue="0.0" thresholdComparator="<" thresholdMetric="Availability"/>
<AlertCondition required="true" type="5" recover="Availability" recoverId="10035"/>
</AlertDefinition>
The Recovery Alert Definition in the vFabric Hyperic Server user interface also confirms this. See image.

However, the Recovery Alert Definition is created with condition availability < 0. The hqapi alertdefinition list command confirms this:
<AlertDefinition mtime="1358229333250" ctime="1358229333234" id="10036" name="RECOVERY: Availability" description="" priority="2" enabled="true" active="true" frequency="0" count="0" range="0" willRecover="false" notifyFiltered="false" controlFiltered="false">
<Resource id="10976" name="matching resource"/>
<AlertCondition required="true" type="1" thresholdValue="0.0" thresholdComparator="<" thresholdMetric="Availability"/>
<AlertCondition required="true" type="5" recover="Availability" recoverId="10035"/>
</AlertDefinition>
The Recovery Alert Definition in the vFabric Hyperic Server user interface also confirms this. See image.

Tags
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

