I have tried:
<metric name="Availability" template="linux:Service=${service_name}:Availability" indicator="true"/>
but still 0% avail. Looking at the logs it says:
[pool-1-thread-15] [ExecutableProcess@239] [/local/home/hyperic/scripts/csv-reading-script.sh]: Timeout running [/local/home/hyperic/scripts/csv-reading-script.sh ]
19-08-2013 14:31:12,517 BST ERROR [pool-1-thread-9] [VSphereCollector@163] org.hyperic.hq.product.PluginException: ServiceInstance(https://xxx/sdk, xxx\SVC_xxx): com.vmware.vim25.InvalidLogin
and
[system-0] [ScheduleThread@602] [3:10787:AVAILABILITY] Metric='exec:exec=,file=/local/home/hyperic/scripts/csv-reading-script.sh,args=,timeout=120:Availability' -> 0 timestamp=1376922000625
[system-0] [ScheduleThread@544] collecting data for meas=[derivedId=21066|dsnId=21066]|interval=60000]
[system-0] [ScheduleThread@602] [3:10787:THROUGHPUT] Metric='exec:exec=,file=/local/home/hyperic/scripts/csv-reading-script.sh,args=,timeout=120:ExecTime' -> 120,058 timestamp=1376922000625
[system-0] [ScheduleThread@544] collecting data for meas=[derivedId=21067|dsnId=21067]|interval=60000]
[tomcat-0] [ScheduleThread@602] [3:10315:UTILIZATION] Metric='Catalina:j2eeType=Servlet,name=jsp.resource.application.inventory.ChangeOwner_jsp,WebModule=//localhost/,J2EEApplication=none,J2EEServer=none:requestCount__RATE__=1m:jmx.url=ptql%3AState.Name.re%3Djava|jsvc%2CState.Name.Pne%3Djsvc%2CArgs.*.sw%3D-Dcatalina.base%3D/local/home/hyperic/server-5.0.0-EE/hq-engine/hq-server,jmx.username=system,jmx.password=****************' -> 0 timestamp=1376922000625
[system-0] [ScheduleThread@602] [3:10787:UTILIZATION] Metric='exec:exec=,file=/local/home/hyperic/scripts/csv-reading-script.sh,args=,timeout=120:ResultValue' -> 0.009 timestamp=1376922000626
Metric task 'exec:exec=,file=/local/home/hyperic/scripts/csv-reading-script.sh,args=,timeout=120:ResultValue' complete, duration: 67
Message was edited by: GodAtum