monitoring response times of apache web server
by Sarat Beesa
Hi,
I've been trying to get the 'calltime' metrics for my apache web server's
virtual host. I understand from your documentation that we need the RT
module for apache to be available for this to work. I also found that it was
not included in the community edition w.r.t some licensing issue with
Apache. So, when I started searching I found this interested article which
claimed that the RT module and SNMP module from Hyperic can also be used for
integrating with RHQ.
http://community.jboss.org/wiki/MonitoringApacheUsingSNMP
I got the SNMP thing working, but the RT module wouldn't compile. However,
when I skimmed through the server logs I found the class which is gathering
metrics by parsing the RT log file
http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/...
I went through and found that it is only concerned about the format in which
we log in the given log file ( specified through the configuration settings
) and nothing more. So, i tried modifying the standard apache LogFormat
directive to suit the format that RT log supports and checked if it works or
not. As expected, nothing happened. I must be missing something here. Can
anyone leave some clues on how to debug that ?
I've changed the log4j configuration at the agent to DEBUG, expecting to see
some output, but it didn't reveal anything useful yet. I'm still looking
into this though..
Thanks in advance,
Sarat kumar.
12 years, 11 months
Re: rhq-users Digest, Vol 19, Issue 5
by Sarat Beesa
Thanks Heiko for your response. I guess, your solution should address my
problem correctly. However, does RHQ support data trending purely based on
the metrics that it collects ?
For eg: Lets say we have a JMX attribute that reports the live transaction
count, incremented everytime there's a transaction happen in a system. Can I
use RHQ's collection and plotting techniques to identify peak traffic hour
during a day ?
I believe, RHQ is good at plotting the metrics that we expose through our
application but for trending data we should feed the correct data( that is
actual trending data ) to it from within the application. For ex: Active
thread count in Jboss.
Am I missing something here ?
Thanks ,
Sarat kumar.
On Thu, Jul 14, 2011 at 5:30 PM,
<rhq-users-request(a)lists.fedorahosted.org>wrote:
> Send rhq-users mailing list submissions to
> rhq-users(a)lists.fedorahosted.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://fedorahosted.org/mailman/listinfo/rhq-users
> or, via email, send a message with subject or body 'help' to
> rhq-users-request(a)lists.fedorahosted.org
>
> You can reach the person managing the list at
> rhq-users-owner(a)lists.fedorahosted.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of rhq-users digest..."
>
> Today's Topics:
>
> 1. Need suggestions to implement a trend-like metrics (Sarat Beesa)
> 2. Re: Need suggestions to implement a trend-like metrics
> (Heiko W.Rupp)
>
>
> ---------- Forwarded message ----------
> From: Sarat Beesa <sarat.beesa(a)gmail.com>
> To: rhq-users(a)lists.fedorahosted.org
> Date: Wed, 13 Jul 2011 19:05:29 +0530
> Subject: Need suggestions to implement a trend-like metrics
> All,
>
> I've been using RHQ for past couple of days to integrate our application.
> For a newbie like me, RHQ was very easy to learn and ponder around ( UI is
> very intuitive ). I've been able to get it working very quickly with my
> application. Thanks to you guys for coming up with such a great application.
>
>
> Now, I have a situation, where I should demonstrate that RHQ should raise
> an alert in case 'If connectivity to an external interface fails for 3 times
> in past 5 mins" raise a medium priority alert to a given list of Users. To
> demonstrate this I have instrumented my code and exposed a JMX attribute to
> denote this value. The value of the JMX attribute is incremented everytime
> we have a connectivity timeout with the external interface.
>
> RHQ was able to fire an alert, when this counter is reaching the value of 3
> but since this value is not reset from my application it was never able to
> recover from this situation. For ex: After 3 connection timeouts, the
> connectivity to the external interface resumed, so the counter stays at 3
> even for the next collection of metrics, next time RHQ queries the metrics
> it identifies the value again matches the rule and it fires an alert. What
> is the best way to handle in this kind of situation ?
>
> Ideally, if RHQ can measure the difference between two successive
> collections, then it can plot a trend and identify the behavior that
> connectivity has been resumed after sometime. Can RHQ support collection of
> metrics in this way ?
>
> Any suggestions are welcome.
>
> Thanks,
> Sarat kumar.
>
>
> ---------- Forwarded message ----------
> From: "Heiko W.Rupp" <hrupp(a)redhat.com>
> To: rhq-users(a)lists.fedorahosted.org
> Date: Wed, 13 Jul 2011 16:37:05 +0200
> Subject: Re: Need suggestions to implement a trend-like metrics
> Sarat,
>
> > I've been using RHQ for past couple of days to integrate our application.
> For a newbie like me, RHQ was very easy to learn and ponder around ( UI is
> very intuitive ). I've been able to get it working very quickly with my
> application. Thanks to you guys for coming up with such a great application.
>
> Thanks
>
> > Now, I have a situation, where I should demonstrate that RHQ should raise
> an alert in case 'If connectivity to an external interface fails for 3 times
> in past 5 mins" raise a medium priority alert to a given list of Users. To
> demonstrate this I have instrumented my code and exposed a JMX attribute to
> denote this value. The value of the JMX attribute is incremented everytime
> we have a connectivity timeout with the external interface.
> >
> > RHQ was able to fire an alert, when this counter is reaching the value of
> 3 but since this value is not reset from my application it was never able to
> recover from this situation. For ex: After 3 connection timeouts, the
> connectivity to the external interface resumed, so the counter stays at 3
> even for the next collection of metrics, next time RHQ queries the metrics
> it identifies the value again matches the rule and it fires an alert. What
> is the best way to handle in this kind of situation ?
>
> Just send a 1 when the connection is not available and a 0 else.
> Then define an alert that triggers on value > 0.5 and define a dampening
> rule for N occurrences in X minutes
>
> Hope that helps
> 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
>
>
12 years, 11 months
Need suggestions to implement a trend-like metrics
by Sarat Beesa
All,
I've been using RHQ for past couple of days to integrate our application.
For a newbie like me, RHQ was very easy to learn and ponder around ( UI is
very intuitive ). I've been able to get it working very quickly with my
application. Thanks to you guys for coming up with such a great application.
Now, I have a situation, where I should demonstrate that RHQ should raise an
alert in case 'If connectivity to an external interface fails for 3 times in
past 5 mins" raise a medium priority alert to a given list of Users. To
demonstrate this I have instrumented my code and exposed a JMX attribute to
denote this value. The value of the JMX attribute is incremented everytime
we have a connectivity timeout with the external interface.
RHQ was able to fire an alert, when this counter is reaching the value of 3
but since this value is not reset from my application it was never able to
recover from this situation. For ex: After 3 connection timeouts, the
connectivity to the external interface resumed, so the counter stays at 3
even for the next collection of metrics, next time RHQ queries the metrics
it identifies the value again matches the rule and it fires an alert. What
is the best way to handle in this kind of situation ?
Ideally, if RHQ can measure the difference between two successive
collections, then it can plot a trend and identify the behavior that
connectivity has been resumed after sometime. Can RHQ support collection of
metrics in this way ?
Any suggestions are welcome.
Thanks,
Sarat kumar.
12 years, 11 months
Tomcat-5.5.29 detected, but not visible in inventory
by Prashant Nagaraja
Hi ALL,
I have RHQ-4.0.1 (server and agent). The agent is running on MS
Windows 2003-32bit with JRE-1.6.0.23. This host has tomcat-5.5.29
installed in "C:" drive as "C:\Tomcat5529". Tomcat has been enabled
for remote JMX queries as stated in the best practices as
-Dcom.sun.management.jmxremote.port=8008
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
in the JAVA_OPTS. The CATALINA_HOME is set to C:\Tomcat5529 in the
global environment variables.
The issue is that the tomcat instance is detected and ignored by the
agent. The agent's log is:
=======================================
2011-07-07 12:37:05,780 DEBUG
[ResourceDiscoveryComponent.invoker.daemon-2]
(jboss.on.plugins.tomcat.TomcatDiscoveryComponent)- Discovering Tomcat
servers...
2011-07-07 12:37:05,780 DEBUG
[ResourceDiscoveryComponent.invoker.daemon-2]
(jboss.on.plugins.tomcat.TomcatDiscoveryComponent)- Discovered
potential Tomcat process: ProcessScanResult: scan=[ProcessScan:
query=[process|basename|match=^tomcat(5|6)\.exe],
name=[WindowsEWSTomcat]], info=[process: pid=[2700],
name=[C:\Tomcat5529\bin\tomcat5.exe], ppid=[648]]
2011-07-07 12:37:05,780 DEBUG
[ResourceDiscoveryComponent.invoker.daemon-2]
(jboss.on.plugins.tomcat.TomcatDiscoveryComponent)- catalina.home not
found. Checking to see if this is an EWS installation.
2011-07-07 12:37:05,780 ERROR
[ResourceDiscoveryComponent.invoker.daemon-2]
(jboss.on.plugins.tomcat.TomcatDiscoveryComponent)- Ignoring Tomcat
instance due to invalid setting of catalina.home in command line:
[C:\Tomcat5529\bin\tomcat5.exe, //RS//Tomcat5]
2011-07-07 12:37:05,780 DEBUG [InventoryManager.discovery-1]
(rhq.core.pc.inventory.InventoryManager)- Discovery for [Tomcat
Server] resources completed in [0] ms
===================================
The startup parameters ( configured in the JAVA Tab of Tomcat
Configuration under windows ) for Tomcat running as service is:
-Dcatalina_home=C:\Tomcat5529
-Dcatalina_base=C:\Tomcat5529
-Djava.endorsed.dirs=C:\Tomcat5529\common\endorsed
-Djava.io.tmpdir=C:\Tomcat5529\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\Tomcat5529\conf\logging.properties
-Dcom.sun.management.jmxremote.port=8008
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Xms 1024m -Xmx 1024m -Xss128k
How do we resolve this?
--
Thanks & Regards
Prashant N
12 years, 11 months
operation usability
by Naoki Takezoe
Hello,
We are evaluating RHQ 4.0 now. We are focusing to a side of RHQ as
an operation tool, not a monitoring tool.
>From this point of view, RHQ seems to have points to be improved in the
usability as follows:
- We can't see a result of immediately executed operation directly
RHQ displays a list of scheduled jobs after we click "Schedule"
button. Even if we execute a job immediately, we have to look for a
result from list of results when we want to see the result. We think
it would be nicer if RHQ displays an operation result directly when
the job was executed immediately.
- It needs very complicated procedure to see results of operation for
grouped resources
RHQ displays resource list as a result of operation for grouped
resources and then we have to choose one of them to see a actual
result of each resource. We think it would be nicer if results of
operation for grouped resources are displayed at a same place so
that we can see these all results at a time.
Is there any plan to improve usability of operation results in the
future version of RHQ?
Regards,
--
Naoki Takezoe
12 years, 11 months
web service plugin
by John Holland
I'm trying to write a plugin that will use the management capability in
Jboss w/regard to web services. I have created an XML plugin definition
which the server and agent have accepted and have a web service in the
server as seen by the jmx console. But nothing is happening with my
plugin being used to discover the web service. Can anyone advise me on
what I have done wrong?
Thanks,
John Holland
======================================================
<plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:xmlns:rhq-plugin" xmlns:c="urn:xmlns:rhq-configuration"
name="myws-plugin" version="1.0" displayName="Custom JMX Plugin">
<depends plugin="JMX"/>
<!--
This service represents your custom MBean. You can have any number of
these defined. ***Do not change the "discovery" and "class" attribute
values.***
-->
<service name="My Custom Service" description="A custom service
representing a single custom MBean"
discovery="org.rhq.plugins.jmx.MBeanResourceDiscoveryComponent"
class="org.rhq.plugins.jmx.MBeanResourceComponent">
<!--
Denotes that the custom MBean can be found in any custom JMX server
detected via EMS or it can be in any JBossAS resource. You typically do
not have to change these, unless you want to add new types inside which
your service can run.
-->
<runs-inside>
<parent-resource-type name="JMX Server" plugin="JMX"/>
<parent-resource-type name="JBossAS Server" plugin="JBossAS"/>
</runs-inside>
<!-- Define the object name of your custom MBean -->
<!-- If the MBean name has dynamic keys, use %% as in: -->
<!-- myDomain:type=myMBean,id=%myKey% -->
<!--
Then define a simple-property "myKey" so it can be stored when
auto-discovered.
-->
<plugin-configuration>
<c:simple-property name="objectName"
default="myDomain:type=org.jboss.wsf.framework.management.ManagedEndpoint"
readOnly="true"/>
</plugin-configuration>
<!--
Define any operations your custom MBean exposes and that you want to
invoke via RHQ.
-->
<!-- <operation name="mbeanOperationName" displayName="Friendly
Operation Name" description="This describes what the MBean's operation
does"/> -->
<!--
Define any attributes your custom MBean exposes and that you want
monitored via RHQ. NOTE: The property attribute should start with a
capital letter.
-->
<!-- <metric property="MBeanAttributeName" displayName="Friendly
Attribute Name" defaultOn="true" category="performance"
description="This describes what the MBean's attribute means"/> -->
<metric property="RequestCount" displayName="Request Count"
defaultOn="true" category="performance" description="Number of Requests"/>
<metric property="ResponseCount" displayName="Response Count"
defaultOn="true" category="performance" description="Number of Responses"/>
</service>
</plugin>
12 years, 11 months
Irc channel #rhq is now logged
by Heiko W.Rupp
Hi,
JBott is now logging the #rhq channel - and you can access the daily log files at
http://transcripts.jboss.org/channel/irc.freenode.org/%23rhq/
Meeting logs will be also posted separately and referenced
from the respectitive meeting pages.
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
12 years, 12 months