Hyperic HQ- Monitor process statistics for 50+ processes on Linux machine
- by Chris
Is there an easy way to get metrics on all processes that start with the letters XYZ? I have about 80 processes that I have to monitor individually that all start with the prefix XYZ.
I have created a query using the sigar shell: ps State.Name.sw=XYZ, which will give me a list of the processes that I want. What I need to do is define this list of processes through said query and collect and track statistics from the Process service: http://support.hyperic.com/display/hypcomm/Process+service
What I need is 3 or 4 key statistics for each of the XYZ processes defined by my query to show up as graphs in the web front end.
Note: Hyperic HQ server is installed on a windows machine and I'm monitoring a Linux box via an agent.
Thanks,
Chris
Edit: Here is my try at a plugin that may give me what I want, but it's not being inventoried/detected by the Hyperic web UI. Simply pointing me to one of Hyperic's tutorials won't do. Thanks.
<!DOCTYPE plugin [
<!ENTITY process-metrics SYSTEM "/pdk/plugins/process-metrics.xml">]>
<plugin>
<server name="ABCStats">
<config>
<option name="process.query"
description="Process Query"
default="State.Name.sw=XYZ"/>
</config>
<metric name="Availability"
alias="Availability"
template="sigar:Type=ProcState,Arg=%process.query%:State"
category="AVAILABILITY"
indicator="true"
units="percentage"
collectionType="dynamic"/>
&process-metrics;
<plugin type="autoinventory"/>
<plugin type="measurement"
class="org.hyperic.hq.product.MeasurementPlugin"/>
</server>
</plugin>