Page 1 of 1

nagios for ActiveMQ

Posted: Tue Mar 05, 2013 8:15 am
by kamil
Hello,
Im relatively new to both Nagios and ActiveMQ. I'd like to monitor my ActiveMQ processes using Nagios. I couldn't find any info on it. Is there any tutorial/documentation that you recommend?
I'll really appreciate your response.
Kamil

Re: nagios for ActiveMQ

Posted: Tue Mar 05, 2013 10:19 am
by fgilain
have a look at : http://code.google.com/p/jmxquery/wiki/Usage

define service{
use prod-service
host ACTIVEMQ-SERVER
service_description AMQ_CONSUMER_JMS_APPS
check_command check_activemq_simple!nameofyouractivemqjms.yourapps!5!11
check_interval 20
notification_interval 20
}

define command{
command_name check_activemq_simple
command_line $USER1$/check_jmx -U service:jmx:rmi:///jndi/rmi://$HOSTADDRESS$:11099/jmxrmi -u monitorRole -p monitorRole -O org.apache.activemq:BrokerName=activemq-server,Type=Queue,Destination=$ARG1$ -A ConsumerCount -v -w $ARG2$ -c $ARG3$

}

Re: nagios for ActiveMQ

Posted: Tue Mar 05, 2013 2:00 pm
by slansing
Thank you for the help fgilain, let us know if you need further explanation kamil.

Re: nagios for ActiveMQ

Posted: Wed Mar 06, 2013 2:58 am
by kamil
Thanks a lot fgilain and slansing. A colleague is going to help me with installing the adding the plugin and configuring it. But I don't know how to use it in a Java code, do you have a snippet please?
Many many thanks once again

Re: nagios for ActiveMQ

Posted: Wed Mar 06, 2013 12:09 pm
by abrist
kamil wrote: But I don't know how to use it in a Java code, do you have a snippet please?
Could you clarify your question?