Hi,
I am quite confused with sigar when embeded in a plugin :
when I test my sigar chain with command line
$ /Soft/JDK/150_15/bin/java -jar /data/hquser/agent/hyperic-hqee-agent-4.5.1.2/bundles/agent-4.5.1.2/pdk/lib/sigar-1.6.4.jar
ps "CredName.User.eq=myuser,State.Name.eq=myexebasename,Args.2.ct=PARAM2"
I get one and only one process,
when I set up a manual "process" service with the same chain this is allright too
but when the same sigar chain is embeded in a plug-in succesfully deployed on the platform, availalbility is 0
what am I doing wrong (rem: OS is solaris 10) ?
<?xml version="1.0"?>
<plugin>
<server name="MYTEST" version="1.0">
<property name="HAS_BUILTIN_SERVICES" value="true"/>
<property name="INVENTORY_ID" value="MYTEST"/>
<property name="INSTALLPATH" value="/Home/myuser"/>
<plugin type="autoinventory" class="org.hyperic.hq.product.DaemonDetector"/>
<plugin type="measurement" class="org.hyperic.hq.product.MeasurementPlugin"/>
<service name="DS">
<metric name="Availability" indicator="true" template="sigar:Type=ProcState,Arg=CredName.User.eq=myuser,State.Name.eq=myexebasename,Args.2.ct=PARAM2:State"/>
</service>
</server>
</plugin>
I am quite confused with sigar when embeded in a plugin :
when I test my sigar chain with command line
$ /Soft/JDK/150_15/bin/java -jar /data/hquser/agent/hyperic-hqee-agent-4.5.1.2/bundles/agent-4.5.1.2/pdk/lib/sigar-1.6.4.jar
ps "CredName.User.eq=myuser,State.Name.eq=myexebasename,Args.2.ct=PARAM2"
I get one and only one process,
when I set up a manual "process" service with the same chain this is allright too
but when the same sigar chain is embeded in a plug-in succesfully deployed on the platform, availalbility is 0
what am I doing wrong (rem: OS is solaris 10) ?
<?xml version="1.0"?>
<plugin>
<server name="MYTEST" version="1.0">
<property name="HAS_BUILTIN_SERVICES" value="true"/>
<property name="INVENTORY_ID" value="MYTEST"/>
<property name="INSTALLPATH" value="/Home/myuser"/>
<plugin type="autoinventory" class="org.hyperic.hq.product.DaemonDetector"/>
<plugin type="measurement" class="org.hyperic.hq.product.MeasurementPlugin"/>
<service name="DS">
<metric name="Availability" indicator="true" template="sigar:Type=ProcState,Arg=CredName.User.eq=myuser,State.Name.eq=myexebasename,Args.2.ct=PARAM2:State"/>
</service>
</server>
</plugin>