Resolved - How do I enable web and sessions metric in JON 3.1.1 with jboss-as-7-plugin
by Claudianus A
Hello All -
I finally got my issue with enabling web sessions metric in JON 3.1.1 with
jboss-as-7-plugin resolved. It was that hard after all. I was just not
paying attention to what the CLI was returning when I try to read the
resource for the web sub system. All I had to do was update my updated
deployment descriptor for the plugin using the values from the management
interface i.e. running
./jboss-cli.sh --connect controller=ip:9999
"/deployment==xxx.war/subsystem=web:read-resource(include-runtime=true)"
and use the values from that command's output the updated descriptor (see
attachment).
I have tried to do the same thing for servlet but I think I was missing
something because when I run the following command
./jboss-cli.sh --connect controller=ip:9999
"/deployment=earName.ear/subdeployment=warName.war/subsystem=web/servlet=servletName:read-resource(include-runtime=true)"
and included that output in my updated deployment descriptor The values
from the monitor for those metrics were NaN. So I removed them for the time
being since that was not what I needed.
Anyhow thank you all for your suggestions and help.
--
Claudianus
11 years, 5 months
Re: Re: issues adding CLI script to JON 3.1.1
by Claudianus A
Hello Lucas -
Thank you for the reply.
Yes I heard about the bug you referenced.
Actually I started adding my script to the alert when I define them but
since nothing was happening I thought that I might not have followed the
proper procedures and that is why I went through the Content deployment
guide and saw the steps to upload a CLI script as a package and decided to
try it and see if the outcome would be any different but I was stopped by
the bug. So for now I will continue adding the script to the alert.
Another reason I decided to try uploading the script through the content
repository was to see if I would be able to add tokens to the script
somehow. I know that only resource operations allow token for now but I was
curious to see if loading the script into the content would allow that.
The reason behind this is that I think there is a need for script attached
to alerts to allow tokens to make them more flexible so that other
parameters that cannot be derived from the alert and the resource that
triggered it can be passed in to the script.
Anyway thank you for the answer and I will continue to use the workaround
for now.
Regards,
--
Claudianus
11 years, 6 months
Re: Re: How do I enable web and sessions metric in JON 3.1.1 with jboss-as-7-plugin
by Claudianus A
Hello Jay -
Thank you for the reply.
I was not sure that was all I needed to do. I was just experimenting to see
what it would take to enable those metrics. After I added those metrics in
the deployment descriptor I saw that I could see and enable those metrics
but when I look at them under monitoring the values are listed as NaN. I
changed the schedules for some of them to 5 minutes to see if anything
happens. I haven't seeing much so far but I am keeping an eye on them.
As far as the alert definition goes I was using the Measurement Absolute
Value Threshold.
I am suspecting that the issue is in regard t to the collection since they
are showing up in the monitor as NaN. I started looking at the plugin code
again and it seems to me that the code is there in the WebRuntime, similar
to what was in the WebApplicationContext in the jboss-as-5-plugin.
Regards,
--
Claudianus
11 years, 6 months
Re: Re: issues adding CLI script to JON 3.1.1
by Claudianus A
Hello John -
Thank you for the reply.
I tried your suggestion (entering the type and name of the file prior to
clicking on the UPLOAD FILE ... button) but the result is the same. I get
the same error.
Is it necessary for me to start over and create a brand new repo?
Regards,
--
Claudianus
11 years, 6 months
How do I enable web and sessions metric in JON 3.1.1 with jboss-as-7-plugin
by Claudianus A
Hello list -
I am new to the list and have a question regarding how metrics work in the
jboss-as-7-plugin.
I have a JON 3.1.1 running with EAP plugin pack with a slight modification
of the jboss-as-7-plugin (see lines 8827 - 8835 in the attached plugin
deployment descriptor). I noticed that jboss-as-5-plugin had sessions
metrics included while jboss-as-7-plugin didn't have those metrics enabled.
I needed to enable those metrics in order to use them to trigger alerts
that will later running a deploy script I wrote.
What I did was basically looking at the Web Context session in the
jboss-as-5-plugin deployment descriptor and copied some of the metrics I
needed that were not included in jboss-as-7-plugin. So I copied those
metrics into the Web Runtime section of the jboss-as-7-plugin deployment
descriptor as can be seen from the attached xml file. I then proceeded to
deploy the plugin into my JON 3.1.1 install.
I followed all the steps I found on enabling metrics an was able to enable
those metrics for my deployed web application. I then went to the alert
screen and was able to define alert based on those metrics I included. For
example I created an alert on active sessions count change and another one
to be fired when the active sessions count falls to 0 or below 1. So far I
have not been able to get those alerts to fire. I started wondering whether
there is anything else I needed to modify to get this working. I just need
few pointers on how this used to work in jboss-as-5-plugin. I looked at the
jboss-as-5-plugin code and the jboss-as-7-plugin code and couldn't spot
anything that is directly related to those metrics. So I decided to post
here to see if anyone who knows the internals of the plugins might be able
to give me few pointers on what else I needed to enable in order to get
those alerts to start firing.
Any help is greatly appreciated.
Regards,
PS I am aware that there is a bug on web deployment metrics missing
AS7-4444 as well as a product management bug PRODMGT-245.
--
Claudianus
11 years, 6 months
issues adding CLI script to JON 3.1.1
by Claudianus A
Hello list -
I am new to the list and have a question regarding CLI script import.
I have a JON 3.1.1 running with EAP plugin pack.
I need to import a server side CLI script, a Javascript based script into
the content repository in JON.
I went to the Administration tab and created the repository and then went
down the page to import the package.
I selected the a type of "Server-side CLI Script" and clicked on the UPLOAD
FILE button to upload the javascript file. I then clicked on the Add button
on the popped up dialog to select and upload the script from my hard drive.
After the upload, I made sure the Type is still Server-side CLI Script and
clicked on the CREATE PACKAGE button. The tool tried to upload the script
but then displayed the following error "Failed to create package
[deploy-bundle-on-alert.js] in repository. Cause:
javax.ejb.EJBException:org.rhq.enterprise.server.plugin.pc.content.PackageDetailsValidationException:
The version part of
'[sha256=b97c9b78f3f06aae4bbeeeea28bd63e597b9894ea5098bfe468652195080a715]'
isn't an OSGi version string. ->
org.rhq.enterprise.server.plugin.pc.content.PackageDetailsValidationException:The
version part of
'[sha256=b97c9b78f3f06aae4bbeeeea28bd63e597b9894ea5098bfe468652195080a715]'
isn't an OSGi version string. "
I tried this several times with several new repositories with no success.
My question is: was I supposed to have version included in the script or a
manifest file associated with the script before loading it?
If not how is this import supposed to work? I followed the steps described
in 3.4 Uploading Packages in the Deploying Applications and Content guide
located at
https://access.redhat.com/knowledge/docs/en-US/JBoss_Operations_Network/3...
.
Any help is greatly appreciated.
I can send the script if that will help.
--
Claudianus
11 years, 6 months
Re: help - rhq server error question
by daeok kim
hi rhq-users
I solve the problem below.
Cause of the problem was due to the glibc version.
rhq agent 4.5.1 does not seem to be supported glibc 2.4.x
that's why ,After I install hyperic-sigar-1.6.4 ,overwrite
libsigar-x86-linux.so
*my system info : centos 4.8 , rhq-agent 4.5.1 *
#java -jar lib/sigar-1.6.5.132-3.jar
/usr/local/rhq-agent/lib/libsigar-x86-linux.so:
/usr/local/rhq-agent/lib/libsigar-x86-linux.so: *requires glibc 2.5 or
later dynamic linker*
org.hyperic.sigar.SigarException:
/usr/local/rhq-agent/lib/libsigar-x86-linux.so:
/usr/local/rhq-agent/lib/libsigar-x86-linux.so: requires glibc 2.5 or later
dynamic linker
*but , Another error has occurred.*
When I click on the inventory->platform , the following errors occurred.
Resource information will not be displayed.
Message : Globally uncaught exception
Severity : Error
Root Cause : (TypeError): Object does not support property or method,
description: Object 'sparkline'
does not support property or method.
number: -2146827850
Detail :
com.google.gwt.core.client.JavaScriptException:(TypeError):Object 'sparkline'
does not support property or method.
RHQ Server 4.5.1(centos 6.3)
jdk 1.6
Daeok.
2012/11/2 daeok kim <dok3809(a)gmail.com>
> hi rhq-users
>
> i have been installed rhq agent.
> The following error occurs.
>
> my system jdk version : jdk1.6.0_37
>
> *rhq-agent log
> WARN [main] (org.rhq.enterprise.agent.AgentMain)-
> {AgentMain.native-sysinfo-unavailable}Native system info is enabled, but
> the system info API is not accessible on this platform (*sigar.jar not
> found in classpath or SIGAR shared library not found in shared library path
> *). Enable DEBUG logging for more details.
>
> # sh rhq-agent-wrapper.sh start
> rhq-agent-wrapper.sh: pidfile will be located at
> /usr/local/rhq-agent/bin/rhq-agent.pid
> Starting RHQ Agent...
> rhq-agent-wrapper.sh: Start script found here:
> /usr/local/rhq-agent/bin/rhq-agent.sh
> rhq-agent-wrapper.sh: Executing agent with command:
> '/usr/local/rhq-agent/bin/rhq-agent.sh'
> rhq-agent.sh: RHQ_AGENT_HOME: /usr/local/rhq-agent
> rhq-agent.sh: No embedded JRE found - will try to use JAVA_HOME:
> /usr/local/jdk
> rhq-agent.sh: RHQ_AGENT_JAVA_HOME: /usr/local/jdk
> rhq-agent.sh: RHQ_AGENT_JAVA_EXE_FILE_PATH: /usr/local/jdk/bin/java
> rhq-agent.sh: CLASSPATH entry: /usr/local/rhq-agent/lib/commons-io-1.4.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/commons-logging-1.1.0.jboss.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/concurrent-1.3.4-jboss-update1.jar
> rhq-agent.sh: CLASSPATH entry: /usr/local/rhq-agent/lib/dom4j-1.6.jar
> rhq-agent.sh: CLASSPATH entry: /usr/local/rhq-agent/lib/getopt-1.0.13.jar
> rhq-agent.sh: CLASSPATH entry: /usr/local/rhq-agent/lib/i18nlog-1.0.10.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/jboss-common-1.2.1.GA.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/jboss-jmx-4.2.3.GA.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/jboss-remoting-2.2.2.SP8.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/jboss-serialization-1.0.3.GA.jar
> rhq-agent.sh: CLASSPATH entry: /usr/local/rhq-agent/lib/jline-0.9.94.jar
> rhq-agent.sh: CLASSPATH entry: /usr/local/rhq-agent/lib/log4j-1.2.16.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/persistence-api-1.0.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/rhq-common-drift-4.5.1.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/rhq-core-client-api-4.5.1.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/rhq-core-comm-api-4.5.1.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/rhq-core-domain-4.5.1.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/rhq-core-native-system-4.5.1.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/rhq-core-plugin-api-4.5.1.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/rhq-core-plugin-container-4.5.1.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/rhq-core-util-4.5.1.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/rhq-enterprise-agent-4.5.1.jar
> rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/rhq-enterprise-comm-4.5.1.jar
> *rhq-agent.sh: CLASSPATH entry:
> /usr/local/rhq-agent/lib/sigar-1.6.5.132-3.jar*
> rhq-agent.sh: CLASSPATH entry: /usr/local/jdk/lib/tools.jar
> rhq-agent.sh: RHQ_AGENT_JAVA_OPTS: -Xms64m -Xmx128m
> -Djava.net.preferIPv4Stack=true
> rhq-agent.sh: RHQ_AGENT_JAVA_ENDORSED_DIRS:
> /usr/local/rhq-agent/lib/endorsed
> rhq-agent.sh: RHQ_AGENT_JAVA_LIBRARY_PATH: /usr/local/rhq-agent/lib
> rhq-agent.sh: RHQ_AGENT_ADDITIONAL_JAVA_OPTS:
> rhq-agent.sh: RHQ_AGENT_CMDLINE_OPTS: --daemon
> rhq-agent.sh: LD_LIBRARY_PATH: /usr/local/rhq-agent/lib/augeas/lib
> rhq-agent.sh: Executing the agent with this command line:
> rhq-agent.sh: "/usr/local/jdk/bin/java"
> "-Djava.endorsed.dirs=/usr/local/rhq-agent/lib/endorsed"
> "-Djava.library.path=/usr/local/rhq-agent/lib" -Xms64m -Xmx128m
> -Djava.net.preferIPv4Stack=true -Dlog4j.configuration=log4j-debug.xml
> -Di18nlog.dump-stack-traces=true -Dsigar.nativeLogging=true -cp
> "/usr/local/rhq-agent/conf:/usr/local/rhq-agent/lib/commons-io-1.4.jar:/usr/local/rhq-agent/lib/commons-logging-1.1.0.jboss.jar:/usr/local/rhq-agent/lib/concurrent-1.3.4-jboss-update1.jar:/usr/local/rhq-agent/lib/dom4j-1.6.jar:/usr/local/rhq-agent/lib/getopt-1.0.13.jar:/usr/local/rhq-agent/lib/i18nlog-1.0.10.jar:/usr/local/rhq-agent/lib/jboss-common-1.2.1.GA.jar:/usr/local/rhq-agent/lib/jboss-jmx-4.2.3.GA.jar:/usr/local/rhq-agent/lib/jboss-remoting-2.2.2.SP8.jar:/usr/local/rhq-agent/lib/jboss-serialization-1.0.3.GA.jar:/usr/local/rhq-agent/lib/jline-0.9.94.jar:/usr/local/rhq-agent/lib/log4j-1.2.16.jar:/usr/local/rhq-agent/lib/persistence-api-1.0.jar:/usr/local/rhq-agent/lib/rhq-common-drift-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-core-client-api-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-core-comm-api-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-core-domain-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-core-native-system-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-core-plugin-api-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-core-plugin-container-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-core-util-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-enterprise-agent-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-enterprise-comm-4.5.1.jar:/usr/local/rhq-agent/lib/sigar-1.6.5.132-3.jar:/usr/local/jdk/lib/tools.jar"
> org.rhq.enterprise.agent.AgentMain --daemon
> rhq-agent.sh: /usr/local/rhq-agent/bin/rhq-agent.sh done.
>
> what do i fix?
>
> thnaks~
>
>
11 years, 6 months
rhq agent error question
by daeok kim
hi rhq-users
i have been installed rhq agent.
The following error occurs.
my system jdk version : jdk1.6.0_37
*rhq-agent log
WARN [main] (org.rhq.enterprise.agent.AgentMain)-
{AgentMain.native-sysinfo-unavailable}Native system info is enabled, but
the system info API is not accessible on this platform (*sigar.jar not
found in classpath or SIGAR shared library not found in shared library path*).
Enable DEBUG logging for more details.
# sh rhq-agent-wrapper.sh start
rhq-agent-wrapper.sh: pidfile will be located at
/usr/local/rhq-agent/bin/rhq-agent.pid
Starting RHQ Agent...
rhq-agent-wrapper.sh: Start script found here:
/usr/local/rhq-agent/bin/rhq-agent.sh
rhq-agent-wrapper.sh: Executing agent with command:
'/usr/local/rhq-agent/bin/rhq-agent.sh'
rhq-agent.sh: RHQ_AGENT_HOME: /usr/local/rhq-agent
rhq-agent.sh: No embedded JRE found - will try to use JAVA_HOME:
/usr/local/jdk
rhq-agent.sh: RHQ_AGENT_JAVA_HOME: /usr/local/jdk
rhq-agent.sh: RHQ_AGENT_JAVA_EXE_FILE_PATH: /usr/local/jdk/bin/java
rhq-agent.sh: CLASSPATH entry: /usr/local/rhq-agent/lib/commons-io-1.4.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/commons-logging-1.1.0.jboss.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/concurrent-1.3.4-jboss-update1.jar
rhq-agent.sh: CLASSPATH entry: /usr/local/rhq-agent/lib/dom4j-1.6.jar
rhq-agent.sh: CLASSPATH entry: /usr/local/rhq-agent/lib/getopt-1.0.13.jar
rhq-agent.sh: CLASSPATH entry: /usr/local/rhq-agent/lib/i18nlog-1.0.10.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/jboss-common-1.2.1.GA.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/jboss-jmx-4.2.3.GA.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/jboss-remoting-2.2.2.SP8.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/jboss-serialization-1.0.3.GA.jar
rhq-agent.sh: CLASSPATH entry: /usr/local/rhq-agent/lib/jline-0.9.94.jar
rhq-agent.sh: CLASSPATH entry: /usr/local/rhq-agent/lib/log4j-1.2.16.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/persistence-api-1.0.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/rhq-common-drift-4.5.1.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/rhq-core-client-api-4.5.1.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/rhq-core-comm-api-4.5.1.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/rhq-core-domain-4.5.1.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/rhq-core-native-system-4.5.1.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/rhq-core-plugin-api-4.5.1.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/rhq-core-plugin-container-4.5.1.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/rhq-core-util-4.5.1.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/rhq-enterprise-agent-4.5.1.jar
rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/rhq-enterprise-comm-4.5.1.jar
*rhq-agent.sh: CLASSPATH entry:
/usr/local/rhq-agent/lib/sigar-1.6.5.132-3.jar*
rhq-agent.sh: CLASSPATH entry: /usr/local/jdk/lib/tools.jar
rhq-agent.sh: RHQ_AGENT_JAVA_OPTS: -Xms64m -Xmx128m
-Djava.net.preferIPv4Stack=true
rhq-agent.sh: RHQ_AGENT_JAVA_ENDORSED_DIRS:
/usr/local/rhq-agent/lib/endorsed
rhq-agent.sh: RHQ_AGENT_JAVA_LIBRARY_PATH: /usr/local/rhq-agent/lib
rhq-agent.sh: RHQ_AGENT_ADDITIONAL_JAVA_OPTS:
rhq-agent.sh: RHQ_AGENT_CMDLINE_OPTS: --daemon
rhq-agent.sh: LD_LIBRARY_PATH: /usr/local/rhq-agent/lib/augeas/lib
rhq-agent.sh: Executing the agent with this command line:
rhq-agent.sh: "/usr/local/jdk/bin/java"
"-Djava.endorsed.dirs=/usr/local/rhq-agent/lib/endorsed"
"-Djava.library.path=/usr/local/rhq-agent/lib" -Xms64m -Xmx128m
-Djava.net.preferIPv4Stack=true -Dlog4j.configuration=log4j-debug.xml
-Di18nlog.dump-stack-traces=true -Dsigar.nativeLogging=true -cp
"/usr/local/rhq-agent/conf:/usr/local/rhq-agent/lib/commons-io-1.4.jar:/usr/local/rhq-agent/lib/commons-logging-1.1.0.jboss.jar:/usr/local/rhq-agent/lib/concurrent-1.3.4-jboss-update1.jar:/usr/local/rhq-agent/lib/dom4j-1.6.jar:/usr/local/rhq-agent/lib/getopt-1.0.13.jar:/usr/local/rhq-agent/lib/i18nlog-1.0.10.jar:/usr/local/rhq-agent/lib/jboss-common-1.2.1.GA.jar:/usr/local/rhq-agent/lib/jboss-jmx-4.2.3.GA.jar:/usr/local/rhq-agent/lib/jboss-remoting-2.2.2.SP8.jar:/usr/local/rhq-agent/lib/jboss-serialization-1.0.3.GA.jar:/usr/local/rhq-agent/lib/jline-0.9.94.jar:/usr/local/rhq-agent/lib/log4j-1.2.16.jar:/usr/local/rhq-agent/lib/persistence-api-1.0.jar:/usr/local/rhq-agent/lib/rhq-common-drift-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-core-client-api-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-core-comm-api-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-core-domain-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-core-native-system-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-core-plugin-api-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-core-plugin-container-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-core-util-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-enterprise-agent-4.5.1.jar:/usr/local/rhq-agent/lib/rhq-enterprise-comm-4.5.1.jar:/usr/local/rhq-agent/lib/sigar-1.6.5.132-3.jar:/usr/local/jdk/lib/tools.jar"
org.rhq.enterprise.agent.AgentMain --daemon
rhq-agent.sh: /usr/local/rhq-agent/bin/rhq-agent.sh done.
what do i fix?
thnaks~
11 years, 6 months