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

Fails to get availability metric from sigar

$
0
0
I'm developing my first hyperic plugin and I've gotten so far that a server is auto discovered. However when I try to configure an availability metric with the same sigar ptql I fail. Am I doing something obvious wrong?

This is my plugin:
...
  <server name="iipax">
     <property name="INVENTORY_ID" value="iipax"/>
     <property name="PROC_QUERY" value="State.Name.eq=java,Args.*.ct=iipax.config.file"/>
     <plugin type="autoinventory" class="org.hyperic.hq.product.DaemonDetector"/>
     <plugin type="measurement" class="org.hyperic.hq.product.MeasurementPlugin"/>
     <metric name="Availability" template="sigar:Type=ProcState,Arg=State.Name.eq=java,Args.*.ct=iipax.config.file:State"
                category="AVAILABILITY" indicator="true"/>
...


This is the output I get when testing it:
C:\java\hyperic\agent-4.5>java -jar bundles\agent-4.5\pdk/lib/hq-pdk-4.5.jar  -Dplugins.include=iipax -m discover -a metric
java -jar bundles\agent-4.5\pdk/lib/hq-pdk-4.5.jar  -Dplugins.include=iipax -m discover -a metric
INFO  [main] [ProductPluginManager] agent.pdkDir=C:\java\hyperic\agent-4.5\bundles\agent-4.5\pdk
INFO  [main] [ProductPluginManager] agent.pdkPluginDir=C:\java\hyperic\agent-4.5\bundles\agent-4.5\pdk/plugins
INFO  [main] [ProductPluginManager] agent.pdkWorkDir=C:\java\hyperic\agent-4.5\bundles\agent-4.5\pdk/work
DEBUG [main] [ProductPluginManager] Initializing in client mode (pdk=C:\java\hyperic\agent-4.5\bundles\agent-4.5\pdk)
INFO  [main] [ProductPluginManager] Loading plugin: netservices-plugin.jar
DEBUG [main] [ProductPluginManager]
--- Manifest entries for: jar:file:C:\java\hyperic\agent-4.5\bundles\agent-4.5\pdk\plugins\netservices-plugin.jar!/ ---
Implementation-Title - Hyperic HQ Plugin - Net Services Plugin
Implementation-Version - 4.5
Specification-Vendor - VMware, Inc.
Built-By - bob
Manifest-Version - 1.0
Created-By - Apache Maven
Build-Date - Nov 04, 2010
Implementation-Vendor - VMware, Inc.
Implementation-Vendor-Id - org.hyperic.hq.plugin
Build-Jdk - 1.6.0_18
Specification-Title - HQ Plugin
Specification-Version - 4.5
Archiver-Version - Plexus Archiver

DEBUG [main] [ClientPluginDeployer] Unchanged file: C:\java\hyperic\agent-4.5\bundles\agent-4.5\pdk\work\lib\netservices\dnsjava-2.0.6.jar
INFO  [main] [MeasurementPlugin] Register TCP Socket proxy for domain: socket
INFO  [main] [MeasurementPlugin] Register HTTP proxy for domain: http
INFO  [main] [MeasurementPlugin] Register HTTP proxy for domain: url.availability
INFO  [main] [MeasurementPlugin] Register FTP proxy for domain: ftp
INFO  [main] [ProductPluginManager] Loading plugin: sqlquery-plugin.jar
DEBUG [main] [ProductPluginManager]
--- Manifest entries for: jar:file:C:\java\hyperic\agent-4.5\bundles\agent-4.5\pdk\plugins\sqlquery-plugin.jar!/ ---
Implementation-Title - Hyperic HQ Plugin - SQL Query Plugin
Implementation-Version - 4.5
Specification-Vendor - VMware, Inc.
Built-By - bob
Manifest-Version - 1.0
Created-By - Apache Maven
Build-Date - Nov 04, 2010
Implementation-Vendor - VMware, Inc.
Implementation-Vendor-Id - org.hyperic.hq.plugin
Build-Jdk - 1.6.0_18
Specification-Title - HQ Plugin
Specification-Version - 4.5
Archiver-Version - Plexus Archiver

INFO  [main] [SQLQueryMeasurementPlugin] Registered proxy for domain: sql
INFO  [main] [ProductPluginManager] Loading plugin: system-plugin.jar
DEBUG [main] [ProductPluginManager]
--- Manifest entries for: jar:file:C:\java\hyperic\agent-4.5\bundles\agent-4.5\pdk\plugins\system-plugin.jar!/ ---
Implementation-Title - Hyperic HQ Plugin - System Plugin
Implementation-Version - 4.5
Specification-Vendor - VMware, Inc.
Built-By - bob
Manifest-Version - 1.0
Created-By - Apache Maven
Build-Date - Nov 04, 2010
Implementation-Vendor - VMware, Inc.
Implementation-Vendor-Id - org.hyperic.hq.plugin
Build-Jdk - 1.6.0_18
Specification-Title - HQ Plugin
Specification-Version - 4.5
Archiver-Version - Plexus Archiver

DEBUG [main] [SystemPlugin] sigar.mirror.procnet=null
INFO  [main] [ProductPluginManager] Loading plugin: iipax-plugin.jar
DEBUG [main] [ProductPluginManager]
--- Manifest entries for: jar:file:C:\java\hyperic\hq-plugins\iipax-plugin.jar!/ ---
Build-Jdk - 1.6.0_18
Built-By - maggr
Manifest-Version - 1.0
Created-By - Apache Maven
Archiver-Version - Plexus Archiver

DEBUG [main] [PluginDiscoverer] Adding Auto Scanners=[ServerSignature {stName=iipax, match=[null], exclude=[null], regMatch=[null]}]
DEBUG [main] [PluginDiscoverer] Adding Registry Scanners=[]
DEBUG [Thread-1] [DaemonDetector] Using PROC_QUERY=State.Name.eq=java,Args.*.ct=iipax.config.file for iipax
DEBUG [Thread-1] [DaemonDetector] 'State.Name.eq=java,Args.*.ct=iipax.config.file' matched 1 processes
DEBUG [Thread-1] [WindowsRegistryScan] Windows Registry Scan starting...
DEBUG [Thread-1] [WindowsRegistryScan] Windows Registry Scan completed, took: 0
1 servers detected

Server: sarge iipax [C:\Program Files\Java\jdk1.6.0_20\bin\java.exe]
AIID.....iipax
config...
product..jdbcDriver=org.postgresql.Driver,
metric...
control..null
iipax Availability:
   sigar:Type=ProcState,Arg=State.Name.eq=java,Args.*.ct=iipax.config.file:State
   =>0,0%<=
DEBUG [main] [PluginDiscoverer] Runtime discover for sarge iipax, config=jdbcPassword=******,plugins.include=iipax,jdbcUser=null,jdbcUrl=null,jdbcDriver=org.postgresql.Driver,installpath=C:\Program Files\Java\jdk1.6.0_20\bin\java.exe,
DEBUG [main] [DaemonDetector] no services discovered

Runtime Resource Report...none

Viewing all articles
Browse latest Browse all 52618

Trending Articles



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