IBM MQ - agent module
What is it?
This is a simple example of a Zabbix agent module that can extend your Zabbix agent with the ability to monitor the queue depth of your IBM MQ queues.
What is it, really?
It' a set of four scripts / programs:
qdepth.sh - an example shell script to monitor the current queue depth, given the queue name.
qdepth.c - simple C code that does the same thing, only faster
mq-dummy.c - the boilerplate code for a minimal Zabbix agent module; this should show you how little needs to be done to convert the C program to a Zabbix agent module
mq.c - the module code (qdepth.c wrapped in the mq-dummy.c outline)
What is it related to?
The code was referred to during the "Monitoring Payment Queues" talk I delivered during the Zabbix Conference, 2015 in Riga.
As soon as the talk goes online, I'll post the link here as well.
What is the license?
All the code submitted here is licensed under the generous terms of Perl Artistic License ( http://dev.perl.org/licenses/artistic.html ).
Feel free to use it as you wish, keeping in mind this last paragraph of the license:
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.