Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

ActiveMQ_Watch

Rating
2 votes
Favoured:
0
Hits
176511
Files:
FileDescription
activemq_watchactivemq_watch

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

Apache ActiveMQ current messages monitoringscript
This is a script I've coded in Perl to check all queues of an Apache ActiveMQ service.
It uses the webinterface to get the XML data, so I'd recommend you restrict the access to the webinterface to localhost only, and use the script in combination with NRPE.

The command takes the following parameters:
-w = warninglevel (ex. -w 10; warn when messages in queue rise above 10)
-c = criticallevel (ex. -c 20; turn status in critical when messages in queue rise above 20)
-q = select queue (ex. -q nagiosTestQueue; output only the messages in the selected queue, default is all queues)

Variables that should be defined in the script:
$address = default is localhost (highly recommended!)
$port = default is 8161 because my Jetty runs there.

Tested with Nagios 3.x, can't think of a reason why it shouldn't work with Nagios 2.x

Feedback and suggestions are higly welcomed!
Reviews (2)
byZach, September 12, 2013
Error ***Cannot get XML file***. Anyone knows how to fix this error ? even though able to get xml from URL.
bybrothersir, May 11, 2012
1 of 1 people found this review helpful
I made an account out of appreciation. This nagios check to monitor queue depth in ActiveMQ is pure win.