hi team,
i need monitor the GarbageCollector using check_jmx but it return "objectName not found"
This plugin work fine with check connection pool, cpu.
[root@nagiosxi libexec]#/usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://192.168.xxx.xx:9000/jmxrmi -O java.lang:type=GarbageCollector,name=ConcurrentMarkSweep" -A LastGcInfo -K duration -u ms -vvvv -w 10 -c 20
JMX CRITICAL - objectName not found [java.lang:type=GarbageCollector,name=ConcurrentMarkSweep]
Pls help me correct it.
Thanks
"JMX CRITICAL - objectName not found" GarbageCollector
Re: "JMX CRITICAL - objectName not found" GarbageCollector
I had to add this to my startup for the JAVA_OPTIONS on the remote server and restart the services to get it to work:
You didn't specify what product you're checking but I did it on weblogic and had to change it in this file:
- You will need to reach out to your java app server admins in order to determine where that's required on your systems
Then I restarted the java app server and it worked.
Code: Select all
-XX:+UseConcMarkSweepGC- You will need to reach out to your java app server admins in order to determine where that's required on your systems
Code: Select all
/u01/app/oracle/config/domains/TEST/bin/startWebLogic.shRe: "JMX CRITICAL - objectName not found" GarbageCollector
hi ssax,
i was updated "-XX:+UseConcMarkSweepGC" to JAVA_OPTION and restart the JVM but getting same error.
JMX CRITICAL - objectName not found [java.lang:type=GarbageCollector,name=ConcurrentMarkSweep]
i was updated "-XX:+UseConcMarkSweepGC" to JAVA_OPTION and restart the JVM but getting same error.
JMX CRITICAL - objectName not found [java.lang:type=GarbageCollector,name=ConcurrentMarkSweep]
You do not have the required permissions to view the files attached to this post.
-
SteveBeauchemin
- Posts: 524
- Joined: Mon Oct 14, 2013 7:19 pm
Re: "JMX CRITICAL - objectName not found" GarbageCollector
Sometimes the names are not what you expect.
I get past this by listing all the possible mbeans to a file which I can look through to find the proper names.
Try this syntax
Then examine the /tmp/jmxdump.txt and look for the syntax: GarbageCollector
Verify that the name is as expected. There can be more than one name for that collector.
The dump also provides other application specific data that you may want to explore. I have found in the data interesting items such as connection counts and other nice metrics that the application owners like.
Steve B
I get past this by listing all the possible mbeans to a file which I can look through to find the proper names.
Try this syntax
Code: Select all
jmx4perl http://localhost:8080/jolokia \
--target service:jmx:rmi:///jndi/rmi://[IP of system]:[JMX port]/jmxrmi \
--target-user [JMX username] \
--target-password [JMX password] \
list > /tmp/jmxdump.txt
Verify that the name is as expected. There can be more than one name for that collector.
The dump also provides other application specific data that you may want to explore. I have found in the data interesting items such as connection counts and other nice metrics that the application owners like.
Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
Re: "JMX CRITICAL - objectName not found" GarbageCollector
Thanks for posting that @SteveBeauchemin, we really do not know much about java/jmx here and that is very helpful!
@sacom01, you will likely need to reach out to your java app server admins or your java app server support team in order to determine where it needs to be setup.
What java app server software are you running? (weblogic/websphere/wildfly/etc)
@sacom01, you will likely need to reach out to your java app server admins or your java app server support team in order to determine where it needs to be setup.
What java app server software are you running? (weblogic/websphere/wildfly/etc)
Re: "JMX CRITICAL - objectName not found" GarbageCollector
hi ssax,
i found it from run 'jconsole 192.168.117.1:9000" on shell and find.
pls close this ticket.
thank you.
i found it from run 'jconsole 192.168.117.1:9000" on shell and find.
pls close this ticket.
thank you.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: "JMX CRITICAL - objectName not found" GarbageCollector
Locking threadsacom01 wrote:hi ssax,
i found it from run 'jconsole 192.168.117.1:9000" on shell and find.
pls close this ticket.
thank you.