Hi
i am developping an add-on to hyperic wich contain metric of spervising server.
i want to know if i can add the name of metrics dynamically by putting it in the property elment i am trying this but it does not work any suggestion please ?
myplugin.xml
<property name="test" value="%site_name%" />
<metric name="${test}" units="sec"
template="sql:SELECT NAMELOOKUP_TIME FROM EAM_WEBEYOO5 WHERE NAME_SITE='%site_name%' and USER_NAME='%user_name%' ORDER BY DATE DESC limit 1:${test}"
indicator="true" />
myServerDetector.java
ConfigResponse productConfig = new ConfigResponse();
productConfig.setValue("site_name", "nom site");
Thanks.