Dynamically adding new metrics
by Al Amyot
Is there any way for a Script plugin to "find" and add new metrics?
Normally, these are hardcoded in the xml configuration file of course.
For example, let's say the script queries a database "where name like
'metric%'"
Then for each returned row, returns a value for 'metric1', metric2'
etc..
As the returned list changes, new metric collection would begin and
deprecated ones might stop.
Currently, I am using RHQ 3
Al Amyot | Consultant
Sierra Systems
(eHealth): 204-926-4257 (T): 204-942-2575 (C): 204-230-7911 (F):
204-942-2047
444 St. Mary Avenue, Suite 1050
Winnipeg, MB R3C 3T1
Management Consulting | System Integration | Managed Services
website: www.SierraSystems.com <http://www.sierrasystems.com/>
This email and/or any documents in this transmission is intended for the
addressee(s) only and may contain legally privileged or confidential information. Any unauthorized use, disclosure, distribution, copying or dissemination is strictly prohibited. If you receive this transmission in error, please notify the sender immediately and return the original.
Ce courriel et tout document dans cette transmission est destiné à la personne ou aux personnes à qui il est adressé. Il peut contenir des informations privilégiées ou confidentielles. Toute utilisation, divulgation, distribution, copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas le destinataire de ce message, veuillez en informer l'expéditeur immédiatement et lui remettre l'original.
12 years, 4 months
Defining alerts across multiple resources
by Al Amyot
If I understand alert definitions correctly, they can only test
availability, traits and metrics within one resource. This means that I
cannot test for server1=DOWN AND server2=DOWN as a simple example.
Is this correct? If so, has any consideration been given to making the
alerting system more 'global' in scope?
Al Amyot | Consultant
Sierra Systems
(eHealth): 204-926-4257 (T): 204-942-2575 (C): 204-230-7911 (F):
204-942-2047
444 St. Mary Avenue, Suite 1050
Winnipeg, MB R3C 3T1
Management Consulting | System Integration | Managed Services
website: www.SierraSystems.com <http://www.sierrasystems.com/>
This email and/or any documents in this transmission is intended for the
addressee(s) only and may contain legally privileged or confidential information. Any unauthorized use, disclosure, distribution, copying or dissemination is strictly prohibited. If you receive this transmission in error, please notify the sender immediately and return the original.
Ce courriel et tout document dans cette transmission est destiné à la personne ou aux personnes à qui il est adressé. Il peut contenir des informations privilégiées ou confidentielles. Toute utilisation, divulgation, distribution, copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas le destinataire de ce message, veuillez en informer l'expéditeur immédiatement et lui remettre l'original.
12 years, 4 months
RHQ 4.2 and JBoss AS 6.1
by Fernando Lozano
Hi there,
Is RHQ 4.2 supposed to be able to manage JBoss AS 6.1 instances ?
Here I have two as 6.1 instances on the same machine, one with a
password-protected jmx invoker, other is a plain "default" instance running
as ports-01. For the first one, the agent discovers only resources
(datasources, connection factories and jboss web) and the Service Binding
Manager. For the second one, it also discovers JVM and mod_cluster (but
with a problem icon "i"), besides resources. The agent doesn't for any of
them apps soch as ROOT.war.
I already tried forcing a manual discovery on the agent. Actually it was
necessary after I updated the connection setttings for the first instance,
as its JMX was password-protected. But this made discovery find only
resources, nothing else.
[]s, Fernando Lozano
12 years, 4 months
RHQ Agent disable automatic discovery
by Alan Evans
Is it possible to tell the RHQ agent not to do discovery on startup
and then at intervals later?
I have seen the following properties but I would like to prevent
automatic discovery all together.
rhq.agent.plugins.server-discovery.*
rhq.agent.plugins.service-discovery.*
rhq.agent.plugins.content-discovery.*
I have run up against the bug found in the following links where RHQ
calls an API in JBoss that triggers apps to be undeployed and
re-deployed. This is problematic in general but even more for the app
my servers are running. But I would like to let RHQ continue to
collect metrics and availability from my JBoss instances.
https://bugzilla.redhat.com/show_bug.cgi?id=744803
https://issues.jboss.org/browse/JBPAPP-7545
Regards,
-Alan
12 years, 4 months
Postgresql installation
by ��������� ������
At Postgresql Quick Start installtion from this page http://rhq-project.org/display/JOPR2/PostgreSQL
4. Create a PostgreSQL role named rhqadmin with password rhqadmin. Do this via pgAdmin or as follows from the command line:cd <postgres-install-dir>
createuser -h 127.0.0.1 -p 5432 -U postgres -S -D -R rhqadmin
should be fix to this one
Create a PostgreSQL role named rhqadmin with password rhqadmin. Do this via pgAdmin or as follows from the command line:cd <postgres-install-dir>
createuser -h 127.0.0.1 -p 5432 -U postgres -S -D -R -P rhqadmin
-P parameter will prompt to enter password for rhqadmin
thankyou
jun
12 years, 4 months
Import group definitions
by Romain Pelisse
Hi all,
I'm working a java tool to export RHQ configuration and import in a new
instance - which should help migrating instance between version and/or
databases. I managed to export group definition, by tricking a little bit
the Remote API (2.4.2):
resources =
getResourceGroupManager().findResourceGroupsByCriteria(baseRemote.getSubject(),
criteria);
for ( ResourceGroup resource : resources ) {
definitions.add(resource.getGroupDefinition());
}
However, I'm pretty much stuck right now, when it comes to importing those
group. I've tried to "pass them along" with a dummy group definition...
ResourceGroup resGroup = new ResourceGroup("dummy2");
for ( GroupDefinition groupDefinition : groupDefinitions )
resGroup.setGroupDefinition(groupDefinition);
... but it failed as Hibernate is complaining (rightfullly) that those
entities are transient...
Any proper way to do this ? Would it be difficult to change RHQ code to
allow that ? If so, I'll be happy to be pointed to the right direction...
Thanks a lot !
--
Romain PELISSE,
*"The trouble with having an open mind, of course, is that people will
insist on coming along and trying to put things in it" -- Terry Pratchett*
http://belaran.eu/wordpress/belaran
12 years, 4 months
Suggestions for PIQL processor/process resource/alert engine
by Alan Evans
Excuse my recent SPAM. I really dig RHQ, I think it has a lot of
potential but there are few things I would like it to do. Ok on to my
suggestions.
PIQL:
-- A way to select a process based on user, and group attributes?
user, effective user, login user, group, effective group, login group
and by name or uid/gid?
maybe:
process|user|foo
process|uid|500
process|group|foo
process|gid|500
process|euser|bar
process|luid|500
Process resource:
-- A way to return a number of processes matching a PIQL as a trait?
Or maybe a trait for number of processes that match? This way an
alert could be made for num process > = < some number. I.e. we have a
check that looks to make sure there are not more than a certain number
of java processes running. Otherwise it indicates that batch jobs are
not completing.
-- What about returning information that could be retrieved using
uname as traits like max open file descriptors, max processes etc
Alert Engine:
-- The ability to compare one attribute to another or an attribute to
a trait? Or a percentage of trait?
Alert when open files > 90% max open files
Alert when Java Heap > 90% max heap size
-- Perhaps a way of defining recovery thresholds without having to
define recovery alerts. Maybe wizard to build a recovery alert that
is created under the hood but hidden from the alert definition view.
Maybe like having the conditions tab have a "recovery conditions" tab
and "recovery damping" or recovery tab with "conditions" and "dapming"
subtabs? It is cumbersome to have to create a recovery alert and then
its associated alert, or create an alert then its recovery alert then
go edit the original again to assign its recovery alert. (If that
makes sense...)
I would love to hear other people's thoughts and whether or not these
ideas might be useful others.
Regards,
-Alan
12 years, 4 months
Add process resource to multiple platforms
by Alan Evans
If I wanted to add a process resource to multiple platforms what is
the best way to go about doing that?
Is there a method I can use with groups to do it?
Is there a resource template or something I can use?
Can a simple plugin be written (i.e. no java, just descriptor) to
create these resources? (This would presumably let me be able to
customize the name of the resource, name = "Backup Daemon" instead of
parsing it from <piql>process|basename|match=nsrexecd</piql>)
I am looking for a quick way to duplicate some of the monitors we have
going in Nagios that just look for processes to be running. This way
I can create avalibility alerts w/ RHQ instead of Nagios. Sure I
could use the nagios plugin but a more native way seems more
appealing.
Thoughts?
Regards,
-Alan
12 years, 4 months
Export and Import Alert/Drift Definitions
by Alan Evans
Is it possible to import/export alert or drift definitions? I created
a few items under JBossAS Server from the JBossAS plugin but meant for
them to be in the JBossAS5 plugin.
Perhaps that is another request, to differentiate the RHQ JBossAS
Server plugin from the generic JBossAS 5 Server plugin.
Regards,
-Alan
12 years, 4 months
Suggestion - JBossAS add process resource to JBossAS Server resource
by Alan Evans
Would it be possible to expose a process resource as part of a JBossAS
server or maybe the JBossAS JVM Object instead of having to add a
process resource to a platform? It would be useful to collect that
info and setup alert templates as part of the JBossAS Server template
without having to rely on piql or pid file to add the process resource
to a platform.
Regards,
-Alan
12 years, 4 months