Need advice about agent plugin design
by Steven North
I am trying to design an RHQ/JON agent plugin to manage a software
resource with the following characteristics:
- there is the software itself (the installation);
- there are a variable number of "bundles" of configuration information
about 250KB in size each which need to be read from and written to the
agent; and
- there are "log" files which can 10-50MB in size each which need to be
read from the agent.
I think I am pretty clear on how to handle the software itself--just
like any number of other agents.
I am not sure how to handle the configuration bundles and the large log
files.
We might want to have the RHQ/JON server manage different versions of
these configuration files and distribute them to multiple remote agents.
Is there some existing domain object that would handle the read/write
aspect of the configuration bundles (zip files)? Could the "package"
concept be used for these? Would we need to create a new domain object
on the server side for these bundles? If so, is there an example of
this kind of thing?
For the log files, I see some mention of the SupportFacet. Would this
be appropriate for retrieving large log files? Is there an example of this?
We expect to access the configuration bundles and the log files using
remote client operations because we have a separate GUI tool to
build/edit the configuration bundles and to correlate and analyze the
log files. Is there an example of using a remote client to pull files
from and push files to remote agents?
Thanks in advance for any advice you can give or examples you can point to.
Steve
10 years, 1 month
GWT @ IO
by Jiri Kremser
Hi, I've got bad news. It looks like the only presentation at Google IO about GWT is called "Migrating Code from GWT to Dart". What I am trying to say is that it looks like there will be less and less support in the long term, depending on how the Dart will be successful. Unfortunately, Martin Fowler's http://www.thoughtworks.com/radar has basically the same opinion. There is still vibrant community and a lot of projects out there built with GWT, but to me it looks like the beginning of the very slow end.
JK
11 years, 9 months
Change to the RHQ Oracle Plugin
by Richard Hensman
Hi
I have updated the RHQ Oracle plugin so that it will connect to an Oracle
database via a Service Name as well as a SID. Please find attached change
set. Could this be considered for the next RHQ release?
thanks
Richard
11 years, 9 months
RHQ - incomplete deployment
by Krzysztof Kwaśniewski
Hi!
I have encountered problems when trying to deploy RHQ and access it
via a web browser at http://127.0.0.1:7080. I have made the following steps:
1. Updated the code (git pull outputs „Already up-to-date.”)
2. Created two databases: rhq and rhqdev in postgresql and granted all
permissions on them to rhqadmin.
3. Changed postgresql configuration (standard_conforming_strings = off)
according to [1]
4. Built the code: JAVA_HOME=/usr/lib/jvm/java-6-openjdk mvn
-Penterprise,dev -Ddbsetup -DskipTests install
The build was successful.
5. Then in ./dev-container/bin I have executed:
RHQ_SERVER_JAVA_HOME=/usr/lib/jvm/java-6-openjdk/jre ./rhq-server.sh start
6. Each time I try to log on at http://127.0.0.1:7080 with
rhqadmin/rhqadmin, I get an error: „The username or password provided
does not match our records”. In the logs there are a couple of error
messages [2], among which there is: „ERROR
[org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete
Deployment listing:”
What am I doing wrong here? If the build was successful, why is the
database's structure wrong and how to fix it? I have followed this
instructions: [3]
My configuration:
1) uname -a
Linux feniks 3.0.0-21-generic #35-Ubuntu SMP Fri May 25 17:57:41 UTC
2012 x86_64 x86_64 x86_64 GNU/Linux
2) mvn --version
Apache Maven 2.2.1 (rdebian-6)
Java version: 1.7.0_147-icedtea
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: pl_PL, platform encoding: UTF-8
OS name: "linux" version: "3.0.0-21-generic" arch: "amd64" Family: "unix"
(but notice how I chose jdk 6 when building and running RHQ)
3) psql --version
psql (PostgreSQL) 9.1.4
contains support for command-line editing
[1] https://bugzilla.redhat.com/show_bug.cgi?id=741855
[2] http://pastebin.com/4kZpRZ0k
[3]
https://docs.jboss.org/author/display/RHQ/Building+RHQ#BuildingRHQ-BuildRHQ
Cheers
Krzysiek
11 years, 10 months
More RHQ Java Client library problems...
by Steven North
Hello,
Back in September 2011 I posted about problems moving from RHQ 4.0.1 to 4.1 and was able to resolve the problem by stepping up to the 4.1 JARs to talk to the 4.1 and 4.01 RHQ server. Well, now I'm back with problems stepping up to RHQ 4.4 libraries. In this case we are trying to talk to both a JON 3.01 (=RHQ 4.2) and JON 3.1beta (=RHQ 4.4) server. The RHQ 4.1 libraries worked fine with the JON 3.01 server but not with the JON 3.1beta server, so we stepped up to the RHQ 4.4 libraries. These work with the JON 3.1beta server but not with JON 3.01(= RHQ 4.2) nor with an RHQ 4.1 server.
Below is the trraceback from trying to connect to either an RHQ 4.1 or an RHQ 4.2 server using the RHQ 4.4 libraries.
Is this a known and purposeful incompatibility or is this unexpected. Is there anything we can do about this other than use different sets of libraries for each RHQ server version (that differs)?
Thanks in advance,
Steve
Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. org.rhq.core.domain.measurement.Availability; incompatible types for field startTime. Response: OK/200.
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:348)
at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:137)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.remoting.Client.invoke(Client.java:536)
at org.rhq.enterprise.clientapi.RemoteClientProxy.doInvoke(RemoteClientProxy.java:85)
at org.rhq.bindings.client.AbstractRhqFacadeProxy.invoke(AbstractRhqFacadeProxy.java:87)
at org.rhq.enterprise.clientapi.RemoteClientProxy.invoke(RemoteClientProxy.java:69)
at $Proxy7.getCurrentAvailabilityForResource(Unknown Source)
at com.ocsystems.rtiee.util.jon.JonClientSession.isResourceAvailable(JonClientSession.java:4598)
... 8 more
Caused by: java.io.InvalidClassException: org.rhq.core.domain.measurement.Availability; incompatible types for field startTime
at java.io.ObjectStreamClass.matchFields(ObjectStreamClass.java:2205)
at java.io.ObjectStreamClass.getReflector(ObjectStreamClass.java:2100)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:600)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObjectVersion2_2(JavaSerializationManager.java:239)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:133)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:120)
at org.jboss.remoting.marshal.http.HTTPUnMarshaller.read(HTTPUnMarshaller.java:69)
at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:516)
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:307)
... 18 more
11 years, 10 months
Upload progressbar
by Jiri Kremser
Hi all,
I would like to add a progressbar while uploading a file (BZ 816942) so I've explored the possibilities and found out the gwtupload (http://code.google.com/p/gwtupload/) framework could do the work. It expects the apache commons-fileupload on the server-side, which we already use. Since it is pure-GWT extension, I've created the standalone Eclipse project with SmartGWT + gwtupload integration as a proof of concept, and it seems, it works well together. I know it may look like step backward to go with pureGWT component + SmartGWT wrapper, but there is no other option. There is no such support in SmartGWT.
sample: https://github.com/Jiri-Kremser/gwtupload-sample
(It's not maven project)
JK
11 years, 10 months
Auditing
by Heiko W.Rupp
Hi,
I just came across the javadoc of this method:
org.rhq.enterprise.server.operation.OperationManagerLocal#deleteOperationHistory
" Purges the history from the database. Doing this loses all audit trails of the invoked operation. "
I wonder how much we would want an audit subsystem, where e.g. the some information of the
history + who scheduled it originally and who removed the record is just appended to a table.
The same is of course true for other subsystems.
--
Reg. Adresse: Red Hat GmbH, Technopark II, Haus C,
Werner-von-Siemens-Ring 14, D-85630 Grasbrunn
Handelsregister: Amtsgericht München HRB 153243
Geschaeftsführer: Mark Hegarty, Charlie Peters, Michael Cunningham, Charles Cachera
11 years, 10 months
Tomcat agent plugin problem
by David A. Webster
Using the latest release of RHQ 4.4, and Tomcat 7 I discovered a parsing
error on the connector mbeans when using the native APR variant of them.
The mbean names have embedded quotes and the parser chokes with a
NumberFormatException, probably trying to extract the port. This causes
the agent to be unable to communicate with any of the configured
connectors and the console to permanently mark them as unavailable, and
any deployed Web Modules as down. I entered a Bug report, below:
Bug 833059
Thanks,
David Webster
Union Pacific Railroad
Lead Architect-Systems Engineering
Phone: (402) 544-1094 | Email: dawebster(a)up.com
**
This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
**
11 years, 10 months
Re: Data older then 7 days
by Heiko W.Rupp
Roberto,
Am 16.06.2012 um 16:39 schrieb Roberto Palmieri:
>
> is it possible to retrieve and store via REST data older than 7 days? I ask this because I put with successful on a sceduleID 1 year of samples using REST but when I ask for this data via rest, RHQ returns only 7 days.
The bucketed data (not the raw) can return up to a year.
So you don't use the ... /raw url , but the one without /raw at the end to access it.
>
> There is a way to extend this time?
We don't keep more than 7 days in raw format, but instead compress into 1h, 6h and 1d averages.
Changing this would mean to change some of the DB table layout and the logic to populate the tables
and pull from them.
This would also mean that the database size would increase considerably.
As we are thinking of changing the database backend for metrics, this could be something to consider for the future
and to allow users with vast amounts of disk space to store considerably more raw data in them.
Heiko
--
Reg. Adresse: Red Hat GmbH, Technopark II, Haus C,
Werner-von-Siemens-Ring 14, D-85630 Grasbrunn
Handelsregister: Amtsgericht München HRB 153243
Geschaeftsführer: Mark Hegarty, Charlie Peters, Michael Cunningham, Charles Cachera
11 years, 10 months
syntax highlighting for blogs
by John Sanda
If you do any blogging where you include any kind of source code in your
posts, then the following may be of interest to you. I have a pretty
simple set up using blogger. I configured my blog to use
SyntaxHighlighter. It is all client side, and it was a bit of a pain to
set up. That criticism might however be better directed at blogger. I
noticed on some of the aggregate feeds like at planet.jboss.org and now
at jboss.org/rhq that the highlighting is lost. The highlighting also
doesn't render so great on mobile devices. Earlier this evening I
switched over to using gist.github.com. If you are not familiar with
gist, it is similar to pastebin. There are some really nice things about
gist though. Every gist is a git repo that can be cloned or forked. You
can make edits and add comments as well. It has nice syntax highlighting
for quite a large number of languages. Including a gist in your blog
only involves a few simple steps:
* Create the gist.
* Click on the "embed" link in the upper right corner of the gist window.
* Copy and past the link into your post.
The link looks something like <script
src="https://gist.github.com/2921426.js?file=discovery_component.clj"></script>.
The syntax highlighting is not lost in the aggregate feeds, and I also
think it looks better on mobile devices as well.
- John
11 years, 10 months