You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
(927) |
Apr
(419) |
May
(352) |
Jun
(431) |
Jul
(463) |
Aug
(345) |
Sep
(304) |
Oct
(596) |
Nov
(466) |
Dec
(414) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(348) |
Feb
(313) |
Mar
(665) |
Apr
(688) |
May
(434) |
Jun
(311) |
Jul
(540) |
Aug
(554) |
Sep
(467) |
Oct
(341) |
Nov
(365) |
Dec
(272) |
| 2009 |
Jan
(386) |
Feb
(293) |
Mar
(279) |
Apr
(239) |
May
(229) |
Jun
(199) |
Jul
(186) |
Aug
(111) |
Sep
(196) |
Oct
(146) |
Nov
(116) |
Dec
(140) |
| 2010 |
Jan
(170) |
Feb
(159) |
Mar
(151) |
Apr
(161) |
May
(90) |
Jun
(56) |
Jul
(28) |
Aug
(22) |
Sep
(5) |
Oct
|
Nov
(23) |
Dec
(12) |
| 2011 |
Jan
(8) |
Feb
(8) |
Mar
(22) |
Apr
(24) |
May
(4) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2012 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <rm...@hy...> - 2007-03-29 04:28:58
|
Author: rmorgan Date: 2007-03-28 20:28:55 -0800 (Wed, 28 Mar 2007) New Revision: 3954 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3954 Removed: branches/HQ_3_0/plugins/examples/resin-plugin.xml Log: No longer needed. [merge from trunk] Deleted: branches/HQ_3_0/plugins/examples/resin-plugin.xml =================================================================== --- branches/HQ_3_0/plugins/examples/resin-plugin.xml 2007-03-29 04:28:35 UTC (rev 3953) +++ branches/HQ_3_0/plugins/examples/resin-plugin.xml 2007-03-29 04:28:55 UTC (rev 3954) @@ -1,365 +0,0 @@ -<?xml version="1.0"?> - -<!-- - NOTE: This copyright does *not* cover user programs that use HQ - program services by normal system calls through the application - program interfaces provided as part of the Hyperic Plug-in Development - Kit or the Hyperic Client Development Kit - this is merely considered - normal use of the program, and does *not* fall under the heading of - "derived work". - - Copyright (C) [2004, 2005, 2006], Hyperic, Inc. - This file is part of HQ. - - HQ is free software; you can redistribute it and/or modify - it under the terms version 2 of the GNU General Public License as - published by the Free Software Foundation. This program is distributed - in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - even the implied warranty of MERCHANTABILITY or FITNESS FOR A - PARTICULAR PURPOSE. See the GNU General Public License for more - details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 - USA. - --> - -<plugin name="resin"> - <classpath> - <include name="pdk/lib/mx4j"/> - </classpath> - - <filter name="template" - value="${OBJECT_NAME}:${alias}"/> - - <!-- Generic 3.x type is known to work with 3.0.20, 3.0.21, and 3.0.22. --> - <server name="Resin" - version="3.x" - description="Resin 3.x"> - - <property name="OBJECT_NAME" - value="resin:type=Server"/> - - <property name="PROC_MAIN_CLASS" - value="com.caucho.server.resin.Resin"/> - - <property name="PROC_HOME_PROPERTY" - value="resin.home"/> - - <!-- Availability mappings --> - <property name="State.active" value="1.0"/> - <property name="State.stopped" value="0.0"/> - <property name="State.stopped-lazy" value="-0.01"/> - - <plugin type="autoinventory" - class="org.hyperic.hq.product.jmx.MxServerDetector"/> - - <plugin type="control" - class="org.hyperic.hq.product.jmx.MxControlPlugin"/> - - <plugin type="measurement" - class="org.hyperic.hq.product.jmx.MxMeasurementPlugin"/> - - <config> - <option name="jmx.url" - description="JMX URL to MBeanServer" - default="service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi"/> - - <option name="jmx.username" - description="JMX username" - optional="true" - default="system"/> - - <option name="jmx.password" - description="JMX password" - optional="true" - default="manager" - type="secret"/> - </config> - - <properties> - <property name="RedeployMode" description="Redeploy Mode"/> - <property name="Id" description="Server Id"/> - <property name="SelectManagerEnabled" description="Select Manager Enabled"/> - <property name="StartupMode" description="Startup Mode"/> - </properties> - - <actions include="stop,start,update,restart"/> - - <metric name="Availability" - template="${OBJECT_NAME}:State" - indicator="true"/> - - <metric name="Invocation Cache Hit Count" - alias="InvocationCacheHitCountTotal" - collectionType="trendsup"/> - - <metric name="Invocation Cache Miss Count" - alias="InvocationCacheMissCountTotal" - collectionType="trendsup"/> - - <metric name="Keepalive Count" - alias="KeepaliveCountTotal" - collectionType="trendsup"/> - - <metric name="Request Count" - alias="RequestCountTotal" - collectionType="trendsup" - indicator="true"/> - - <metric name="Request Read Bytes" - alias="RequestReadBytesTotal" - collectionType="trendsup" - units="b" - indicator="true"/> - - <metric name="Request Time" - alias="RequestTimeTotal" - collectionType="trendsup" - units="ms"/> - - <metric name="Request Write Bytes" - alias="RequestWriteBytesTotal" - collectionType="trendsup" - units="b" - indicator="true"/> - - <metric name="Runtime Memory" - units="b"/> - - <metric name="Runtime Memory Free" - units="b"/> - - <metric name="Thread Active" - alias="ThreadActiveCount" - indicator="true"/> - - <metric name="Thread Keepalive" - alias="ThreadKeepaliveCount"/> - - <service name="Port"> - <property name="OBJECT_NAME" - value="resin:type=Port,name=*"/> - <config> - <option name="name" - description="Port name"/> - </config> - - <properties> - <property name="Address" description="Address"/> - <property name="ProtocolName" description="Protocol"/> - <property name="ConnectionMax" description="Max Connections"/> - <property name="KeepAliveMax" description="Max Keepalives"/> - <property name="Port" description="Port"/> - <property name="SSL" description="SSL Enabled"/> - <property name="SelectKeepaliveCount" - description="Select Keepalive"/> - </properties> - - <plugin type="autoinventory"/> - - <!-- Availability mappings --> - <property name="State.active" value="1.0"/> - <property name="State.stopped" value="0.0"/> - <property name="State.stopped-lazy" value="-0.01"/> - - <metric name="Availability" - template="${OBJECT_NAME}:State" - indicator="true"/> - - <metric name="Client Disconnect Count" - alias="ClientDisconnectCountTotal" - collectionType="trendsup"/> - - <metric name="Keepalive Count" - alias="KeepaliveCountTotal" - collectionType="trendsup"/> - - <metric name="Read Bytes" - alias="ReadBytesTotal" - collectionType="trendsup" - units="b" - indicator="true"/> - - <metric name="Write Bytes" - alias="WriteBytesTotal" - collectionType="trendsup" - units="b" - indicator="true"/> - - <metric name="Request Count" - alias="RequestCountTotal" - collectionType="trendsup" - indicator="true"/> - - <metric name="Request Time" - alias="RequestTimeTotal" - collectionType="trendsup" - units="ms"/> - - <metric name="Thread Active Count"/> - - <metric name="Thread Count"/> - - <metric name="Thread Idle Count"/> - - <metric name="Thread Keepalive Count"/> - - </service> - - <service name="Connection Pool"> - <property name="OBJECT_NAME" - value="resin:type=ConnectionPool,Host=*,WebApp=*,name=*"/> - <config> - <option name="Host" - description="Connection Pool Host"/> - <option name="WebApp" - description="Connection Pool WebApp"/> - <option name="name" - description="Connection Pool name"/> - </config> - - <properties> - <property name="MaxConnections" description="Max Connections"/> - <property name="MaxActiveTime" description="Max Active Time"/> - <property name="MaxCreateConnections" description="Max Create Connections"/> - <property name="MaxIdleTime" description="Max Idle Time"/> - <property name="MaxOverflowConnections" description="Max Overflow Connections"/> - <property name="MaxPoolTime" description="Max Pool Time"/> - </properties> - - <plugin type="autoinventory"/> - - <!-- No state attribute, use existance of MBean --> - <metric name="Availability" - indicator="true"/> - - <metric name="Connection Active Count" - indicator="true"/> - - <metric name="Connection Count" - indicator="true"/> - - <metric name="Connection Idle Count" - indicator="true"/> - - </service> - - <service name="Webapp"> - <property name="OBJECT_NAME" - value="resin:type=WebApp,Host=*,name=*"/> - - <!-- Availability mappings --> - <property name="State.active" value="1.0"/> - <property name="State.stopped" value="0.0"/> - <property name="State.stopped-lazy" value="-0.01"/> - - <config> - <option name="Host" - description="Host"/> - <option name="WebApp" - description="WebApp"/> - <option name="name" - description="name"/> - </config> - - <properties> - <property name="RedeployMode" description="Redeploy Mode"/> - <property name="StartupMode" description="Startup Mode"/> - </properties> - - <plugin type="autoinventory"/> - - <metric name="Availability" - template="${OBJECT_NAME}:State" - indicator="true"/> - - <metric name="Client Disconnect Count" - alias="ClientDisconnectCountTotal"/> - - <metric name="Request Count" - alias="RequestCountTotal" - collectionType="trendsup" - indicator="true"/> - - <metric name="Request Read Bytes" - alias="RequestReadBytesTotal" - collectionType="trendsup" - units="b" - indicator="true"/> - - <metric name="Request Time" - alias="RequestTimeTotal" - collectionType="trendsup" - units="ms"/> - - <metric name="Request Write Bytes" - alias="RequestWriteBytesTotal" - collectionType="trendsup" - units="b" - indicator="true"/> - - <plugin type="control"/> - - <actions include="start,stop,update,restart"/> - - </service> - - </server> - - <help name="Resin 3.x"> - <![CDATA[ - <p> - <h3>Configure Resin ${product.version} for Monitoring</h3> - </p> - - <p> - To enable monitoring of Resin servers and services the Resin server - must be run with Java 1.5, and have the remote JMX connector enabled. - To enable the connector 2 steps must be taken. - </p> - - <p> - <b>Configure JMX connector within the JDK</b> - </p> - <p> - Sun has <a href="http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html#PasswordAccessFiles"> - extensive documentation</a> on how to setup users and permissions for remote - monitoring and management. - </p> - - <p> - If you plan on controlling Resin resources through HQ, the user must have - <b>readwrite</b> access defined in the access file. - </p> - - <p> - <b>Enable JMX connector within Resin</b> - <p> - To enable monitoring and management of Resin, set this property when starting - the server: - </p> - - <p> - <code> - com.sun.management.jmxremote.port=portNum - </code> - </p> - - <p> - Where portNum is the port number through which you want to enable the JMX/RMI - connections. Within Resin's httpd.sh script there is an args parameter that - can be used to pass additional arguments to the JVM when starting up. For - example: - </p> - - <p> - <code> - args=-Dcom.sun.management.jmxremote.port=1099 - </code> - </p> - ]]> - </help> - -</plugin> |
|
From: <rm...@hy...> - 2007-03-29 04:28:40
|
Author: rmorgan Date: 2007-03-28 20:28:35 -0800 (Wed, 28 Mar 2007) New Revision: 3953 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3953 Modified: branches/HQ_3_0/plugins/xml/resin-plugin.xml Log: Upgrade Resin plugin for Resin 3.0.20+ [merge from trunk] Modified: branches/HQ_3_0/plugins/xml/resin-plugin.xml =================================================================== --- branches/HQ_3_0/plugins/xml/resin-plugin.xml 2007-03-29 04:18:07 UTC (rev 3952) +++ branches/HQ_3_0/plugins/xml/resin-plugin.xml 2007-03-29 04:28:35 UTC (rev 3953) @@ -7,10 +7,10 @@ Kit or the Hyperic Client Development Kit - this is merely considered normal use of the program, and does *not* fall under the heading of "derived work". - + Copyright (C) [2004, 2005, 2006], Hyperic, Inc. This file is part of HQ. - + HQ is free software; you can redistribute it and/or modify it under the terms version 2 of the GNU General Public License as published by the Free Software Foundation. This program is distributed @@ -18,7 +18,7 @@ even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 @@ -26,212 +26,289 @@ --> <plugin name="resin"> - <classpath> - <include name="pdk/lib/mx4j"/> - </classpath> + <classpath> + <include name="pdk/lib/mx4j"/> + </classpath> - <filter name="template" - value="${OBJECT_NAME}:${alias}"/> + <filter name="template" + value="${OBJECT_NAME}:${alias}"/> - <filter name="THREAD_OBJ" - value="resin:type=ThreadPool"/> + <!-- Generic 3.x type is known to work with 3.0.20, 3.0.21, and 3.0.22. --> + <server name="Resin" + version="3.x" + description="Resin 3.x"> - <metrics name="port"> - <metric name="Availability" - template="${OBJECT_NAME}:Active" - indicator="true"/> + <property name="OBJECT_NAME" + value="resin:type=Server"/> - <metric name="Total Connection Count" - collectionType="trendsup" - indicator="true"/> + <property name="PROC_MAIN_CLASS" + value="com.caucho.server.resin.Resin"/> - <metric name="Active Connection Count" - indicator="true"/> + <property name="PROC_HOME_PROPERTY" + value="resin.home"/> - <metric name="Thread Count" - collectionType="trendsup" - indicator="true"/> + <!-- Availability mappings --> + <property name="State.active" value="1.0"/> + <property name="State.stopped" value="0.0"/> + <property name="State.stopped-lazy" value="-0.01"/> - <metric name="Active Thread Count" - indicator="true"/> + <plugin type="autoinventory" + class="org.hyperic.hq.product.jmx.MxServerDetector"/> - <metric name="Idle Thread Count"/> - </metrics> + <plugin type="control" + class="org.hyperic.hq.product.jmx.MxControlPlugin"/> - <!-- Only known to work with 3.0.12. --> - <server name="Resin" - version="3.x" - description="Resin 3.x"> + <plugin type="measurement" + class="org.hyperic.hq.product.jmx.MxMeasurementPlugin"/> - <property name="OBJECT_NAME" - value="resin:type=ResinServer"/> + <config> + <option name="jmx.url" + description="JMX URL to MBeanServer" + default="service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi"/> - <property name="PROC_HOME_PROPERTY" - value="resin.home"/> + <option name="jmx.username" + description="JMX username" + optional="true" + default="system"/> - <!-- Availability mappings --> - <property name="State.active" value="1.0"/> - <property name="State.stopped" value="0.0"/> - <property name="State.stopped-lazy" value="-0.01"/> + <option name="jmx.password" + description="JMX password" + optional="true" + default="manager" + type="secret"/> + </config> - <plugin type="autoinventory" - class="org.hyperic.hq.product.jmx.MxServerDetector"/> + <properties> + <property name="RedeployMode" description="Redeploy Mode"/> + <property name="Id" description="Server Id"/> + <property name="SelectManagerEnabled" description="Select Manager Enabled"/> + <property name="StartupMode" description="Startup Mode"/> + </properties> - <plugin type="control" - class="org.hyperic.hq.product.jmx.MxControlPlugin"/> + <actions include="stop,start,update,restart"/> - <plugin type="measurement" - class="org.hyperic.hq.product.jmx.MxMeasurementPlugin"/> + <metric name="Availability" + template="${OBJECT_NAME}:State" + indicator="true"/> - <config> - <option name="jmx.url" - description="JMX URL to MBeanServer" - default="service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi"/> + <metric name="Invocation Cache Hit Count" + alias="InvocationCacheHitCountTotal" + collectionType="trendsup"/> - <option name="jmx.username" - description="JMX username" - optional="true" - default="system"/> + <metric name="Invocation Cache Miss Count" + alias="InvocationCacheMissCountTotal" + collectionType="trendsup"/> - <option name="jmx.password" - description="JMX password" - optional="true" - default="manager" - type="secret"/> - </config> + <metric name="Keepalive Count" + alias="KeepaliveCountTotal" + collectionType="trendsup"/> - <properties> - <property name="ResinHome" description="Resin Home"/> - <property name="ServerRoot" description="Server Root"/> - <property name="ServerId" description="Server Id"/>> - </properties> + <metric name="Request Count" + alias="RequestCountTotal" + collectionType="trendsup" + indicator="true"/> - <actions include="restart"/> + <metric name="Request Read Bytes" + alias="RequestReadBytesTotal" + collectionType="trendsup" + units="b" + indicator="true"/> - <metric name="Availability" - template="${OBJECT_NAME}:State" - indicator="true"/> + <metric name="Request Time" + alias="RequestTimeTotal" + collectionType="trendsup" + units="ms"/> - <metric name="Thread Count" - template="${THREAD_OBJ}:${alias}" - indicator="true"/> + <metric name="Request Write Bytes" + alias="RequestWriteBytesTotal" + collectionType="trendsup" + units="b" + indicator="true"/> - <metric name="Thread Max" - template="${THREAD_OBJ}:${alias}" - type="static"/> + <metric name="Runtime Memory" + units="b"/> - <metric name="Spare Thread Min" - template="${THREAD_OBJ}:${alias}"/> + <metric name="Runtime Memory Free" + units="b"/> - <metric name="Idle Thread Count" - template="${THREAD_OBJ}:${alias}"/> + <metric name="Thread Active" + alias="ThreadActiveCount" + indicator="true"/> - <metric name="Active Thread Count" - template="${THREAD_OBJ}:${alias}" - indicator="true"/> + <metric name="Thread Keepalive" + alias="ThreadKeepaliveCount"/> - <service name="Multiple Host Port"> - <property name="OBJECT_NAME" - value="resin:type=Port,Server=*,port=*"/> - <config> - <option name="Server" - description="Server name"/> - <option name="port" - description="Port"/> - </config> + <service name="Port"> + <property name="OBJECT_NAME" + value="resin:type=Port,name=*"/> + <config> + <option name="name" + description="Port name"/> + </config> - <properties> - <property name="ProtocolName" description="ProtocolName"/> - </properties> + <properties> + <property name="Address" description="Address"/> + <property name="ProtocolName" description="Protocol"/> + <property name="ConnectionMax" description="Max Connections"/> + <property name="KeepAliveMax" description="Max Keepalives"/> + <property name="Port" description="Port"/> + <property name="SSL" description="SSL Enabled"/> + <property name="SelectKeepaliveCount" + description="Select Keepalive"/> + </properties> - <plugin type="autoinventory"/> + <plugin type="autoinventory"/> - <metrics include="port"/> - </service> + <!-- Availability mappings --> + <property name="State.active" value="1.0"/> + <property name="State.stopped" value="0.0"/> + <property name="State.stopped-lazy" value="-0.01"/> - <service name="Single Host Port"> - <property name="OBJECT_NAME" - value="resin:type=Port,Server=*,port=*,host=*"/> - <config> - <option name="Server" - description="Server name"/> - <option name="port" - description="Port"/> - <option name="host" - description="Host"/> - </config> + <metric name="Availability" + template="${OBJECT_NAME}:State" + indicator="true"/> - <properties> - <property name="ProtocolName" description="ProtocolName"/> - </properties> + <metric name="Client Disconnect Count" + alias="ClientDisconnectCountTotal" + collectionType="trendsup"/> - <plugin type="autoinventory"/> + <metric name="Keepalive Count" + alias="KeepaliveCountTotal" + collectionType="trendsup"/> - <metrics include="port"/> - </service> + <metric name="Read Bytes" + alias="ReadBytesTotal" + collectionType="trendsup" + units="b" + indicator="true"/> - <service name="Connection Pool"> - <property name="OBJECT_NAME" - value="resin:type=ConnectionPool,name=*"/> - <config> - <option name="name" - description="Connection Pool name"/> - </config> + <metric name="Write Bytes" + alias="WriteBytesTotal" + collectionType="trendsup" + units="b" + indicator="true"/> - <plugin type="autoinventory"/> + <metric name="Request Count" + alias="RequestCountTotal" + collectionType="trendsup" + indicator="true"/> - <!-- No state attribute --> - <metric name="Availability" - indicator="true"/> + <metric name="Request Time" + alias="RequestTimeTotal" + collectionType="trendsup" + units="ms"/> - <metric name="Connection Count" - collectionType="trendsup" - indicator="true"/> + <metric name="Thread Active Count"/> - <metric name="Active Connection Count" - indicator="true"/> + <metric name="Thread Count"/> - <metric name="Idle Connection Count"/> + <metric name="Thread Idle Count"/> - </service> + <metric name="Thread Keepalive Count"/> - <service name="Webapp"> - <property name="OBJECT_NAME" - value="resin:type=WebApp,Server=*,Host=*,name=*"/> + </service> - <!-- Availability mappings --> - <property name="State.active" value="1.0"/> - <property name="State.stopped-lazy" value="-0.01"/> + <service name="Connection Pool"> + <property name="OBJECT_NAME" + value="resin:type=ConnectionPool,Host=*,WebApp=*,name=*"/> + <config> + <option name="Host" + description="Connection Pool Host"/> + <option name="WebApp" + description="Connection Pool WebApp"/> + <option name="name" + description="Connection Pool name"/> + </config> - <config> - <option name="Server" - description="Server name"/> - <option name="Host" - description="Host"/> - <option name="name" - description="name"/> - </config> + <properties> + <property name="MaxConnections" description="Max Connections"/> + <property name="MaxActiveTime" description="Max Active Time"/> + <property name="MaxCreateConnections" description="Max Create Connections"/> + <property name="MaxIdleTime" description="Max Idle Time"/> + <property name="MaxOverflowConnections" description="Max Overflow Connections"/> + <property name="MaxPoolTime" description="Max Pool Time"/> + </properties> - <plugin type="autoinventory"/> + <plugin type="autoinventory"/> - <metric name="Availability" - indicator="true"/> + <!-- No state attribute, use existance of MBean --> + <metric name="Availability" + indicator="true"/> - <metric name="Active Session Count" - indicator="true"/> + <metric name="Connection Active Count" + indicator="true"/> - <plugin type="control"/> + <metric name="Connection Count" + indicator="true"/> - <actions include="start,stop,restart"/> + <metric name="Connection Idle Count" + indicator="true"/> - </service> + </service> - <!-- Temporary due to HHQ-708 --> - <service name="Port"/> + <service name="Webapp"> + <property name="OBJECT_NAME" + value="resin:type=WebApp,Host=*,name=*"/> - </server> + <!-- Availability mappings --> + <property name="State.active" value="1.0"/> + <property name="State.stopped" value="0.0"/> + <property name="State.stopped-lazy" value="-0.01"/> - <help name="Resin 3.x"> + <config> + <option name="Host" + description="Host"/> + <option name="WebApp" + description="WebApp"/> + <option name="name" + description="name"/> + </config> + + <properties> + <property name="RedeployMode" description="Redeploy Mode"/> + <property name="StartupMode" description="Startup Mode"/> + </properties> + + <plugin type="autoinventory"/> + + <metric name="Availability" + template="${OBJECT_NAME}:State" + indicator="true"/> + + <metric name="Client Disconnect Count" + alias="ClientDisconnectCountTotal"/> + + <metric name="Request Count" + alias="RequestCountTotal" + collectionType="trendsup" + indicator="true"/> + + <metric name="Request Read Bytes" + alias="RequestReadBytesTotal" + collectionType="trendsup" + units="b" + indicator="true"/> + + <metric name="Request Time" + alias="RequestTimeTotal" + collectionType="trendsup" + units="ms"/> + + <metric name="Request Write Bytes" + alias="RequestWriteBytesTotal" + collectionType="trendsup" + units="b" + indicator="true"/> + + <plugin type="control"/> + + <actions include="start,stop,update,restart"/> + + </service> + + </server> + + <help name="Resin 3.x"> <![CDATA[ <p> <h3>Configure Resin ${product.version} for Monitoring</h3> @@ -263,19 +340,19 @@ To enable monitoring and management of Resin, set this property when starting the server: </p> - + <p> <code> com.sun.management.jmxremote.port=portNum </code> </p> - + <p> Where portNum is the port number through which you want to enable the JMX/RMI - connections. Within Resin's httpd.sh script there is an args parameter that + connections. Within Resin's httpd.sh script there is an args parameter that can be used to pass additional arguments to the JVM when starting up. For example: - </p> + </p> <p> <code> @@ -283,6 +360,6 @@ </code> </p> ]]> - </help> + </help> </plugin> |
|
From: <rm...@hy...> - 2007-03-29 04:18:09
|
Author: rmorgan Date: 2007-03-28 20:18:07 -0800 (Wed, 28 Mar 2007) New Revision: 3952 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3952 Removed: trunk/plugins/examples/resin-plugin.xml Log: No longer needed. Deleted: trunk/plugins/examples/resin-plugin.xml =================================================================== --- trunk/plugins/examples/resin-plugin.xml 2007-03-29 04:17:35 UTC (rev 3951) +++ trunk/plugins/examples/resin-plugin.xml 2007-03-29 04:18:07 UTC (rev 3952) @@ -1,365 +0,0 @@ -<?xml version="1.0"?> - -<!-- - NOTE: This copyright does *not* cover user programs that use HQ - program services by normal system calls through the application - program interfaces provided as part of the Hyperic Plug-in Development - Kit or the Hyperic Client Development Kit - this is merely considered - normal use of the program, and does *not* fall under the heading of - "derived work". - - Copyright (C) [2004, 2005, 2006], Hyperic, Inc. - This file is part of HQ. - - HQ is free software; you can redistribute it and/or modify - it under the terms version 2 of the GNU General Public License as - published by the Free Software Foundation. This program is distributed - in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - even the implied warranty of MERCHANTABILITY or FITNESS FOR A - PARTICULAR PURPOSE. See the GNU General Public License for more - details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 - USA. - --> - -<plugin name="resin"> - <classpath> - <include name="pdk/lib/mx4j"/> - </classpath> - - <filter name="template" - value="${OBJECT_NAME}:${alias}"/> - - <!-- Generic 3.x type is known to work with 3.0.20, 3.0.21, and 3.0.22. --> - <server name="Resin" - version="3.x" - description="Resin 3.x"> - - <property name="OBJECT_NAME" - value="resin:type=Server"/> - - <property name="PROC_MAIN_CLASS" - value="com.caucho.server.resin.Resin"/> - - <property name="PROC_HOME_PROPERTY" - value="resin.home"/> - - <!-- Availability mappings --> - <property name="State.active" value="1.0"/> - <property name="State.stopped" value="0.0"/> - <property name="State.stopped-lazy" value="-0.01"/> - - <plugin type="autoinventory" - class="org.hyperic.hq.product.jmx.MxServerDetector"/> - - <plugin type="control" - class="org.hyperic.hq.product.jmx.MxControlPlugin"/> - - <plugin type="measurement" - class="org.hyperic.hq.product.jmx.MxMeasurementPlugin"/> - - <config> - <option name="jmx.url" - description="JMX URL to MBeanServer" - default="service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi"/> - - <option name="jmx.username" - description="JMX username" - optional="true" - default="system"/> - - <option name="jmx.password" - description="JMX password" - optional="true" - default="manager" - type="secret"/> - </config> - - <properties> - <property name="RedeployMode" description="Redeploy Mode"/> - <property name="Id" description="Server Id"/> - <property name="SelectManagerEnabled" description="Select Manager Enabled"/> - <property name="StartupMode" description="Startup Mode"/> - </properties> - - <actions include="stop,start,update,restart"/> - - <metric name="Availability" - template="${OBJECT_NAME}:State" - indicator="true"/> - - <metric name="Invocation Cache Hit Count" - alias="InvocationCacheHitCountTotal" - collectionType="trendsup"/> - - <metric name="Invocation Cache Miss Count" - alias="InvocationCacheMissCountTotal" - collectionType="trendsup"/> - - <metric name="Keepalive Count" - alias="KeepaliveCountTotal" - collectionType="trendsup"/> - - <metric name="Request Count" - alias="RequestCountTotal" - collectionType="trendsup" - indicator="true"/> - - <metric name="Request Read Bytes" - alias="RequestReadBytesTotal" - collectionType="trendsup" - units="b" - indicator="true"/> - - <metric name="Request Time" - alias="RequestTimeTotal" - collectionType="trendsup" - units="ms"/> - - <metric name="Request Write Bytes" - alias="RequestWriteBytesTotal" - collectionType="trendsup" - units="b" - indicator="true"/> - - <metric name="Runtime Memory" - units="b"/> - - <metric name="Runtime Memory Free" - units="b"/> - - <metric name="Thread Active" - alias="ThreadActiveCount" - indicator="true"/> - - <metric name="Thread Keepalive" - alias="ThreadKeepaliveCount"/> - - <service name="Port"> - <property name="OBJECT_NAME" - value="resin:type=Port,name=*"/> - <config> - <option name="name" - description="Port name"/> - </config> - - <properties> - <property name="Address" description="Address"/> - <property name="ProtocolName" description="Protocol"/> - <property name="ConnectionMax" description="Max Connections"/> - <property name="KeepAliveMax" description="Max Keepalives"/> - <property name="Port" description="Port"/> - <property name="SSL" description="SSL Enabled"/> - <property name="SelectKeepaliveCount" - description="Select Keepalive"/> - </properties> - - <plugin type="autoinventory"/> - - <!-- Availability mappings --> - <property name="State.active" value="1.0"/> - <property name="State.stopped" value="0.0"/> - <property name="State.stopped-lazy" value="-0.01"/> - - <metric name="Availability" - template="${OBJECT_NAME}:State" - indicator="true"/> - - <metric name="Client Disconnect Count" - alias="ClientDisconnectCountTotal" - collectionType="trendsup"/> - - <metric name="Keepalive Count" - alias="KeepaliveCountTotal" - collectionType="trendsup"/> - - <metric name="Read Bytes" - alias="ReadBytesTotal" - collectionType="trendsup" - units="b" - indicator="true"/> - - <metric name="Write Bytes" - alias="WriteBytesTotal" - collectionType="trendsup" - units="b" - indicator="true"/> - - <metric name="Request Count" - alias="RequestCountTotal" - collectionType="trendsup" - indicator="true"/> - - <metric name="Request Time" - alias="RequestTimeTotal" - collectionType="trendsup" - units="ms"/> - - <metric name="Thread Active Count"/> - - <metric name="Thread Count"/> - - <metric name="Thread Idle Count"/> - - <metric name="Thread Keepalive Count"/> - - </service> - - <service name="Connection Pool"> - <property name="OBJECT_NAME" - value="resin:type=ConnectionPool,Host=*,WebApp=*,name=*"/> - <config> - <option name="Host" - description="Connection Pool Host"/> - <option name="WebApp" - description="Connection Pool WebApp"/> - <option name="name" - description="Connection Pool name"/> - </config> - - <properties> - <property name="MaxConnections" description="Max Connections"/> - <property name="MaxActiveTime" description="Max Active Time"/> - <property name="MaxCreateConnections" description="Max Create Connections"/> - <property name="MaxIdleTime" description="Max Idle Time"/> - <property name="MaxOverflowConnections" description="Max Overflow Connections"/> - <property name="MaxPoolTime" description="Max Pool Time"/> - </properties> - - <plugin type="autoinventory"/> - - <!-- No state attribute, use existance of MBean --> - <metric name="Availability" - indicator="true"/> - - <metric name="Connection Active Count" - indicator="true"/> - - <metric name="Connection Count" - indicator="true"/> - - <metric name="Connection Idle Count" - indicator="true"/> - - </service> - - <service name="Webapp"> - <property name="OBJECT_NAME" - value="resin:type=WebApp,Host=*,name=*"/> - - <!-- Availability mappings --> - <property name="State.active" value="1.0"/> - <property name="State.stopped" value="0.0"/> - <property name="State.stopped-lazy" value="-0.01"/> - - <config> - <option name="Host" - description="Host"/> - <option name="WebApp" - description="WebApp"/> - <option name="name" - description="name"/> - </config> - - <properties> - <property name="RedeployMode" description="Redeploy Mode"/> - <property name="StartupMode" description="Startup Mode"/> - </properties> - - <plugin type="autoinventory"/> - - <metric name="Availability" - template="${OBJECT_NAME}:State" - indicator="true"/> - - <metric name="Client Disconnect Count" - alias="ClientDisconnectCountTotal"/> - - <metric name="Request Count" - alias="RequestCountTotal" - collectionType="trendsup" - indicator="true"/> - - <metric name="Request Read Bytes" - alias="RequestReadBytesTotal" - collectionType="trendsup" - units="b" - indicator="true"/> - - <metric name="Request Time" - alias="RequestTimeTotal" - collectionType="trendsup" - units="ms"/> - - <metric name="Request Write Bytes" - alias="RequestWriteBytesTotal" - collectionType="trendsup" - units="b" - indicator="true"/> - - <plugin type="control"/> - - <actions include="start,stop,update,restart"/> - - </service> - - </server> - - <help name="Resin 3.x"> - <![CDATA[ - <p> - <h3>Configure Resin ${product.version} for Monitoring</h3> - </p> - - <p> - To enable monitoring of Resin servers and services the Resin server - must be run with Java 1.5, and have the remote JMX connector enabled. - To enable the connector 2 steps must be taken. - </p> - - <p> - <b>Configure JMX connector within the JDK</b> - </p> - <p> - Sun has <a href="http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html#PasswordAccessFiles"> - extensive documentation</a> on how to setup users and permissions for remote - monitoring and management. - </p> - - <p> - If you plan on controlling Resin resources through HQ, the user must have - <b>readwrite</b> access defined in the access file. - </p> - - <p> - <b>Enable JMX connector within Resin</b> - <p> - To enable monitoring and management of Resin, set this property when starting - the server: - </p> - - <p> - <code> - com.sun.management.jmxremote.port=portNum - </code> - </p> - - <p> - Where portNum is the port number through which you want to enable the JMX/RMI - connections. Within Resin's httpd.sh script there is an args parameter that - can be used to pass additional arguments to the JVM when starting up. For - example: - </p> - - <p> - <code> - args=-Dcom.sun.management.jmxremote.port=1099 - </code> - </p> - ]]> - </help> - -</plugin> |
|
From: Murray B. <hq-...@hy...> - 2007-03-29 04:17:41
|
I tried explicitly setting the return code but it still shows as unavailable. However a scripting guru I am not. The script I'm running is:
#!/bin/sh
hostname=`hostname`
for w in https-www-test
do
pids=`ps -ef | grep $w | grep webservd | grep -v wdog | awk '{print $2}'`
net=0
for pid in $pids
do
cd /proc/$pid/fd
count=`ls| wc -l | sed 's/ //g'`
net=`expr $net + $count`
done
echo "$net"
done
exit 0
When I run it manually it looks like:
ecsydtst03$ ./filedescriptors.sh
359
ecsydtst03$
There are some superfluous bits in here because it has been roughly cut down for the purposes of testing.
Thanks . . . Murray
|
|
From: <rm...@hy...> - 2007-03-29 04:17:37
|
Author: rmorgan Date: 2007-03-28 20:17:35 -0800 (Wed, 28 Mar 2007) New Revision: 3951 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3951 Modified: trunk/plugins/xml/resin-plugin.xml Log: Upgrade Resin plugin for Resin 3.0.20+ Modified: trunk/plugins/xml/resin-plugin.xml =================================================================== --- trunk/plugins/xml/resin-plugin.xml 2007-03-29 04:12:37 UTC (rev 3950) +++ trunk/plugins/xml/resin-plugin.xml 2007-03-29 04:17:35 UTC (rev 3951) @@ -7,10 +7,10 @@ Kit or the Hyperic Client Development Kit - this is merely considered normal use of the program, and does *not* fall under the heading of "derived work". - + Copyright (C) [2004, 2005, 2006], Hyperic, Inc. This file is part of HQ. - + HQ is free software; you can redistribute it and/or modify it under the terms version 2 of the GNU General Public License as published by the Free Software Foundation. This program is distributed @@ -18,7 +18,7 @@ even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 @@ -26,215 +26,289 @@ --> <plugin name="resin"> - <classpath> - <include name="pdk/lib/mx4j"/> - </classpath> + <classpath> + <include name="pdk/lib/mx4j"/> + </classpath> - <filter name="template" - value="${OBJECT_NAME}:${alias}"/> + <filter name="template" + value="${OBJECT_NAME}:${alias}"/> - <filter name="THREAD_OBJ" - value="resin:type=ThreadPool"/> + <!-- Generic 3.x type is known to work with 3.0.20, 3.0.21, and 3.0.22. --> + <server name="Resin" + version="3.x" + description="Resin 3.x"> - <metrics name="port"> - <metric name="Availability" - template="${OBJECT_NAME}:Active" - indicator="true"/> + <property name="OBJECT_NAME" + value="resin:type=Server"/> - <metric name="Total Connection Count" - collectionType="trendsup" - indicator="true"/> + <property name="PROC_MAIN_CLASS" + value="com.caucho.server.resin.Resin"/> - <metric name="Active Connection Count" - indicator="true"/> + <property name="PROC_HOME_PROPERTY" + value="resin.home"/> - <metric name="Thread Count" - collectionType="trendsup" - indicator="true"/> + <!-- Availability mappings --> + <property name="State.active" value="1.0"/> + <property name="State.stopped" value="0.0"/> + <property name="State.stopped-lazy" value="-0.01"/> - <metric name="Active Thread Count" - indicator="true"/> + <plugin type="autoinventory" + class="org.hyperic.hq.product.jmx.MxServerDetector"/> - <metric name="Idle Thread Count"/> - </metrics> + <plugin type="control" + class="org.hyperic.hq.product.jmx.MxControlPlugin"/> - <!-- Only known to work with 3.0.12. --> - <server name="Resin" - version="3.x" - description="Resin 3.x"> + <plugin type="measurement" + class="org.hyperic.hq.product.jmx.MxMeasurementPlugin"/> - <property name="OBJECT_NAME" - value="resin:type=ResinServer"/> + <config> + <option name="jmx.url" + description="JMX URL to MBeanServer" + default="service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi"/> - <property name="PROC_HOME_PROPERTY" - value="resin.home"/> + <option name="jmx.username" + description="JMX username" + optional="true" + default="system"/> - <!-- Availability mappings --> - <property name="State.active" value="1.0"/> - <property name="State.stopped" value="0.0"/> - <property name="State.stopped-lazy" value="-0.01"/> + <option name="jmx.password" + description="JMX password" + optional="true" + default="manager" + type="secret"/> + </config> - <plugin type="autoinventory" - class="org.hyperic.hq.product.jmx.MxServerDetector"/> + <properties> + <property name="RedeployMode" description="Redeploy Mode"/> + <property name="Id" description="Server Id"/> + <property name="SelectManagerEnabled" description="Select Manager Enabled"/> + <property name="StartupMode" description="Startup Mode"/> + </properties> - <plugin type="control" - class="org.hyperic.hq.product.jmx.MxControlPlugin"/> + <actions include="stop,start,update,restart"/> - <plugin type="measurement" - class="org.hyperic.hq.product.jmx.MxMeasurementPlugin"/> + <metric name="Availability" + template="${OBJECT_NAME}:State" + indicator="true"/> - <plugin type="livedata" - class="org.hyperic.hq.product.jmx.MxLiveDataPlugin"/> + <metric name="Invocation Cache Hit Count" + alias="InvocationCacheHitCountTotal" + collectionType="trendsup"/> - <config> - <option name="jmx.url" - description="JMX URL to MBeanServer" - default="service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi"/> + <metric name="Invocation Cache Miss Count" + alias="InvocationCacheMissCountTotal" + collectionType="trendsup"/> - <option name="jmx.username" - description="JMX username" - optional="true" - default="system"/> + <metric name="Keepalive Count" + alias="KeepaliveCountTotal" + collectionType="trendsup"/> - <option name="jmx.password" - description="JMX password" - optional="true" - default="manager" - type="secret"/> - </config> + <metric name="Request Count" + alias="RequestCountTotal" + collectionType="trendsup" + indicator="true"/> - <properties> - <property name="ResinHome" description="Resin Home"/> - <property name="ServerRoot" description="Server Root"/> - <property name="ServerId" description="Server Id"/>> - </properties> + <metric name="Request Read Bytes" + alias="RequestReadBytesTotal" + collectionType="trendsup" + units="b" + indicator="true"/> - <actions include="restart"/> + <metric name="Request Time" + alias="RequestTimeTotal" + collectionType="trendsup" + units="ms"/> - <metric name="Availability" - template="${OBJECT_NAME}:State" - indicator="true"/> + <metric name="Request Write Bytes" + alias="RequestWriteBytesTotal" + collectionType="trendsup" + units="b" + indicator="true"/> - <metric name="Thread Count" - template="${THREAD_OBJ}:${alias}" - indicator="true"/> + <metric name="Runtime Memory" + units="b"/> - <metric name="Thread Max" - template="${THREAD_OBJ}:${alias}" - type="static"/> + <metric name="Runtime Memory Free" + units="b"/> - <metric name="Spare Thread Min" - template="${THREAD_OBJ}:${alias}"/> + <metric name="Thread Active" + alias="ThreadActiveCount" + indicator="true"/> - <metric name="Idle Thread Count" - template="${THREAD_OBJ}:${alias}"/> + <metric name="Thread Keepalive" + alias="ThreadKeepaliveCount"/> - <metric name="Active Thread Count" - template="${THREAD_OBJ}:${alias}" - indicator="true"/> + <service name="Port"> + <property name="OBJECT_NAME" + value="resin:type=Port,name=*"/> + <config> + <option name="name" + description="Port name"/> + </config> - <service name="Multiple Host Port"> - <property name="OBJECT_NAME" - value="resin:type=Port,Server=*,port=*"/> - <config> - <option name="Server" - description="Server name"/> - <option name="port" - description="Port"/> - </config> + <properties> + <property name="Address" description="Address"/> + <property name="ProtocolName" description="Protocol"/> + <property name="ConnectionMax" description="Max Connections"/> + <property name="KeepAliveMax" description="Max Keepalives"/> + <property name="Port" description="Port"/> + <property name="SSL" description="SSL Enabled"/> + <property name="SelectKeepaliveCount" + description="Select Keepalive"/> + </properties> - <properties> - <property name="ProtocolName" description="ProtocolName"/> - </properties> + <plugin type="autoinventory"/> - <plugin type="autoinventory"/> + <!-- Availability mappings --> + <property name="State.active" value="1.0"/> + <property name="State.stopped" value="0.0"/> + <property name="State.stopped-lazy" value="-0.01"/> - <metrics include="port"/> - </service> + <metric name="Availability" + template="${OBJECT_NAME}:State" + indicator="true"/> - <service name="Single Host Port"> - <property name="OBJECT_NAME" - value="resin:type=Port,Server=*,port=*,host=*"/> - <config> - <option name="Server" - description="Server name"/> - <option name="port" - description="Port"/> - <option name="host" - description="Host"/> - </config> + <metric name="Client Disconnect Count" + alias="ClientDisconnectCountTotal" + collectionType="trendsup"/> - <properties> - <property name="ProtocolName" description="ProtocolName"/> - </properties> + <metric name="Keepalive Count" + alias="KeepaliveCountTotal" + collectionType="trendsup"/> - <plugin type="autoinventory"/> + <metric name="Read Bytes" + alias="ReadBytesTotal" + collectionType="trendsup" + units="b" + indicator="true"/> - <metrics include="port"/> - </service> + <metric name="Write Bytes" + alias="WriteBytesTotal" + collectionType="trendsup" + units="b" + indicator="true"/> - <service name="Connection Pool"> - <property name="OBJECT_NAME" - value="resin:type=ConnectionPool,name=*"/> - <config> - <option name="name" - description="Connection Pool name"/> - </config> + <metric name="Request Count" + alias="RequestCountTotal" + collectionType="trendsup" + indicator="true"/> - <plugin type="autoinventory"/> + <metric name="Request Time" + alias="RequestTimeTotal" + collectionType="trendsup" + units="ms"/> - <!-- No state attribute --> - <metric name="Availability" - indicator="true"/> + <metric name="Thread Active Count"/> - <metric name="Connection Count" - collectionType="trendsup" - indicator="true"/> + <metric name="Thread Count"/> - <metric name="Active Connection Count" - indicator="true"/> + <metric name="Thread Idle Count"/> - <metric name="Idle Connection Count"/> + <metric name="Thread Keepalive Count"/> - </service> + </service> - <service name="Webapp"> - <property name="OBJECT_NAME" - value="resin:type=WebApp,Server=*,Host=*,name=*"/> + <service name="Connection Pool"> + <property name="OBJECT_NAME" + value="resin:type=ConnectionPool,Host=*,WebApp=*,name=*"/> + <config> + <option name="Host" + description="Connection Pool Host"/> + <option name="WebApp" + description="Connection Pool WebApp"/> + <option name="name" + description="Connection Pool name"/> + </config> - <!-- Availability mappings --> - <property name="State.active" value="1.0"/> - <property name="State.stopped-lazy" value="-0.01"/> + <properties> + <property name="MaxConnections" description="Max Connections"/> + <property name="MaxActiveTime" description="Max Active Time"/> + <property name="MaxCreateConnections" description="Max Create Connections"/> + <property name="MaxIdleTime" description="Max Idle Time"/> + <property name="MaxOverflowConnections" description="Max Overflow Connections"/> + <property name="MaxPoolTime" description="Max Pool Time"/> + </properties> - <config> - <option name="Server" - description="Server name"/> - <option name="Host" - description="Host"/> - <option name="name" - description="name"/> - </config> + <plugin type="autoinventory"/> - <plugin type="autoinventory"/> + <!-- No state attribute, use existance of MBean --> + <metric name="Availability" + indicator="true"/> - <metric name="Availability" - indicator="true"/> + <metric name="Connection Active Count" + indicator="true"/> - <metric name="Active Session Count" - indicator="true"/> + <metric name="Connection Count" + indicator="true"/> - <plugin type="control"/> + <metric name="Connection Idle Count" + indicator="true"/> - <actions include="start,stop,restart"/> + </service> - </service> + <service name="Webapp"> + <property name="OBJECT_NAME" + value="resin:type=WebApp,Host=*,name=*"/> - <!-- Temporary due to HHQ-708 --> - <service name="Port"/> + <!-- Availability mappings --> + <property name="State.active" value="1.0"/> + <property name="State.stopped" value="0.0"/> + <property name="State.stopped-lazy" value="-0.01"/> - </server> + <config> + <option name="Host" + description="Host"/> + <option name="WebApp" + description="WebApp"/> + <option name="name" + description="name"/> + </config> - <help name="Resin 3.x"> + <properties> + <property name="RedeployMode" description="Redeploy Mode"/> + <property name="StartupMode" description="Startup Mode"/> + </properties> + + <plugin type="autoinventory"/> + + <metric name="Availability" + template="${OBJECT_NAME}:State" + indicator="true"/> + + <metric name="Client Disconnect Count" + alias="ClientDisconnectCountTotal"/> + + <metric name="Request Count" + alias="RequestCountTotal" + collectionType="trendsup" + indicator="true"/> + + <metric name="Request Read Bytes" + alias="RequestReadBytesTotal" + collectionType="trendsup" + units="b" + indicator="true"/> + + <metric name="Request Time" + alias="RequestTimeTotal" + collectionType="trendsup" + units="ms"/> + + <metric name="Request Write Bytes" + alias="RequestWriteBytesTotal" + collectionType="trendsup" + units="b" + indicator="true"/> + + <plugin type="control"/> + + <actions include="start,stop,update,restart"/> + + </service> + + </server> + + <help name="Resin 3.x"> <![CDATA[ <p> <h3>Configure Resin ${product.version} for Monitoring</h3> @@ -266,19 +340,19 @@ To enable monitoring and management of Resin, set this property when starting the server: </p> - + <p> <code> com.sun.management.jmxremote.port=portNum </code> </p> - + <p> Where portNum is the port number through which you want to enable the JMX/RMI - connections. Within Resin's httpd.sh script there is an args parameter that + connections. Within Resin's httpd.sh script there is an args parameter that can be used to pass additional arguments to the JVM when starting up. For example: - </p> + </p> <p> <code> @@ -286,6 +360,6 @@ </code> </p> ]]> - </help> + </help> </plugin> |
|
From: <rm...@hy...> - 2007-03-29 04:12:40
|
Author: rmorgan Date: 2007-03-28 20:12:37 -0800 (Wed, 28 Mar 2007) New Revision: 3950 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3950 Modified: trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java Log: Allow arguments to JMX invoke for livedata. Modified: trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java =================================================================== --- trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java 2007-03-29 00:01:49 UTC (rev 3949) +++ trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java 2007-03-29 04:12:37 UTC (rev 3950) @@ -30,16 +30,16 @@ import org.hyperic.util.config.ConfigResponse; import org.hyperic.util.config.ConfigSchema; import org.hyperic.util.config.StringConfigOption; +import org.hyperic.util.StringUtil; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import javax.management.MBeanServerConnection; -import javax.management.ObjectName; import javax.management.openmbean.CompositeData; import java.util.Properties; import java.util.Map; import java.util.Iterator; import java.util.HashMap; +import java.util.List; public class MxLiveDataPlugin extends LiveDataPlugin { @@ -48,6 +48,7 @@ private static final String PROP_OBJNAME = "ObjectName"; private static final String PROP_METHOD = "Method"; private static final String PROP_ATTRIBUTE = "Attribute"; + private static final String PROP_ARGS = "Arguments"; private static final String CMD_GET = "get"; private static final String CMD_INVOKE = "invoke"; @@ -61,28 +62,33 @@ throws PluginException { Properties props = config.toProperties(); - _log.info("Using properties: " + props); + _log.debug("Using properties: " + props); try { - MBeanServerConnection mBeanServer = MxUtil.getMBeanServer(props); - ObjectName oName = new ObjectName(props.getProperty(PROP_OBJNAME)); + String oName = props.getProperty(PROP_OBJNAME); Object res; if (command.equals(CMD_INVOKE)) { String method = props.getProperty(PROP_METHOD); if (method == null) { - throw new PluginException("No method givin."); + throw new PluginException("No method given."); } - res = mBeanServer.invoke(oName, method, new Object[0], - new String[0]); + + String argsStr = props.getProperty(PROP_ARGS, ""); + List args = StringUtil.explode(argsStr, ","); + _log.debug("Using arguments:" + args); + + res = MxUtil.invoke(props, oName, method, + args.toArray(new String[0]), new String[0]); } else if (command.equals(CMD_GET)) { String attribute = props.getProperty(PROP_ATTRIBUTE); if (attribute == null) { throw new PluginException("No attribute given"); } - res = mBeanServer.getAttribute(oName, attribute); + + res = MxUtil.getValue(props, oName, attribute); } else { - throw new PluginException("Unkown command " + command); + throw new PluginException("Unknown command " + command); } // if CompositeData, return Map for simplicity. @@ -139,6 +145,12 @@ StringConfigOption method = new StringConfigOption(PROP_METHOD, "Method to invoke"); schema.addOption(method); + + StringConfigOption args = + new StringConfigOption(PROP_ARGS, "Comma separated arguments", + ""); + args.setOptional(true); + schema.addOption(args); } else { throw new PluginException("Unknown command " + command); } |
|
From: Ryan M. <rm...@hy...> - 2007-03-29 03:54:37
|
Hi Birch, The documentation is referring to the command line tool. Many of the operations that can be done through the UI can also be scripted via the shell: http://support.hyperic.com/confluence/display/DOCSHQ30/CLI+Reference If you are looking for programmatic API's, we do expose an API via EJB's, but that is currently experimental. We are in the process of cleaning those up and exposing them in a way that's easier for end users. -Ryan |
|
From: Ryan M. <rm...@hy...> - 2007-03-29 03:49:54
|
Hi Murray, The script plugin will take the process exit code to determine the availability and the first value seen on stdout as the result value. For your plugin it should do something like: echo $DESCRIPTORS return 0; Maybe if you attach your script we can provide more info on what is going wrong. The process service docs have more info: http://support.hyperic.com/confluence/display/DOCSHQ30/Script+Plugin As a side note for those who are interested, HQ can gather stats on a group of processes as well. We don't support adding up all the file descriptors, but maybe that's something that Doug can add. The Multi-process docs have all the supported aggregate metrics: http://support.hyperic.com/confluence/display/DOCSHQ30/MultiProcess+service As an example, entering the PTQL query CredName.Username.eq=rmorgan would give info on all processes owned by me. The SIGAR docs have more info on how to construct these queries. http://support.hyperic.com/confluence/display/SIGAR/PTQL -Ryan |
|
From: James B. <jmb...@pr...> - 2007-03-29 03:48:45
|
The documentation seems to elude to a remote client to the server. Can someone point me to the API which describes this? I need the ability connect to a server and query certain aspects. Thanks! Birch |
|
From: Ryan M. <rm...@hy...> - 2007-03-29 03:33:23
|
Phew! I was running out of ideas on this one.. :) -Ryan |
|
From: Brad F. <br...@br...> - 2007-03-29 03:22:06
|
I am a blithering nitwit. I only remembered having to copy the plugin to the agent location - not the server one. After doing this, it works perfectly. I do so love displaying my stupidity for the entire world. :-/ |
|
From: Peter S. <psc...@sy...> - 2007-03-29 01:23:07
|
Hi, =20 Is there any way to retrieve a list of which services have alerts configured and what the alerts are and who they are sent to? =20 I am currently using the Open Source version 3.0.2. =20 Thanks, Peter Schwarz =20 |
|
From: Murray B. <hq-...@hy...> - 2007-03-29 01:00:58
|
Thanks. That's a useful idea. I'm really just using this to test the script plug-in rather than to get anything useful. So my concern is not to get the value but why Hyperic marks it as unavailable even though it clearly works. Although my script actually does a little more than just get the file descriptors for a process. It totals the file descriptors for all the processes for a given web server. This gives us a rough guide as to the number of connections. Thanks . . . Murray |
|
From: Charles L. <cl...@hy...> - 2007-03-29 00:42:05
|
Of course, it would be ideal if you could use startup scripts to make sure that agents are automatically started when the system starts. The following thread discusses startup scripts for Linux environments. http://forums.hyperic.com/jiveforums/thread.jspa?messageID=5348ᓤ Trying to get the correlation between the availability metric and system uptime metric would not be a trivial task. You might be able to do something with the system uptime metric itself to sum up the total uptime for a given time interval. Charles |
|
From: Noah S. <noa...@hy...> - 2007-03-29 00:41:12
|
The Process Service trick was recently discussed in this thread: http://forums.hyperic.com/jiveforums/message.jspa?messageID=5380 |
|
From: Noah S. <noa...@hy...> - 2007-03-29 00:35:39
|
There is an easier way to do it. Create a new "Process" service for your process and turn on the Open File Descriptors metric. |
|
From: Hyperic J. <ji...@hy...> - 2007-03-29 00:32:26
|
Please do not reply to Hyperic JIRA tickets via email. The comments in your email will never reach an engineer at Hyperic. Add your comments to the ticket in JIRA by navigating to http://jira.hyperic.com/ using a web browser. If you have a question about this message, please contact your Hyperic support engineer directly. Best Regards, The Hyperic Team |
|
From: Murray B. <hq-...@hy...> - 2007-03-29 00:24:50
|
I have defined a very simple script plug-in which just returns a single value (number of file descriptors held by a process). It returns the value correctly but gets marked as unavailable. Given that the value is returned and the execution runs in under a second I can't see why it would be marked as unavailable. I have attached screenshots of the script definition and the metrics returned. Thanks . . Murray |
|
From: John M. W. <joh...@hy...> - 2007-03-29 00:23:46
|
Good deal! I'm trying to make sure that our forum points system is working as intended - did you click the button that said "helpful" or "correct" answer? I'm just trying to figure out why the points didn't show up for jjondle, and I'm hoping I don't have to debug Jive :( |
|
From: Charles L. <cl...@hy...> - 2007-03-29 00:17:44
|
Yup, you are absolutely correct. Charles |
|
From: <cl...@hy...> - 2007-03-29 00:01:52
|
Author: clee Date: 2007-03-28 16:01:49 -0800 (Wed, 28 Mar 2007) New Revision: 3949 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3949 Modified: trunk/bin/jdbc-shell.bat Log: Update to new MySQL connector Modified: trunk/bin/jdbc-shell.bat =================================================================== --- trunk/bin/jdbc-shell.bat 2007-03-29 00:00:53 UTC (rev 3948) +++ trunk/bin/jdbc-shell.bat 2007-03-29 00:01:49 UTC (rev 3949) @@ -20,7 +20,7 @@ set JDBC_CLASSPATH=%JDBC_LIB%\henplus.jar set JDBC_CLASSPATH=%JDBC_CLASSPATH%;%JDBC_LIB%\libreadline-java.jar set JDBC_CLASSPATH=%JDBC_CLASSPATH%;%JDBC_LIB%\postgresql\postgresql-7.4.3.jar -set JDBC_CLASSPATH=%JDBC_CLASSPATH%;%JDBC_LIB%\mysql_jdbc\mysql-connector-java-3.0.12-production-bin.jar +set JDBC_CLASSPATH=%JDBC_CLASSPATH%;%JDBC_LIB%\mysql_jdbc\mysql-connector-java-5.0.5-bin.jar for %%f in (%ORACLE_LIB%\*.jar) do set JDBC_CLASSPATH=!JDBC_CLASSPATH!;%ORACLE_LIB%\%%~nf.jar |
|
From: <cl...@hy...> - 2007-03-29 00:00:57
|
Author: clee Date: 2007-03-28 16:00:53 -0800 (Wed, 28 Mar 2007) New Revision: 3948 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3948 Modified: trunk/plugins/mysql/etc/hq-plugin.xml Log: Include the new MySQL connector Modified: trunk/plugins/mysql/etc/hq-plugin.xml =================================================================== --- trunk/plugins/mysql/etc/hq-plugin.xml 2007-03-28 23:59:11 UTC (rev 3947) +++ trunk/plugins/mysql/etc/hq-plugin.xml 2007-03-29 00:00:53 UTC (rev 3948) @@ -27,7 +27,7 @@ <plugin package="org.hyperic.hq.plugin.mysql"> <classpath> - <include name="pdk/lib/jdbc/mysql-connector-java-3.0.12-production-bin.jar"/> + <include name="pdk/lib/jdbc/mysql-connector-java-5.0.5-bin.jar"/> </classpath> <!-- we use a dummy jmx object name --> |
|
From: <cl...@hy...> - 2007-03-28 23:59:15
|
Author: clee Date: 2007-03-28 15:59:11 -0800 (Wed, 28 Mar 2007) New Revision: 3947 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3947 Added: trunk/src/org/hyperic/hibernate/dialect/MySQL5InnoDBDialect.java Log: Add Hyperic's own extension to Hibernate's MySQL5InnoDBDialect Added: trunk/src/org/hyperic/hibernate/dialect/MySQL5InnoDBDialect.java =================================================================== --- trunk/src/org/hyperic/hibernate/dialect/MySQL5InnoDBDialect.java (rev 0) +++ trunk/src/org/hyperic/hibernate/dialect/MySQL5InnoDBDialect.java 2007-03-28 23:59:11 UTC (rev 3947) @@ -0,0 +1,96 @@ +/* + * NOTE: This copyright does *not* cover user programs that use HQ + * program services by normal system calls through the application + * program interfaces provided as part of the Hyperic Plug-in Development + * Kit or the Hyperic Client Development Kit - this is merely considered + * normal use of the program, and does *not* fall under the heading of + * "derived work". + * + * Copyright (C) [2004, 2005, 2006], Hyperic, Inc. + * This file is part of HQ. + * + * HQ is free software; you can redistribute it and/or modify + * it under the terms version 2 of the GNU General Public License as + * published by the Free Software Foundation. This program is distributed + * in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A + * PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA. + */ + +package org.hyperic.hibernate.dialect; + +import org.hibernate.MappingException; + +/** + * HQ's version of MySQL5InnoDBDialect to create pseudo sequences + */ +public class MySQL5InnoDBDialect extends + org.hibernate.dialect.MySQL5InnoDBDialect { + + /* + * Database table and function to support sequences. It is assumed that + * the database has already been prepped by running the following SQL. + + CREATE TABLE `hq_sequence` ( + `seq_name` char(50) NOT NULL PRIMARY KEY, + `seq_val` int(11) DEFAULT NULL + ); + + DELIMITER | + + CREATE FUNCTION nextseqval (iname CHAR(50)) + RETURNS INT + DETERMINISTIC + BEGIN + SET @new_seq_val = 0; + UPDATE hq_sequence set seq_val = @new_seq_val:=seq_val+1 + WHERE seq_name=iname; + RETURN @new_seq_val; + END; + + | + + */ + private final static String SEQUENCE_TABLE = "hq_sequence"; + private final static String SEQUENCE_NAME = "seq_name"; + private final static String SEQUENCE_VALUE = "seq_val"; + + public boolean supportsSequences() { + return true; + } + + protected String getCreateSequenceString(String sequenceName) + throws MappingException { + return "INSERT INTO " + SEQUENCE_TABLE + + " (" + SEQUENCE_NAME + "," + SEQUENCE_VALUE + ") VALUES ('" + + sequenceName + "', " + HypericDialectConstants.SEQUENCE_START + + ")"; + } + + protected String getDropSequenceString(String sequenceName) + throws MappingException { + return "DELETE FROM " + SEQUENCE_TABLE + " WHERE " + + SEQUENCE_NAME + " = '" + sequenceName + "'"; + } + + public String getSequenceNextValString(String sequenceName) + throws MappingException { + return "SELECT " + getSelectSequenceNextValString(sequenceName); + } + + public String getSelectSequenceNextValString(String sequenceName) + throws MappingException { + return "nextseqval('" + sequenceName + "')"; + } + + public String getQuerySequencesString() { + return "SELECT " + SEQUENCE_TABLE + " FROM " + SEQUENCE_TABLE; + } + +} |
|
From: <cl...@hy...> - 2007-03-28 23:42:58
|
Author: clee Date: 2007-03-28 15:42:55 -0800 (Wed, 28 Mar 2007) New Revision: 3946 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3946 Modified: branches/HQ_3_0/plugins/mysql/src/org/hyperic/hq/plugin/mysql/MySQLMeasurementPlugin.java Log: The GLOBAL and SESSION options are new in MySQL 5.0.2. With the GLOBAL modifier, SHOW STATUS displays the status values for all connections to MySQL. With SESSION, it displays the status values for the current connection. Before MySQL 5.0.2, SHOW STATUS returned global status values. Because the default as of 5.0.2 is to return session values, this is incompatible with previous versions. [merge from HEAD] Modified: branches/HQ_3_0/plugins/mysql/src/org/hyperic/hq/plugin/mysql/MySQLMeasurementPlugin.java =================================================================== --- branches/HQ_3_0/plugins/mysql/src/org/hyperic/hq/plugin/mysql/MySQLMeasurementPlugin.java 2007-03-28 22:47:14 UTC (rev 3945) +++ branches/HQ_3_0/plugins/mysql/src/org/hyperic/hq/plugin/mysql/MySQLMeasurementPlugin.java 2007-03-28 23:42:55 UTC (rev 3946) @@ -53,7 +53,7 @@ static final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; // Measurement Queries - private static final String STATUSQUERY = "SHOW STATUS LIKE "; + private static final String STATUSQUERY = "SHOW /*!50002 GLOBAL */ STATUS LIKE "; private static final String TABLEQUERY = "SHOW TABLE STATUS LIKE %table%"; private static final String INDEXQUERY = "SHOW INDEX FROM %table%"; private static final String DBQUERY = "SHOW TABLE STATUS"; |
|
From: mike m. <mi...@an...> - 2007-03-28 23:36:25
|
I just removed the windows box from the hyperic server, and re-installed the client and waited for a while until the hyperic server got done doing the inventory. Now all the services that I was lloking for appear in the platform services health column. Probably on oringinal install I didnt wait long enough for the inventory to be done.!!! |