Quantcast
Channel: VMware Communities : Popular Discussions - Hyperic User Forums
Viewing all articles
Browse latest Browse all 52618

How to write script for service?

$
0
0

I have written a servic plugin as follows:

 

 

<plugin>  <service name="AM_Service_test">    <config>      <option name="script"            description="Test script"            default="/home/hyperic/agent/bundles/agent-4.5.1/pdk/scripts/test.sh"/>    </config>    <filter name="template"            value="exec:exec=sudo,file=%script%"/>    <metric name="Availability"            template="${template}:Availability"            indicator="true"/>    <metric name="Metric1"            category="PERFORMANCE"            template="${template}:x"            indicator="true"/>  </service></plugin>

 

I want just to test any value.

How the Shell Script has to look like?

How it can be written for Windows as Batch File?

 

Thanks for help.


Viewing all articles
Browse latest Browse all 52618

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>