Plugin doesn't work in the Nagios Webinterface
Poll JMX attributes from Java based applications with Nagios
Brought to you by:
gropi
Hello there,
I would like to use this Plugin but i have a problem.
I have tried the command from the example in this Readme and in the console it works, but only there. In the Webinterface it only show (null).
(See in the Screenshots)
So i need help, if i do something wrong.
NagiosGUI and console
Hi,
Did you have this issue solved?
I am facing the same problem i.e. cannot display the output in web interface. Would you please help me.
Thank You
Could you please try to replace the collector.jar with a "newer" version:
http://jboss2nagios.cvs.sourceforge.net/viewvc/jboss2nagios/jboss2nagios/mbean/collector.sar?revision=1.2
Please let me know if that changes anything.
hi gropi,
Could you please provide some documentation on how to use the newer version as you suggested.
Thank You
Can you please type the command to display the count for AvailableConnectionCount . I am unable to monitor datasource properites using the plugin.
Thank You
lochan
I have used the following service definition:
define service{
use generic-service
host_name host1
service_description Jboss_Active_Thread
check_command check_mbean_collector!jboss.system:type=ServerInfo!ActiveThreadCount!200!400
contact_groups admins
}
while the commands.cfg contains the following command
define command{
command_name check_mbean_collector
command_line $USER1$/check_mbean_collector -H $HOSTADDRESS$ -p 5566 -m $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$
}
This way i am able to plot Jboss_Active_thread in nagios and nagiosgraph.
Hope this might help you a little.
Lochan
define service{
use generic-service
host_name host1
service_description Jboss AvailableConnectionCount
check_command check_mbean_collector!jboss.jca:service=ManagedConnectionPool,name=your_jndi-name!AvailableConnectionCount!550:!400:
contact_groups admins
}
Define a service like above for the host.
Notice the ' : ' after the threshold values, this will generate warning message if AvailableConnectionCount < 500 and a critical message if it is < 400.
You may adust the values according to you need.
Lochan
View and moderate all "support-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Support Requests"
Hey!.. I solved this problem with the next config.
define command{
command_name check_mbean_collector
command_line $USER1$/check_mbean_collector -H $HOSTADDRESS$ -p 5566 $ARG1$
}
define service{
use generic-service
host_name servername
service_description JBoss Active
check_command check_mbean_collector!-m jboss.system:type=ServerInfo -a ActiveThreadCount -w 200 -c 400
}
Edit the script check_mbean_collector in the line 32 approx:
# You may need to adjust this path to your local Nagios installation
#use lib "/usr/lib/nagios/plugins";
use lib "/usr/local/nagios/libexec";
Tested on: Nagios® Core™ 3.4.1
Last edit: Anonymous 2014-07-28