Hello,
I have trouble getting my own stat collection script to work on opensolaris:
$ pdk/scripts/report-stats.ksh
processed=0
twitterq=0
=====
script:
=====
#!/bin/ksh
Processed=$(cat /var/tmp/processed-5min.out)
TwitterQ=$(cat /var/tmp/twitter-queries-5min.out)
echo processed=$Processed
echo twitterq=$TwitterQ
====
rails-stats-plugin.xml:
====
<plugin>
<service name="I/O Device">
<config>
<option name="script"
description="Collector script"
default="pdk/scripts/report-stats.ksh"/>
</config>
<filter name="template"
value="exec:file=%script%"/>
<metric name="Availability"
template="${template}:Availability" />
<metric name="Items Processed Last 5 Minutes"
category="THROUGHPUT"
template="${template}:processed"/>
<metric name="Twitter Queries Last 5 Minutes"
category="THROUGHPUT"
template="${template}:twitterq"/>
</service>
</plugin>
----
$ java -version
java version "1.6.0_06"
Java(TM) Platform, Standard Edition for Business (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
Agent seems to be behaving, othewise.
Any pointers are greatly appreciated.
Thank you,
/David
Message was edited by: davidk