nagios for ActiveMQ

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kamil
Posts: 2
Joined: Tue Mar 05, 2013 8:00 am

nagios for ActiveMQ

Post 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
fgilain
Posts: 8
Joined: Tue Nov 22, 2011 5:01 am

Re: nagios for ActiveMQ

Post 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$

}
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nagios for ActiveMQ

Post by slansing »

Thank you for the help fgilain, let us know if you need further explanation kamil.
kamil
Posts: 2
Joined: Tue Mar 05, 2013 8:00 am

Re: nagios for ActiveMQ

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagios for ActiveMQ

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked