Hello,
I`m using nagios v.3 and trying to monitor the threads of a jboss 4.0.2 server. For this I am using the jboss2nagios plugin. I have installed it correctly according to the official site.
When I test it in the console I have a valid result
# ./check_mbean_collector
Usage:
check_mbean_collector -H host[,host,..] -p port -m mbean-name -a attribute-name -w warning-level -c critical-level
check_mbean_collector [-h | --help]
check_mbean_collector [-V | --version]
# ./check_mbean_collector -H link.com -p 5566 -m jboss.system:type=ServerInfo -a ActiveThreadCount -w 200 -c 400
ACTIVETHREADCOUNT OK - JMX attribute ActiveThreadCount has value 52|jboss.system:type_ServerInfo:ActiveThreadCount= 52
However, after I add it to nagios, the response comes out as (null)
Here are my config files in nagios:
commands.cfg:
define command {
command_name check_mbean_collector
command_line $USER1$/check_mbean_collector -H $HOSTADDRESS$ $ARG1$
}
services.cfg:
#JBOSS THREAD CHECK
#define service{
use my-service
host_name url.com
service_description JBOSS THREADS
check_command check_mbean_collector!-p 5566 -m jboss.system:type=ServerInfo -a ActiveThreadCount -w 200 -c 400
}
As I said the command works from the shell, just not from nagios.
I have tried also check_jboss_status, that one works but doesn't display correct information, it always shows about 1/250, 2/250 threads and I can see from the JMX console that are many more.
Can someone recommend a working plug-in to display jboss threads? or have to fix the jboss2nagios.
Thanks
jboss2nagios plugin problems
Re: jboss2nagios plugin problems
I have the same issue. I am monitoring a java process and when I do the following command from the command shell, I get the correct heap memory reading.
./check_jmx -U service:jmx:rmi:///jndi/rmi://<ip addres>:<port>/jmxrmi -O java.lang:type=Memory -A HeapMemoryUsage -K used -w 4150000000 -c 4200000000 -u B
JMX OK HeapMemoryUsage.used=103120520
but Nagios status information says NULL.
Help please.
./check_jmx -U service:jmx:rmi:///jndi/rmi://<ip addres>:<port>/jmxrmi -O java.lang:type=Memory -A HeapMemoryUsage -K used -w 4150000000 -c 4200000000 -u B
JMX OK HeapMemoryUsage.used=103120520
but Nagios status information says NULL.
Help please.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: jboss2nagios plugin problems
Can you post your Nagios command definition and service definition for this service