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: Doug M. <do...@hy...> - 2007-03-27 16:32:36
|
On Mar 27, 2007, at 9:19 AM, Kevin Elliott wrote: > Doug, > > Thanks for the reply! > > Yes, I've installed the WebLogic patch. I'm just trying to figure > out how to delete an auto-discovered set of servers, and rediscover > them to see if it is working now. You can just use Browse Resources -> Servers, check box the servers and click the Delete button. > Also, no, I did not install any SNMP module. I did not see any > documentation mentioning that, nor how to do it. What steps should > I do to get the SNMP module going? Here's the doc on the snmp module (below the metric listing): http://support.hyperic.com/confluence/display/DOCSHQ30/Apache+2.0+server Note that if you already imported the "Apache httpd" type (mod_status monitor), you'll see a different type discovered "Apache 2.x" (mod_snmp monitor) when the snmp module is installed. The VHost services will only show up under the "Apache 2.x" type. |
|
From: Kevin E. <kel...@dh...> - 2007-03-27 16:24:36
|
Additionally, we're running Apache 2.0.54. |
|
From: Kevin E. <kel...@dh...> - 2007-03-27 16:20:01
|
Doug, Thanks for the reply! Yes, I've installed the WebLogic patch. I'm just trying to figure out how to delete an auto-discovered set of servers, and rediscover them to see if it is working now. Also, no, I did not install any SNMP module. I did not see any documentation mentioning that, nor how to do it. What steps should I do to get the SNMP module going? Thanks again, Kevin |
|
From: Doug M. <do...@hy...> - 2007-03-27 16:01:51
|
Hi German, You'll need to install this update: http://jira.hyperic.com/browse/HHQ-763 It has only been tested against 3.0.2 but should also work fine with 2.7.x On Mar 27, 2007, at 8:42 AM, German Laullon wrote: > c-156: /aplicaciones/hyperic-hq-agent-2.7.5 # java -jar pdk/lib/hq- > product.jar -p websphere -m discover -Dlog=debug > . > . > . > [INFO] ProductPluginManager - Loading plugin: websphere-plugin.jar > [DEBUG] WebsphereProductPlugin - websphere.installpath found in > process table > [DEBUG] WebsphereProductPlugin - Using profile: AppSrv01 > [DEBUG] WebsphereProductPlugin - Using soap properties: / > aplicaciones/websphere/profiles/AppSrv01/properties/soap.client.props > [DEBUG] WebsphereProductPlugin - Unable to find ssl.client.props > [DEBUG] ProductPluginManager - adding to websphere classpath: > [DEBUG] ProductPluginManager - + /aplicaciones/websphere/lib/ > j2ee.jar > [DEBUG] ProductPluginManager - + /aplicaciones/websphere/lib/ > bootstrap.jar > [DEBUG] ProductPluginManager - + /aplicaciones/websphere/lib/ > urlprotocols.jar > [DEBUG] ProductPluginManager - + /aplicaciones/websphere/lib/ > mail-impl.jar > [DEBUG] ProductPluginManager - + /aplicaciones/websphere/etc/ > tmx4jTransform.jar > . > . > . > [DEBUG] PluginDiscoverer - Adding Auto Scanners=[ServerSignature > {stName=WebSphere Admin 5.0, match=[/**/lib/wasjmx.jar], exclude= > [null], regMatch=[InstallLocation]}, ServerSignature > {stName=WebSphere Admin 6.0, match=[/**/lib/wasjmx.jar], exclude= > [null], regMatch=[InstallLocation]}, ServerSignature > {stName=WebSphere Admin 6.1, match=[/**/lib/wasjmx.jar], exclude= > [null], regMatch=[InstallLocation]}] > [DEBUG] AutoScan - Running AutoServerDetector for: WebSphere Admin 5.0 > [DEBUG] WebsphereDetector - WebSphere Admin 5.0 '/aplicaciones/ > websphere/profiles/AppSrv01/lib/jmxc.jar'.exists()=false > [DEBUG] WebsphereDetector - /aplicaciones/websphere/profiles/Dmgr01/ > bin/startNode.sh Not found > [DEBUG] WebsphereDetector - WebSphere Admin 5.0 '/aplicaciones/ > websphere/profiles/AppSrv01/lib/jmxc.jar'.exists()=false > [DEBUG] AutoScan - Running AutoServerDetector for: WebSphere Admin 6.0 > [DEBUG] WebsphereDetector - WebSphere Admin 6.0 '/aplicaciones/ > websphere/profiles/AppSrv01/../../properties/version/ > WAS.product'.exists()=true > [DEBUG] WebsphereDetector - Detected c-156 WebSphere Admin 6.0 in / > aplicaciones/websphere/profiles/AppSrv01 > [DEBUG] WebsphereDetector - /aplicaciones/websphere/profiles/Dmgr01/ > bin/startNode.sh Not found > [DEBUG] WebsphereDetector - WebSphere Admin 6.0 '/aplicaciones/ > websphere/profiles/AppSrv01/../../properties/version/ > WAS.product'.exists()=true > [DEBUG] WebsphereDetector - Detected c-156 WebSphere Admin 6.0 in / > aplicaciones/websphere/profiles/AppSrv01 > [DEBUG] AutoScan - Running AutoServerDetector for: WebSphere Admin 6.1 > [DEBUG] WebsphereDetector - WebSphere Admin 6.1 '/aplicaciones/ > websphere/profiles/AppSrv01/../../properties/version/ > WAS.product'.exists()=true > [DEBUG] WebsphereDetector - /aplicaciones/websphere/profiles/Dmgr01/ > bin/startNode.sh Not found > [DEBUG] WebsphereDetector - WebSphere Admin 6.1 '/aplicaciones/ > websphere/profiles/AppSrv01/../../properties/version/ > WAS.product'.exists()=true > 1 servers detected > > Server: c-156 WebSphere Admin 6.0 [/aplicaciones/websphere/profiles/ > AppSrv01] > config... > product..{admin.port=8880, was.install.root=/aplicaciones/ > websphere, server.node=c-156Node01, admin.host=localhost} > metric...{} > control..{program=/aplicaciones/websphere/profiles/AppSrv01/bin/ > startNode.sh} > [DEBUG] PluginDiscoverer - Runtime discover for c-156 WebSphere > Admin 6.0, config={password=null, log=debug, admin.port=8880, > timeout=300, prefix=, was.install.root=/aplicaciones/websphere, > username=null, server.node=c-156Node01, installpath=/aplicaciones/ > websphere/profiles/AppSrv01, program=/usr/local/apps/websphere- > admin-6.0/bin/startServer.sh, admin.host=localhost} > [DEBUG] PluginDiscoverer - WebSphere Admin 6.0 Solaris-- > >java.lang.NoClassDefFoundError: com/ibm/websphere/management/ > exception/ConnectorException <java.lang.NoClassDefFoundError: com/ > ibm/websphere/management/exception/ > ConnectorException>java.lang.NoClassDefFoundError: com/ibm/ > websphere/management/exception/ConnectorException > at > org.hyperic.hq.plugin.websphere.WebsphereDetector5.discoverServers > (WebsphereDetector5.java:59) > at org.hyperic.hq.product.ServerDetector.discoverResources > (ServerDetector.java:184) > at org.hyperic.hq.product.util.PluginDiscoverer.runtimeScan > (PluginDiscoverer.java:589) > at org.hyperic.hq.product.util.PluginDiscoverer.start > (PluginDiscoverer.java:307) > at org.hyperic.hq.product.util.PluginDumper.testDiscovery > (PluginDumper.java:1065) > at org.hyperic.hq.product.util.PluginDumper.invoke > (PluginDumper.java:431) > at org.hyperic.hq.product.util.PluginMain.main > (PluginMain.java:273) > > |
|
From: Ryan M. <rm...@hy...> - 2007-03-27 15:54:37
|
Hi Roy, It looks like the HQ database is not running. When starting the HQ server from the command line you need to start the database separately using db-start.bat. If you run the HQ server as a service it will automatically start the built-in database for you. You can install the service using hq-server.exe -i, then start HQ from the service control manager. -Ryan |
|
From: Doug M. <do...@hy...> - 2007-03-27 15:53:09
|
Hi Kevin, Great to hear you like what you see so far. You'll need to apply the following patch for WebLogic: http://jira.hyperic.com/browse/HHQ-765 As for the apache vhosts, did you install the snmp module? What version of Apache exactly and on what platform? On Mar 26, 2007, at 4:46 PM, Kevin Elliott wrote: > Greetings, > > We've just installed Hyperic HQ 3.0.2. Our initial evaluation has > lead us to believe it's quite an amazing monitoring tool! > > We are having a few problems though: > > * Apache 2.x Vhosts are not detected. > * While the WebLogic 8.1 Admin node, and occasionally Node > Manager are detected, it does not detect our managed nodes or any > applications running inside. > > Is there something I must do to properly massage either of these to > detect properly? Is there a way to manually add these? > > Kevin > > |
|
From: Roy C. <ro...@in...> - 2007-03-27 15:44:22
|
Hello people, I have just finished installing 3.0.2 on winxp sp2 - two problems: 1) no service has been created , so i had to run hq-server.exe from the cmd got up to this line: C:\Program Files\server-3.0.2\bin>hq-server.exe 17:09:43,556 INFO [Server] Starting JBoss (MX MicroKernel)... 17:09:43,556 INFO [Server] Release ID: JBoss [Zion] 4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510 31054) 17:09:43,572 INFO [Server] Home Dir: C:\Program Files\server-3.0.2\hq-engine 17:09:43,572 INFO [Server] Home URL: file:/C:/Program Files/server-3.0.2/hq-engine/ 17:09:43,572 INFO [Server] Patch URL: null 17:09:43,572 INFO [Server] Server Name: default 17:09:43,572 INFO [Server] Server Home Dir: C:\Program Files\server-3.0.2\hq-engine\server\default 17:09:43,572 INFO [Server] Server Home URL: file:/C:/Program Files/server-3.0.2/hq-engine/server/defaul / 17:09:43,588 INFO [Server] Server Temp Dir: C:\Program Files\server-3.0.2\hq-engine\server\default\tmp 17:09:43,588 INFO [Server] Root Deployment Filename: jboss-service.xml 17:09:44,447 INFO [ServerInfo] Java version: 1.4.2_13,Sun Microsystems Inc. 17:09:44,447 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_13-b06,Sun Microsystems Inc. 17:09:44,447 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 17:09:44,963 INFO [Server] Core system initialized 17:09:49,197 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml 2) when i tried to login i recieved this message: "The backend data source is unavailable" every configuration is default one attached is the server log file thanks Roy |
|
From: German L. <la...@gm...> - 2007-03-27 15:43:41
|
c-156: /aplicaciones/hyperic-hq-agent-2.7.5 # java -jar pdk/lib/hq-product.jar -p websphere -m discover -Dlog=debug
.
.
.
[INFO] ProductPluginManager - Loading plugin: websphere-plugin.jar
[DEBUG] WebsphereProductPlugin - websphere.installpath found in process table
[DEBUG] WebsphereProductPlugin - Using profile: AppSrv01
[DEBUG] WebsphereProductPlugin - Using soap properties: /aplicaciones/websphere/profiles/AppSrv01/properties/soap.client.props
[DEBUG] WebsphereProductPlugin - Unable to find ssl.client.props
[DEBUG] ProductPluginManager - adding to websphere classpath:
[DEBUG] ProductPluginManager - + /aplicaciones/websphere/lib/j2ee.jar
[DEBUG] ProductPluginManager - + /aplicaciones/websphere/lib/bootstrap.jar
[DEBUG] ProductPluginManager - + /aplicaciones/websphere/lib/urlprotocols.jar
[DEBUG] ProductPluginManager - + /aplicaciones/websphere/lib/mail-impl.jar
[DEBUG] ProductPluginManager - + /aplicaciones/websphere/etc/tmx4jTransform.jar
.
.
.
[DEBUG] PluginDiscoverer - Adding Auto Scanners=[ServerSignature {stName=WebSphere Admin 5.0, match=[/**/lib/wasjmx.jar], exclude=[null], regMatch=[InstallLocation]}, ServerSignature {stName=WebSphere Admin 6.0, match=[/**/lib/wasjmx.jar], exclude=[null], regMatch=[InstallLocation]}, ServerSignature {stName=WebSphere Admin 6.1, match=[/**/lib/wasjmx.jar], exclude=[null], regMatch=[InstallLocation]}]
[DEBUG] AutoScan - Running AutoServerDetector for: WebSphere Admin 5.0
[DEBUG] WebsphereDetector - WebSphere Admin 5.0 '/aplicaciones/websphere/profiles/AppSrv01/lib/jmxc.jar'.exists()=false
[DEBUG] WebsphereDetector - /aplicaciones/websphere/profiles/Dmgr01/bin/startNode.sh Not found
[DEBUG] WebsphereDetector - WebSphere Admin 5.0 '/aplicaciones/websphere/profiles/AppSrv01/lib/jmxc.jar'.exists()=false
[DEBUG] AutoScan - Running AutoServerDetector for: WebSphere Admin 6.0
[DEBUG] WebsphereDetector - WebSphere Admin 6.0 '/aplicaciones/websphere/profiles/AppSrv01/../../properties/version/WAS.product'.exists()=true
[DEBUG] WebsphereDetector - Detected c-156 WebSphere Admin 6.0 in /aplicaciones/websphere/profiles/AppSrv01
[DEBUG] WebsphereDetector - /aplicaciones/websphere/profiles/Dmgr01/bin/startNode.sh Not found
[DEBUG] WebsphereDetector - WebSphere Admin 6.0 '/aplicaciones/websphere/profiles/AppSrv01/../../properties/version/WAS.product'.exists()=true
[DEBUG] WebsphereDetector - Detected c-156 WebSphere Admin 6.0 in /aplicaciones/websphere/profiles/AppSrv01
[DEBUG] AutoScan - Running AutoServerDetector for: WebSphere Admin 6.1
[DEBUG] WebsphereDetector - WebSphere Admin 6.1 '/aplicaciones/websphere/profiles/AppSrv01/../../properties/version/WAS.product'.exists()=true
[DEBUG] WebsphereDetector - /aplicaciones/websphere/profiles/Dmgr01/bin/startNode.sh Not found
[DEBUG] WebsphereDetector - WebSphere Admin 6.1 '/aplicaciones/websphere/profiles/AppSrv01/../../properties/version/WAS.product'.exists()=true
1 servers detected
Server: c-156 WebSphere Admin 6.0 [/aplicaciones/websphere/profiles/AppSrv01]
config...
product..{admin.port=8880, was.install.root=/aplicaciones/websphere, server.node=c-156Node01, admin.host=localhost}
metric...{}
control..{program=/aplicaciones/websphere/profiles/AppSrv01/bin/startNode.sh}
[DEBUG] PluginDiscoverer - Runtime discover for c-156 WebSphere Admin 6.0, config={password=null, log=debug, admin.port=8880, timeout=300, prefix=, was.install.root=/aplicaciones/websphere, username=null, server.node=c-156Node01, installpath=/aplicaciones/websphere/profiles/AppSrv01, program=/usr/local/apps/websphere-admin-6.0/bin/startServer.sh, admin.host=localhost}
[DEBUG] PluginDiscoverer - WebSphere Admin 6.0 Solaris-->java.lang.NoClassDefFoundError: com/ibm/websphere/management/exception/ConnectorException <java.lang.NoClassDefFoundError: com/ibm/websphere/management/exception/ConnectorException>java.lang.NoClassDefFoundError: com/ibm/websphere/management/exception/ConnectorException
at org.hyperic.hq.plugin.websphere.WebsphereDetector5.discoverServers(WebsphereDetector5.java:59)
at org.hyperic.hq.product.ServerDetector.discoverResources(ServerDetector.java:184)
at org.hyperic.hq.product.util.PluginDiscoverer.runtimeScan(PluginDiscoverer.java:589)
at org.hyperic.hq.product.util.PluginDiscoverer.start(PluginDiscoverer.java:307)
at org.hyperic.hq.product.util.PluginDumper.testDiscovery(PluginDumper.java:1065)
at org.hyperic.hq.product.util.PluginDumper.invoke(PluginDumper.java:431)
at org.hyperic.hq.product.util.PluginMain.main(PluginMain.java:273)
|
|
From: Brad F. <br...@br...> - 2007-03-27 14:18:54
|
The filesystems themselves will be automatically detected when you set up your agent. Go to the platform view for that system, then from the left side select "Fileserver Mount", which will take you to another page with all of the filesystems on it for that system. Select the one you want to watch, then click that filesystem's "Alerts" tab toward the upper left, create a new alert, and set the condition to "Use Percent" is greater than "x". Make "x" whatever you want it to be. If you want them warned if the filesystem exceeds 90%, then make it ".9". "1" would equal 100%. It's an HQ oddity. |
|
From: Josh J. <jj...@gc...> - 2007-03-27 14:01:52
|
I deleted the data directory and tried again and it worked but I am not sure if it was because of that or because of my previous impatience. Previously I would launch the client manually and it would come up and say "agent thread running" or whatever and I was under the impression that was the final output (that it meant the agent was up and running and nothing else was going to happen) so I killed it and tried to reinstall. I think if I had waited longer I would have gotten the "Agent successfully started" followed by any needed questions. |
|
From: <bo...@hy...> - 2007-03-27 12:31:49
|
Author: bob Date: 2007-03-27 04:31:43 -0800 (Tue, 27 Mar 2007) New Revision: 3920 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3920 Modified: trunk/etc/version.properties Log: Release 3.1.0 build #351 Modified: trunk/etc/version.properties =================================================================== --- trunk/etc/version.properties 2007-03-27 11:32:48 UTC (rev 3919) +++ trunk/etc/version.properties 2007-03-27 12:31:43 UTC (rev 3920) @@ -1,3 +1,3 @@ -#Mon Mar 26 05:01:47 PDT 2007 +#Tue Mar 27 04:55:06 PDT 2007 version=3.1.0 -build=350 +build=351 |
|
From: <bo...@hy...> - 2007-03-27 11:32:53
|
Author: bob Date: 2007-03-27 03:32:48 -0800 (Tue, 27 Mar 2007) New Revision: 3919 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3919 Modified: branches/HQ_3_0/etc/version.properties Log: Release 3.0.3 build #354 Modified: branches/HQ_3_0/etc/version.properties =================================================================== --- branches/HQ_3_0/etc/version.properties 2007-03-27 04:27:56 UTC (rev 3918) +++ branches/HQ_3_0/etc/version.properties 2007-03-27 11:32:48 UTC (rev 3919) @@ -1,3 +1,3 @@ -#Mon Mar 26 04:08:46 PDT 2007 +#Tue Mar 27 04:07:31 PDT 2007 version=3.0.3 -build=353 +build=354 |
|
From: Venkat K. <rea...@ya...> - 2007-03-27 09:55:13
|
Hello I would like to monitor the Linux file systems so as to alert people for exceeding the disk space availability. Could some one help me to implement this in Hyperic 3.0.2 Venkat |
|
From: <cl...@hy...> - 2007-03-27 04:27:57
|
Author: clee Date: 2007-03-26 20:27:56 -0800 (Mon, 26 Mar 2007) New Revision: 3918 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3918 Modified: trunk/sql/appdef/ConfigResponseDB.hq-xml Log: Remove explict column length and use VARCHAR type so the MySQL does not have to specify length for index. Modified: trunk/sql/appdef/ConfigResponseDB.hq-xml =================================================================== --- trunk/sql/appdef/ConfigResponseDB.hq-xml 2007-03-27 04:26:09 UTC (rev 3917) +++ trunk/sql/appdef/ConfigResponseDB.hq-xml 2007-03-27 04:27:56 UTC (rev 3918) @@ -46,7 +46,7 @@ </property> <property name="validationError" type="string"> - <column name="VALIDATIONERR" not-null="false" length="512" index="CRESP_ERR_IDX" /> + <column name="VALIDATIONERR" not-null="false" index="CRESP_ERR_IDX" /> </property> </class> |
|
From: <cl...@hy...> - 2007-03-27 04:26:14
|
Author: clee Date: 2007-03-26 20:26:09 -0800 (Mon, 26 Mar 2007) New Revision: 3917 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3917 Modified: trunk/installer/data/db-upgrade.xml trunk/sql/common/CrispoOption.hq-xml Log: Rename Crispo Option key column to propkey in order to avoid MySQL keyword Modified: trunk/installer/data/db-upgrade.xml =================================================================== --- trunk/installer/data/db-upgrade.xml 2007-03-27 02:41:31 UTC (rev 3916) +++ trunk/installer/data/db-upgrade.xml 2007-03-27 04:26:09 UTC (rev 3917) @@ -5001,7 +5001,15 @@ </schema-directSQL> </schemaSpec> + <schemaSpec version="3.33"> + <schema-directSQL> + <statement> + ALTER TABLE EAM_CRISPO_OPT RENAME COLUMN KEY TO PROPKEY + </statement> + </schema-directSQL> + </schemaSpec> + </dbupgrade> </target> Modified: trunk/sql/common/CrispoOption.hq-xml =================================================================== --- trunk/sql/common/CrispoOption.hq-xml 2007-03-27 02:41:31 UTC (rev 3916) +++ trunk/sql/common/CrispoOption.hq-xml 2007-03-27 04:26:09 UTC (rev 3917) @@ -19,7 +19,7 @@ </version> <property name="key"> - <column name="KEY" not-null="true"/> + <column name="PROPKEY" not-null="true"/> </property> <property name="value"> |
|
From: <rm...@hy...> - 2007-03-27 02:41:46
|
Author: rmorgan Date: 2007-03-26 18:41:31 -0800 (Mon, 26 Mar 2007) New Revision: 3916 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3916 Modified: trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java Log: Return Map's if the return data is CompositeData. Modified: trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java =================================================================== --- trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java 2007-03-27 01:24:14 UTC (rev 3915) +++ trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java 2007-03-27 02:41:31 UTC (rev 3916) @@ -35,7 +35,11 @@ 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; public class MxLiveDataPlugin extends LiveDataPlugin { @@ -81,6 +85,21 @@ throw new PluginException("Unkown command " + command); } + // if CompositeData, return Map for simplicity. + if (res instanceof CompositeData) { + return convertCompositeData((CompositeData)res); + } + + // Same goes for CompositeData[] + if (res instanceof CompositeData[]) { + CompositeData[] o = (CompositeData[])res; + Map[] ret = new Map[o.length]; + for (int i = 0; i < o.length; i++) { + ret[i] = convertCompositeData(o[i]); + } + return ret; + } + return res; } catch (Exception e) { @@ -88,6 +107,17 @@ } } + private Map convertCompositeData(CompositeData data) { + Map retval = new HashMap(); + for (Iterator i = data.getCompositeType().keySet().iterator(); + i.hasNext(); ) { + String key = (String)i.next(); + Object val = data.get(key); + retval.put(key, val); + } + return retval; + } + public String[] getCommands() { return _COMMANDS; } |
|
From: <rm...@hy...> - 2007-03-27 01:24:16
|
Author: rmorgan Date: 2007-03-26 17:24:14 -0800 (Mon, 26 Mar 2007) New Revision: 3915 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3915 Modified: trunk/src/org/hyperic/hq/product/LiveDataPlugin.java trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java Log: Fixup MxLiveDataPlugin to ask questions based on command being run. Modified: trunk/src/org/hyperic/hq/product/LiveDataPlugin.java =================================================================== --- trunk/src/org/hyperic/hq/product/LiveDataPlugin.java 2007-03-27 00:24:54 UTC (rev 3914) +++ trunk/src/org/hyperic/hq/product/LiveDataPlugin.java 2007-03-27 01:24:14 UTC (rev 3915) @@ -35,7 +35,9 @@ public abstract String[] getCommands(); - public ConfigSchema getConfigSchema(String command) { + public ConfigSchema getConfigSchema(String command) + throws PluginException + { return new ConfigSchema(); } } Modified: trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java =================================================================== --- trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java 2007-03-27 00:24:54 UTC (rev 3914) +++ trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java 2007-03-27 01:24:14 UTC (rev 3915) @@ -41,8 +41,9 @@ private static Log _log = LogFactory.getLog(MxLiveDataPlugin.class); - private static final String PROP_OBJNAME = "ObjectName"; - private static final String PROP_METHOD = "Method"; + 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 CMD_GET = "get"; private static final String CMD_INVOKE = "invoke"; @@ -61,14 +62,21 @@ try { MBeanServerConnection mBeanServer = MxUtil.getMBeanServer(props); ObjectName oName = new ObjectName(props.getProperty(PROP_OBJNAME)); - String method = props.getProperty(PROP_METHOD); - + Object res; if (command.equals(CMD_INVOKE)) { + String method = props.getProperty(PROP_METHOD); + if (method == null) { + throw new PluginException("No method givin."); + } res = mBeanServer.invoke(oName, method, new Object[0], new String[0]); } else if (command.equals(CMD_GET)) { - res = mBeanServer.getAttribute(oName, method); + String attribute = props.getProperty(PROP_ATTRIBUTE); + if (attribute == null) { + throw new PluginException("No attribute given"); + } + res = mBeanServer.getAttribute(oName, attribute); } else { throw new PluginException("Unkown command " + command); } @@ -84,16 +92,26 @@ return _COMMANDS; } - public ConfigSchema getConfigSchema(String command) { + public ConfigSchema getConfigSchema(String command) + throws PluginException + { ConfigSchema schema = new ConfigSchema(); - StringConfigOption object = + StringConfigOption objectName = new StringConfigOption(PROP_OBJNAME, "Object name"); - StringConfigOption method = - new StringConfigOption(PROP_METHOD, "Method to invoke"); + schema.addOption(objectName); - schema.addOption(object); - schema.addOption(method); + if (command.equals(CMD_GET)) { + StringConfigOption attr = + new StringConfigOption(PROP_ATTRIBUTE, "Attribute to get"); + schema.addOption(attr); + } else if (command.equals(CMD_INVOKE)) { + StringConfigOption method = + new StringConfigOption(PROP_METHOD, "Method to invoke"); + schema.addOption(method); + } else { + throw new PluginException("Unknown command " + command); + } return schema; } |
|
From: Doug M. (JIRA) <ji...@hy...> - 2007-03-27 01:20:37
|
Add Perlbal plugin
------------------
Key: HHQ-784
URL: http://jira.hyperic.com/browse/HHQ-784
Project: Hyperic HQ
Type: New Feature
Components: Plugins
Reporter: Doug MacEachern
Assigned to: Doug MacEachern
Priority: Minor
There's been a couple of requests for this:
http://www.danga.com/perlbal/
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.hyperic.com/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|
|
From: <rm...@hy...> - 2007-03-27 00:24:57
|
Author: rmorgan Date: 2007-03-26 16:24:54 -0800 (Mon, 26 Mar 2007) New Revision: 3914 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3914 Modified: trunk/src/org/hyperic/hq/bizapp/client/shell/ClientShellEntityFetcher.java trunk/src/org/hyperic/hq/bizapp/client/shell/ClientShell_livedata_get.java trunk/src/org/hyperic/hq/bizapp/server/session/LiveDataBossEJBImpl.java trunk/src/org/hyperic/hq/livedata/server/session/LiveDataManagerEJBImpl.java trunk/src/org/hyperic/hq/product/LiveDataPlugin.java trunk/src/org/hyperic/hq/product/LiveDataPluginManager.java trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java Log: Change livedata getConfigSchema() to take the command as an argument. Modified: trunk/src/org/hyperic/hq/bizapp/client/shell/ClientShellEntityFetcher.java =================================================================== --- trunk/src/org/hyperic/hq/bizapp/client/shell/ClientShellEntityFetcher.java 2007-03-27 00:19:25 UTC (rev 3913) +++ trunk/src/org/hyperic/hq/bizapp/client/shell/ClientShellEntityFetcher.java 2007-03-27 00:24:54 UTC (rev 3914) @@ -1200,7 +1200,8 @@ return boss.getLiveDataCommands(auth.getAuthToken(), id); } - public ConfigSchema getLiveDataConfigSchema(AppdefEntityID id) + public ConfigSchema getLiveDataConfigSchema(AppdefEntityID id, + String command) throws RemoteException, NamingException, ClientShellAuthenticationException, PluginException, PermissionException, @@ -1210,7 +1211,7 @@ boss = this.bossManager.getLiveDataBoss(); - return boss.getConfigSchema(auth.getAuthToken(), id); + return boss.getConfigSchema(auth.getAuthToken(), id, command); } } Modified: trunk/src/org/hyperic/hq/bizapp/client/shell/ClientShell_livedata_get.java =================================================================== --- trunk/src/org/hyperic/hq/bizapp/client/shell/ClientShell_livedata_get.java 2007-03-27 00:19:25 UTC (rev 3913) +++ trunk/src/org/hyperic/hq/bizapp/client/shell/ClientShell_livedata_get.java 2007-03-27 00:24:54 UTC (rev 3914) @@ -78,7 +78,8 @@ private void processCommand(AppdefEntityID id, String command) throws Exception { - ConfigSchema schema = _entityFetcher.getLiveDataConfigSchema(id); + ConfigSchema schema = _entityFetcher.getLiveDataConfigSchema(id, + command); ConfigResponse response = ((ClientShell) this.getShell()).processConfigSchema(schema); Modified: trunk/src/org/hyperic/hq/bizapp/server/session/LiveDataBossEJBImpl.java =================================================================== --- trunk/src/org/hyperic/hq/bizapp/server/session/LiveDataBossEJBImpl.java 2007-03-27 00:19:25 UTC (rev 3913) +++ trunk/src/org/hyperic/hq/bizapp/server/session/LiveDataBossEJBImpl.java 2007-03-27 00:24:54 UTC (rev 3914) @@ -122,12 +122,13 @@ * * @ejb:interface-method */ - public ConfigSchema getConfigSchema(int sessionId, AppdefEntityID id) + public ConfigSchema getConfigSchema(int sessionId, AppdefEntityID id, + String command) throws PluginException, PermissionException, SessionTimeoutException, SessionNotFoundException { AuthzSubjectValue subject = _manager.getSubject(sessionId); LiveDataManagerLocal manager = LiveDataManagerEJBImpl.getOne(); - return manager.getConfigSchema(subject, id); + return manager.getConfigSchema(subject, id, command); } } Modified: trunk/src/org/hyperic/hq/livedata/server/session/LiveDataManagerEJBImpl.java =================================================================== --- trunk/src/org/hyperic/hq/livedata/server/session/LiveDataManagerEJBImpl.java 2007-03-27 00:19:25 UTC (rev 3913) +++ trunk/src/org/hyperic/hq/livedata/server/session/LiveDataManagerEJBImpl.java 2007-03-27 00:24:54 UTC (rev 3914) @@ -230,14 +230,14 @@ * @ejb:interface-method */ public ConfigSchema getConfigSchema(AuthzSubjectValue subject, - AppdefEntityID id) + AppdefEntityID id, String command) throws PluginException, PermissionException { try { AppdefEntityValue val = new AppdefEntityValue(id, subject); AppdefResourceTypeValue tVal = val.getResourceTypeValue(); - return _manager.getConfigSchema(tVal.getName()); + return _manager.getConfigSchema(tVal.getName(), command); } catch (AppdefEntityNotFoundException e) { throw new PluginNotFoundException("No plugin found for " + id, e); } Modified: trunk/src/org/hyperic/hq/product/LiveDataPlugin.java =================================================================== --- trunk/src/org/hyperic/hq/product/LiveDataPlugin.java 2007-03-27 00:19:25 UTC (rev 3913) +++ trunk/src/org/hyperic/hq/product/LiveDataPlugin.java 2007-03-27 00:24:54 UTC (rev 3914) @@ -35,7 +35,7 @@ public abstract String[] getCommands(); - public ConfigSchema getConfigSchema() { + public ConfigSchema getConfigSchema(String command) { return new ConfigSchema(); } } Modified: trunk/src/org/hyperic/hq/product/LiveDataPluginManager.java =================================================================== --- trunk/src/org/hyperic/hq/product/LiveDataPluginManager.java 2007-03-27 00:19:25 UTC (rev 3913) +++ trunk/src/org/hyperic/hq/product/LiveDataPluginManager.java 2007-03-27 00:24:54 UTC (rev 3914) @@ -65,10 +65,10 @@ return p.getCommands(); } - public ConfigSchema getConfigSchema(String type) + public ConfigSchema getConfigSchema(String type, String command) throws PluginException { LiveDataPlugin p = getLiveDataPlugin(type); - return p.getConfigSchema(); + return p.getConfigSchema(command); } } Modified: trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java =================================================================== --- trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java 2007-03-27 00:19:25 UTC (rev 3913) +++ trunk/src/org/hyperic/hq/product/jmx/MxLiveDataPlugin.java 2007-03-27 00:24:54 UTC (rev 3914) @@ -42,7 +42,7 @@ private static Log _log = LogFactory.getLog(MxLiveDataPlugin.class); private static final String PROP_OBJNAME = "ObjectName"; - private static final String PROP_METHOD = "method"; + private static final String PROP_METHOD = "Method"; private static final String CMD_GET = "get"; private static final String CMD_INVOKE = "invoke"; @@ -84,7 +84,7 @@ return _COMMANDS; } - public ConfigSchema getConfigSchema() { + public ConfigSchema getConfigSchema(String command) { ConfigSchema schema = new ConfigSchema(); StringConfigOption object = |
|
From: <jt...@hy...> - 2007-03-27 00:19:28
|
Author: jtravis Date: 2007-03-26 16:19:25 -0800 (Mon, 26 Mar 2007) New Revision: 3913 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3913 Added: trunk/ui_plugins/hqu_livedata/app/ trunk/ui_plugins/hqu_livedata/app/LiveController.groovy trunk/ui_plugins/hqu_livedata/views/ trunk/ui_plugins/hqu_livedata/views/live/ trunk/ui_plugins/hqu_livedata/views/live/index.gsp trunk/ui_plugins/hqu_livedata/views/live/showResource.gsp Removed: trunk/ui_plugins/hqu_livedata/LiveController.groovy trunk/ui_plugins/hqu_livedata/index.gsp trunk/ui_plugins/hqu_livedata/showResource.gsp Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/BaseController.groovy trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/dispatcher.groovy Log: Re-architect the layout for plugins. Deleted: trunk/ui_plugins/hqu_livedata/LiveController.groovy =================================================================== --- trunk/ui_plugins/hqu_livedata/LiveController.groovy 2007-03-27 00:16:24 UTC (rev 3912) +++ trunk/ui_plugins/hqu_livedata/LiveController.groovy 2007-03-27 00:19:25 UTC (rev 3913) @@ -1,24 +0,0 @@ -import org.hyperic.hq.ui.rendit.BaseController - -import org.hyperic.util.config.ConfigResponse - -public class LiveController extends BaseController { - def index = { - render(args:[platforms:resourceHelper.find(all:'platforms')]) - } - - def showResource = { params -> - def platId = Integer.parseInt(params['id'][0]) - def plat = resourceHelper.find(platform:platId) - def cmds = liveDataHelper.getCommands(plat) - def command = params['command'] - def result - - if (command != null) { - command = command[0] - result = liveDataHelper.getData(plat, command, [:]).XMLResult - } - - render(args:[resource:plat, cmds:cmds, result:result, command:command]) - } -} Copied: trunk/ui_plugins/hqu_livedata/app/LiveController.groovy (from rev 3910, trunk/ui_plugins/hqu_livedata/LiveController.groovy) =================================================================== --- trunk/ui_plugins/hqu_livedata/app/LiveController.groovy (rev 0) +++ trunk/ui_plugins/hqu_livedata/app/LiveController.groovy 2007-03-27 00:19:25 UTC (rev 3913) @@ -0,0 +1,24 @@ +import org.hyperic.hq.ui.rendit.BaseController + +import org.hyperic.util.config.ConfigResponse + +public class LiveController extends BaseController { + def index = { + render(args:[platforms:resourceHelper.find(all:'platforms')]) + } + + def showResource = { params -> + def platId = Integer.parseInt(params['id'][0]) + def plat = resourceHelper.find(platform:platId) + def cmds = liveDataHelper.getCommands(plat) + def command = params['command'] + def result + + if (command != null) { + command = command[0] + result = liveDataHelper.getData(plat, command, [:]).XMLResult + } + + render(args:[resource:plat, cmds:cmds, result:result, command:command]) + } +} Deleted: trunk/ui_plugins/hqu_livedata/index.gsp =================================================================== --- trunk/ui_plugins/hqu_livedata/index.gsp 2007-03-27 00:16:24 UTC (rev 3912) +++ trunk/ui_plugins/hqu_livedata/index.gsp 2007-03-27 00:19:25 UTC (rev 3913) @@ -1,11 +0,0 @@ -<html> -<body> - <h1>Platform LiveData</h1> - - <ul> - <% for (plat in platforms) { %> - <li> <%= link_to plat.name, [action:'showResource'], - [id:plat.id] %> </li> - <% } %> -</body> -</html> Deleted: trunk/ui_plugins/hqu_livedata/showResource.gsp =================================================================== --- trunk/ui_plugins/hqu_livedata/showResource.gsp 2007-03-27 00:16:24 UTC (rev 3912) +++ trunk/ui_plugins/hqu_livedata/showResource.gsp 2007-03-27 00:19:25 UTC (rev 3913) @@ -1,25 +0,0 @@ -<html> -<body> - <h1>LiveData commands for <%= link_to resource.name, [resource:resource] %> - (<%= resource.appdefResourceTypeValue.name %>)</h1> - - <p> - <%= link_to "<-- Go Back", [action:'index'], [:] %> - </p> - Available commands: - <ul> - <% for (c in cmds) { %> - <li> - <%= link_to c, [:], [id:resource.id, command:c] %> - </li> - <% } %> - </ul> - - <% if (result != null) { %> - <b>$command</b> result:<br/> - <pre> -<%= h(result) %> - </pre> - <% } %> -</body> -</html> Copied: trunk/ui_plugins/hqu_livedata/views/live/index.gsp (from rev 3910, trunk/ui_plugins/hqu_livedata/index.gsp) =================================================================== --- trunk/ui_plugins/hqu_livedata/views/live/index.gsp (rev 0) +++ trunk/ui_plugins/hqu_livedata/views/live/index.gsp 2007-03-27 00:19:25 UTC (rev 3913) @@ -0,0 +1,11 @@ +<html> +<body> + <h1>Platform LiveData</h1> + + <ul> + <% for (plat in platforms) { %> + <li> <%= link_to plat.name, [action:'showResource'], + [id:plat.id] %> </li> + <% } %> +</body> +</html> Copied: trunk/ui_plugins/hqu_livedata/views/live/showResource.gsp (from rev 3910, trunk/ui_plugins/hqu_livedata/showResource.gsp) =================================================================== --- trunk/ui_plugins/hqu_livedata/views/live/showResource.gsp (rev 0) +++ trunk/ui_plugins/hqu_livedata/views/live/showResource.gsp 2007-03-27 00:19:25 UTC (rev 3913) @@ -0,0 +1,25 @@ +<html> +<body> + <h1>LiveData commands for <%= link_to resource.name, [resource:resource] %> + (<%= resource.appdefResourceTypeValue.name %>)</h1> + + <p> + <%= link_to "<-- Go Back", [action:'index'], [:] %> + </p> + Available commands: + <ul> + <% for (c in cmds) { %> + <li> + <%= link_to c, [:], [id:resource.id, command:c] %> + </li> + <% } %> + </ul> + + <% if (result != null) { %> + <b>$command</b> result:<br/> + <pre> +<%= h(result) %> + </pre> + <% } %> +</body> +</html> Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/BaseController.groovy =================================================================== --- trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/BaseController.groovy 2007-03-27 00:16:24 UTC (rev 3912) +++ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/BaseController.groovy 2007-03-27 00:19:25 UTC (rev 3913) @@ -22,10 +22,16 @@ Log log = LogFactory.getLog(this.getClass()) String action File pluginDir - + private invokeArgs + private String controllerName private AuthzSubject user + private File viewDir + private void setControllerName(String name) { + this.controllerName = name + } + private void setAction(String action) { this.action = action } @@ -36,8 +42,9 @@ def getInvokeArgs() { invokeArgs } - def setPluginDir(File pluginDir) { + void setPluginDir(File pluginDir) { this.pluginDir = pluginDir + viewDir = new File(pluginDir, "views") } def getResourceHelper() { return new ResourceHelper(getUser()) } @@ -148,7 +155,8 @@ else useAction = gspFile - new File(pluginDir, useAction + '.gsp').withReader { reader -> + def subViewDir = new File(viewDir, controllerName) + new File(subViewDir, useAction + '.gsp').withReader { reader -> def eng = new SimpleTemplateEngine(false) def template = eng.createTemplate(reader) Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/dispatcher.groovy =================================================================== --- trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/dispatcher.groovy 2007-03-27 00:16:24 UTC (rev 3912) +++ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/dispatcher.groovy 2007-03-27 00:19:25 UTC (rev 3913) @@ -11,10 +11,10 @@ class Dispatcher { private Log log = LogFactory.getLog(Dispatcher.class); - private File pluginDir private String controllerName private String action - private def invokeArgs + private List path + private def invokeArgs private String capitalize(String s) { if (s.length() == 0) @@ -27,36 +27,56 @@ def servPath = req.servletPath def reqUri = req.requestURI - List path = reqUri[(servPath.length() + 1)..-1].split('/') - - if (path.size() < 3) { - throw new IllegalArgumentException("Path must have at least 3 " + - "components"); - } - - pluginDir = invokeArgs.pluginDir - controllerName = capitalize(path[1]) + "Controller" - action = path[2] + path = reqUri[(servPath.length() + 1)..-1].split('/') this.invokeArgs = invokeArgs } def invoke() { - def controller = Class.forName(controllerName, true, - this.class.classLoader).newInstance() + if (invokeController()) + return + } + + /** + * Attempt to invoke a controller. If the path looks like: + * plugin/controller/action + * then attempt to locate the controller and associated action. + * + * Returns false if the controller wasn't found or the path was + * incorrect (i.e. not likely a controller request, maybe a .css or .html + * request) + */ + def invokeController() { + if (path.size() < 3) + return false + + controllerName = capitalize(path[1]) + "Controller" + def pluginDir = invokeArgs.pluginDir + def appDir = new File(pluginDir, "app") + def contFile = new File(appDir, controllerName + ".groovy") + if (!contFile.isFile()) + return false + + def loader = this.class.classLoader + loader.addURL(appDir.toURL()) + def controller = Class.forName(controllerName, true, + loader).newInstance() + + action = path[2] controller.setAction(action) - controller.setPluginDir(pluginDir) - controller.setInvokeArgs(invokeArgs) + controller.setControllerName(path[1]) + controller.setPluginDir(invokeArgs.pluginDir) + controller.setInvokeArgs(invokeArgs) def runner = controller."$action" - if (runner == null) { + if (runner == null) throw new IllegalArgumentException("Unknown action [$action]") - } def start = System.currentTimeMillis() runner(invokeArgs.request.parameterMap) log.info "Executed $controllerName:$action in " + "${System.currentTimeMillis() - start} ms" + return true } } |
|
From: <rm...@hy...> - 2007-03-27 00:16:32
|
Author: rmorgan Date: 2007-03-26 16:16:24 -0800 (Mon, 26 Mar 2007) New Revision: 3912 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3912 Modified: trunk/plugins/xml/jmx-plugin.xml Log: Add livedata plugin for Sun JVM. Modified: trunk/plugins/xml/jmx-plugin.xml =================================================================== --- trunk/plugins/xml/jmx-plugin.xml 2007-03-26 23:28:44 UTC (rev 3911) +++ trunk/plugins/xml/jmx-plugin.xml 2007-03-27 00:16:24 UTC (rev 3912) @@ -88,6 +88,9 @@ <plugin type="control" class="org.hyperic.hq.product.jmx.MxControlPlugin"/> + <plugin type="livedata" + class="org.hyperic.hq.product.jmx.MxLiveDataPlugin"/> + <actions include="gc"/> <property name="OBJECT_NAME.gc" value="${memory}"/> |
|
From: Noah S. <noa...@hy...> - 2007-03-27 00:14:21
|
That's definitely odd. Does the email go out if you use the "Notify Other Recipients" feature rather than the "Notify Roles" feature? |
|
From: Stacey S. <sta...@hy...> - 2007-03-27 00:00:11
|
Hi Josh, thanks for trying Hyperic and using the forums - we're glad you're enjoying the experience so far! Don't forget to mark the question as answered and award points when you feel your question has been fully answered. It helps everyone know what works, and who still needs help! And thanks for awarding helpful points so far. Its great to give the community feedback on the answers! -Hyperic Team |
|
From: Kevin E. <kel...@dh...> - 2007-03-26 23:52:32
|
Greetings, We've just installed Hyperic HQ 3.0.2. Our initial evaluation has lead us to believe it's quite an amazing monitoring tool! We are having a few problems though: * Apache 2.x Vhosts are not detected. * While the WebLogic 8.1 Admin node, and occasionally Node Manager are detected, it does not detect our managed nodes or any applications running inside. Is there something I must do to properly massage either of these to detect properly? Is there a way to manually add these? Kevin |
|
From: <jt...@hy...> - 2007-03-26 23:28:50
|
Author: jtravis Date: 2007-03-26 15:28:44 -0800 (Mon, 26 Mar 2007) New Revision: 3911 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3911 Modified: trunk/src/org/hyperic/hq/ui/rendit/InvocationBindings.java trunk/src/org/hyperic/hq/ui/rendit/RenditServer.java trunk/src/org/hyperic/hq/ui/rendit/servlet/RenditServlet.java trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/dispatcher.groovy Log: Migrate path parsing to the groovy dispatcher Modified: trunk/src/org/hyperic/hq/ui/rendit/InvocationBindings.java =================================================================== --- trunk/src/org/hyperic/hq/ui/rendit/InvocationBindings.java 2007-03-26 21:17:40 UTC (rev 3910) +++ trunk/src/org/hyperic/hq/ui/rendit/InvocationBindings.java 2007-03-26 23:28:44 UTC (rev 3911) @@ -1,8 +1,6 @@ package org.hyperic.hq.ui.rendit; import java.io.File; -import java.util.Collections; -import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -12,24 +10,18 @@ * the groovy dispatcher. */ public class InvocationBindings { - private List _requestPath; private File _pluginDir; private HttpServletRequest _request; private HttpServletResponse _response; - InvocationBindings(List requestPath, File pluginDir, - HttpServletRequest request, HttpServletResponse response) + InvocationBindings(File pluginDir, HttpServletRequest request, + HttpServletResponse response) { - _requestPath = requestPath; _pluginDir = pluginDir; _request = request; _response = response; } - public List getRequestPath() { - return Collections.unmodifiableList(_requestPath); - } - public File getPluginDir() { return _pluginDir; } Modified: trunk/src/org/hyperic/hq/ui/rendit/RenditServer.java =================================================================== --- trunk/src/org/hyperic/hq/ui/rendit/RenditServer.java 2007-03-26 21:17:40 UTC (rev 3910) +++ trunk/src/org/hyperic/hq/ui/rendit/RenditServer.java 2007-03-26 23:28:44 UTC (rev 3911) @@ -75,11 +75,10 @@ } } - public void handleRequest(List path, HttpServletRequest req, + public void handleRequest(String pluginName, HttpServletRequest req, HttpServletResponse resp) throws Exception { - String pluginName = (String)path.get(0); PluginWrapper plugin; synchronized (CFG_LOCK) { @@ -93,7 +92,7 @@ Binding b = new Binding(); b.setVariable("invokeArgs", - new InvocationBindings(path, plugin.getPluginDir(), + new InvocationBindings(plugin.getPluginDir(), req, resp)); plugin.run("org/hyperic/hq/ui/rendit/dispatcher.groovy", b); } Modified: trunk/src/org/hyperic/hq/ui/rendit/servlet/RenditServlet.java =================================================================== --- trunk/src/org/hyperic/hq/ui/rendit/servlet/RenditServlet.java 2007-03-26 21:17:40 UTC (rev 3910) +++ trunk/src/org/hyperic/hq/ui/rendit/servlet/RenditServlet.java 2007-03-26 23:28:44 UTC (rev 3911) @@ -47,14 +47,16 @@ reqUri = reqUri.substring(servPath.length()); List path = StringUtil.explode(reqUri, "/"); - if (path.size() != 3) { + if (path.size() < 1) { throw new ServletException("Illegal request path"); } - _log.info("Request: " + req.getRequestURI() + "?" + - req.getQueryString()); + String plugin = (String)path.get(0); + _log.info("Request for [" + plugin + "]: " + req.getRequestURI() + + "?" + req.getQueryString()); + try { - RenditServer.getInstance().handleRequest(path, req, response); + RenditServer.getInstance().handleRequest(plugin, req, response); } catch(Exception e) { throw new ServletException(e); } Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/dispatcher.groovy =================================================================== --- trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/dispatcher.groovy 2007-03-26 21:17:40 UTC (rev 3910) +++ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/dispatcher.groovy 2007-03-26 23:28:44 UTC (rev 3911) @@ -6,7 +6,7 @@ /** * The Dispatcher is the direct invocation target called from the HQ * RenditServer. It has the responsibility of locating the controllers, - * setting up the environment, and invoking the request. + * setting up the environment, and invoking the request. */ class Dispatcher { private Log log = LogFactory.getLog(Dispatcher.class); @@ -22,9 +22,13 @@ return s.substring(0, 1).toUpperCase() + s.substring(1).toLowerCase(); } - def Dispatcher(def invokeArgs) { - def path = invokeArgs.requestPath + def Dispatcher(invokeArgs) { + def req = invokeArgs.request + def servPath = req.servletPath + def reqUri = req.requestURI + List path = reqUri[(servPath.length() + 1)..-1].split('/') + if (path.size() < 3) { throw new IllegalArgumentException("Path must have at least 3 " + "components"); @@ -33,7 +37,7 @@ pluginDir = invokeArgs.pluginDir controllerName = capitalize(path[1]) + "Controller" action = path[2] - this.invokeArgs = invokeArgs + this.invokeArgs = invokeArgs } def invoke() { |