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
JMX notifications from MC4J/EMS
by Elias Ross
Hi.
So I'm considering adding support for JMX notifications in RHQ.
>From what I can tell, the steps are basically:
1. For each EmsBean.getNotifications() (returns set of interface
EmsNotification).
2. Determine if we should listen or not to its notifications (through
configuration? always?) Not sure how to indicate in XML this detail.
3. Pass MBeanResourceComponent (implementing EmsNotificationListener)
to EmsNotification.addNotificationListener
4. Call EmsNotification.startListening ...
5. At stop time, ensure EmsNotification.stopListening is called
6. As for how the events get to RHQ, essentially it involves calling
org.rhq.core.pluginapi.event.EventContext.publishEvent( ... )
And a reference to EventContext is obtained through initialization.
One problem I see is the DNotification instance currently captures
every event in member variable "events", which looks like a big memory
leak waiting to happen... This is the only times "events" is
referenced in the class.
public class DNotification implements EmsNotification {
protected List<EmsNotificationEvent> events = new
ArrayList<EmsNotificationEvent>();
public List<EmsNotificationEvent> getEvents() {
return Collections.unmodifiableList(events);
}
protected void fireNotifications(EmsNotificationEvent event) {
events.add(event);
...
}
So I think what needs to happen is modification of this class. If
there are no listeners, then maybe capture the event (still sounds
bad); otherwise the event is passed on.
12 years, 11 months
Update Resource Configs via rhq-cli
by Rafael Soares
Hello!
I need to enable the log events for a lot of JBossAS5 resources. This task
is boring and takes a long time to finish if you do it manually through RHQ
UI. So I'm trying to do this via rhq-cli. how can I update a JBossAS5
resource's configuration using the RHQ Remote/Domain API?
I'm trying using a JS script like this:
var serverJBoss = ProxyFactory.getResource(<resource ID>);
var mapJBossConfig =
serverJBoss.pluginConfiguration.getMap().get("logEventSources").getList().get(0).getMap();
This return a java.util.Map holding the PropertySimple's objects like this:
{*enabled*=PropertySimple[id=345369, name=enabled, value=false,
override=null], *logFilePath*=PropertySimple[id=345368, name=logFilePath,
value=/u01/app/jboss/jboss-4.2.2.GA/server/defaul/log/server.log,
override=null], *includesPattern*=PropertySimple[id=345371,
name=includesPattern, value=null, override=null],
*minimumSeverity*=PropertySimple[id=345372,
name=minimumSeverity, value=null, override=null],
*dateFormat*=PropertySimple[id=345370,
name=dateFormat, value=null, override=null]}
After update these ProperySimple's objs how can I update the Resource's
Configuration on Server? Can someone help me?
Thanks!
____________________________
Rafael Torres Coelho Soares
rafaelcba(a)gmail.com
http://rafaeltuelho.wordpress.com
Brasília - DF - Brasil
12 years, 11 months
Re: Custom UI?
by Heiko W.Rupp
Hey,
I've added a (blank) wiki page at http://rhq-project.org/display/RHQ/Design-REST to discuss and
design this REST interface.
Heiko
Am 09.05.2011 um 10:49 schrieb Heiko W.Rupp:
> Steve,
>
> Am 07.05.2011 um 10:01 schrieb smillidge(a)c2b2.co.uk:
>
>> +1 from me. I've built a number of custom UIs as dashboards for customers and the current api is horrible!
> And +1 from me as well.
>
>> A REST api would be great but will need some careful design. My team is happy to help.
>
>
> Do you already have something in mind? Just exposing the resource tree and then e.g.
> metrics as sub-elements is only half of the game (but would be an excellent start).
>
> What do you need from us to be able to help here?
>
> 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: Brendan Lane, Charlie Peters, Michael Cunningham, Charles Cachera
>
> _______________________________________________
> rhq-users mailing list
> rhq-users(a)lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/rhq-users
--
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: Brendan Lane, Charlie Peters, Michael Cunningham, Charles Cachera
12 years, 11 months
Error on RHQ Server first startup (after build process)
by Rafael Soares
Hello guys.
I'm trying to start RHQ Server just after building process but the following
error occurs:
"...
2011-05-26 18:29:50,334 INFO [org.jboss.web.tomcat.service.TomcatDeployer]
deploy, ctxPath=/installer, warUrl=.../deploy/rhq-postinstaller.war/
2011-05-26 18:29:50,339 INFO [org.rhq.helpers.rtfilter.filter.RtFilter] --
Filter destroy: 0 requests processed (hashCode=14308001).
2011-05-26 18:29:50,395 INFO [org.rhq.helpers.rtfilter.filter.RtFilter]
Initialized response-time filter for webapp with context root 'installer'.
2011-05-26 18:29:50,407 INFO [org.jboss.deployment.EARDeployer] Init J2EE
application:
file:/home/rsoares/projects/rhq/dev-container/jbossas/server/default/deploy/rhq.ear/
2011-05-26 18:29:59,327 INFO [org.jboss.system.ServiceConfigurator] Problem
configuring service rhq:service=PluginDeploymentScanner
org.jboss.deployment.DeploymentException: No Attribute found with name:
LicenseFile
at
org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:318)
at
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:462)
at
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
at
org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.install(Unknown Source)
...
2011-05-26 18:30:18,717 INFO [org.jboss.ejb3.EJB3Deployer] Deployed:
file:/home/rsoares/projects/rhq/dev-container/jbossas/server/default/deploy/rhq.ear/rhq-core-domain-ejb3.jar/
2011-05-26 18:30:22,815 INFO [org.jboss.ejb3.EJB3Deployer] Deployed:
file:/home/rsoares/projects/rhq/dev-container/jbossas/server/default/deploy/rhq.ear/rhq-enterprise-server-ejb3.jar/
2011-05-26 18:30:22,817 INFO [org.jboss.web.tomcat.service.TomcatDeployer]
deploy, ctxPath=/coregui, warUrl=.../deploy/rhq.ear/coregui.war/
2011-05-26 18:30:24,187 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/coregui]]
Exception starting filter CacheControlFilter
java.lang.ClassNotFoundException:
org.rhq.enterprise.gui.coregui.server.filter.CacheControlFilter
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:249)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3722)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4367)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
..."
The build process is ok:
"
...
[INFO] RHQ Enterprise Server EAR ............................. SUCCESS
[1:23.813s]
[INFO] RHQ Enterprise Container Library ...................... SUCCESS
[1.253s]
[INFO] RHQ Enterprise Server Container ....................... SUCCESS
[4:47.275s]
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 19 minutes 35 seconds
[INFO] Finished at: Thu May 26 18:27:26 BRT 2011
[INFO] Final Memory: 163M/504M
[INFO]
------------------------------------------------------------------------
"
The full server log was attached here.
Any one knows about this?
Thanks.
____________________________
Rafael Torres Coelho Soares
rafaelcba(a)gmail.com
http://rafaeltuelho.wordpress.com
Brasília - DF - Brasil
12 years, 11 months
Fwd: RHQ and AS7
by Heiko W.Rupp
Hello,
> ( Re-scheduled as I was not aware of Memorial Day when I was originally scheduling it )
this is an invite for a meeting that discusses additional requirements on the RHQ server + UI from the AS7 management
point of view.
The meeting will be on irc in the #rhq channel (irc://irc.freenode.net/#rhq )
If your firewall does not support irc, you can use the Gateway at http://webchat.freenode.net/?channels=rhq
Meeting notes will be published afterwards.
Anfang der weitergeleiteten E-Mail:
> Von: Heiko Rupp <hrupp(a)redhat.com>
> Datum: 26. Mai 2011 21:56:34 MESZ
> Betreff: RHQ and AS7
>
> Der folgende Sitzungstermin wurde geändert:
>
> Betreff: RHQ and AS7
> Organisator: "Heiko Rupp" <hrupp(a)redhat.com>
> Ort: Irc #rhq
> Uhrzeit: Dienstag, 31. Mai 2011, 17:00:00 - 18:00:00 GMT +01:00 Amsterdam, Berlin, Bern, Rom, Stockholm, Wien [GEÄNDERT]
> Eingeladene Teilnehmer: "ON Team" ; "Heiko Rupp" ; "Michael Foley" ; "Stefan Negrea" ; "Charles Crouch" ; "Alan Santos"
> *~*~*~*~*~*~*~*~*~*
>
> ( Re-scheduled as I was not aware of Memorial Day when I was originally scheduling it )
>
> I wanna discuss what needs to be done server side (server + UI ) in order to better support AS 7
>
>
> Basically I want to go over the child pages of http://rhq-project.org/display/RHQ/RHQ_AS7 where the title starts with "Needed"
--
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: Brendan Lane, Charlie Peters, Michael Cunningham, Charles Cachera
12 years, 11 months
Fwd: RHQ and AS7
by Heiko W.Rupp
Hello,
this is an invite for a meeting that discusses additional requirements on the RHQ server + UI from the AS7 management
point of view.
The meeting will be on irc in the #rhq channel (irc://irc.freenode.net/#rhq )
If your firewall does not support irc, you can use the Gateway at http://webchat.freenode.net/?channels=rhq
Meeting notes will be published afterwards.
Anfang der weitergeleiteten E-Mail:
> Von: Heiko Rupp <hrupp(a)redhat.com>
> Datum: 26. Mai 2011 15:35:02 MESZ
>
> Betreff: RHQ and AS7
>
> Neue Sitzungsanfrage:
>
> Betreff: RHQ and AS7
> Organisator: "Heiko Rupp" <hrupp(a)redhat.com>
> Ort: Irc #rhq
> Uhrzeit: Montag, 30. Mai 2011, 17:00:00 - 18:00:00 GMT +01:00 Amsterdam, Berlin, Bern, Rom, Stockholm, Wien
> Eingeladene Teilnehmer: "ON Team"
> *~*~*~*~*~*~*~*~*~*
>
> I wanna discuss what needs to be done server side (server + UI ) in order to better support AS 7
>
> Basically I want to go over the child pages of http://rhq-project.org/display/RHQ/RHQ_AS7 where the title starts with "Needed"
--
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: Brendan Lane, Charlie Peters, Michael Cunningham, Charles Cachera
12 years, 11 months