Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

Getting data from a CSV into Hyperic?

$
0
0

Hi all,

 

I have a CSV file that is produced by a script. It contain the columns: timestamp, seconds. How can i get the data into Hyperic so that it displays a graph of this? Will something like this work?

 

hq-plugin.xml

---------------------

 

<?xml version="1.0"?>

 

<!--  Define the type of plugin this is, and which classes implement each plugin type -->

<plugin>

     <server name="Script Reader">

 

       <plugin type="measurement" class="org.hyperic.hq.product.MeasurementPlugin"/>

 

     <property name="service_name" value="Monitoring Latencye"/>

 

         <config>       

          <option name="script" description="Data Collector script" default="/opt/monitoringDaemon/script.bat"/> 

     </config>

 

     <filter name="template" value="exec:file=%script%"/>

     <metric name="Script Data" category="PERFORMANCE" indicator="true" template="${template}:w/s"/>

     <metric name="Availability" template="win32:Service=${service_name}:Availability" indicator="true"/>

           

     <service name="Ping Service">

     <metric name="Availability" indicator="true"/>

     <metric name="Response Time 1" units="ms" indicator="true"/>

     <metric name="Response Time 2" units="ms" indicator="true"/>

     <metric name="Response Time 3" units="ms" indicator="true"/>

     <metric name="Response Time 4" units="ms" indicator="true"/>

 

     </service>

      

     </server>

</plugin>

 

 

/opt/monitoringDaemon/script.bat

---------------------------------

 

TYPE datafile.csv

 

 

/opt/monitoringDaemon/times.csv

---------------------------------

 

timestamp | 0.012


Viewing all articles
Browse latest Browse all 176483

Trending Articles



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