We are currently using the MQ plugin to monitor our queues and queue managers. I have tried to set an alert to monitor if the queue manager is running. When I run the monitor, with the queue manager down, the plugin fails as MQ returns an error of 2059 (which is expected since the queue manager is down). I would like to know when the queue manager is stopped.
Currently the monitor plugin puts the error number in the status metrics. In this case, the status value of the QM would be 2059. You can set the threshold of this metric to be 2059 and trigger an incident when the status of the QM is 2059.
Manager Status possible values and meaning:
n/a = -1
So, currently our queue managers are running, with the status being "2". If the queue manager is stopped (status "0"), then a stacktrace ensues, error 2009 and then 2059 is outputted, and the monitor fails. I'd expect to see a status of 0 and an email alert.