Out of trouble Getting of track statistics ksh script on opensolaris

Hello

I have trouble getting my own collection stat script to work on opensolaris:

$ pdk/scripts/report-stats.ksh
treatment = 0
twitterq = 0

=====
script:
=====
#! / bin/ksh

Treatment = $(cat /var/tmp/processed-5min.out)
TwitterQ = $(cat /var/tmp/twitter-queries-5min.out)

treated echo = $Processed
echo twitterq = $TwitterQ

====
Rails-stats - plugin.xml:
====
< plugin >

< service name = "I/o Device" >

< config >
< name of option = "script".
Description = "script Collector."
default="PDK/scripts/report-stats.ksh"/ >
< / config >

< name of the filter = 'template '.
value="exec:file=%script%"/ >

< name metric = "availability".
model = "${model}": availability "/ >"

< name metric = 'items processed last 5 Minutes.
category = "FLOW".
model = "${model}: processed" / >

< name metric = "Twitter applications last 5 Minutes.
category = "FLOW".
model = "${model}: twitterq" / >

< / service >

< / plugin >

----

Java $-version
Java version "1.6.0_06".
Java (TM) Platform, Standard Edition for businesses (build 1.6.0_06 - b02)
Java hotspot Server VM (build 10.0 - b22, mixed mode)

Agent appears to be a behavior otherwise.

Pointers are greatly appreciated.

Thank you

/ David

Post edited by: davidk

David,

pluging looks very good.
You deploy the plugin in the plugins-hq directory and follow the other tips?
http://support.Hyperic.com/display/DOCSHQ32/deploy+plugin

Mirko

Tags: VMware

Similar Questions

Maybe you are looking for