This check does the following tasks:
check, if a defined channel has a correct state
define thresholds for the queue curdepth
MQS is the enclosing tag for all Queue-Manager entries.
0 or 1. If you don't define QMGR, no check will run.
<MQS>
<!-- entries for queue-manager: qmgr1 -->
<QMGR>
<NAME>qmgr1</NAME>
<RUNIF_DIR>/var/mqm</RUNIF_DIR>
<!-- check channels for state running or inactive -->
<MQCHANNEL>
<CHNAME>.*</CHNAME>
<ALLOWEDSTATE>RUNNING|INACTIVE</ALLOWEDSTATE>
</MQCHANNEL>
<!-- check curdepth of queues -->
<MQUEUE>
<QNAME>.*</QNAME>
<MAXCURDEPTH>1</MAXCURDEPTH>
</MQUEUE>
</QMGR>
<!-- entries for queue-manager: qmgr1 -->
<QMGR>
<NAME>qmgr2</NAME>
<RUNIF_TIME>* 08-17 * * * </RUNIF_TIME>
<!-- check channels -->
<MQCHANNEL>
<CHNAME>.*</CHNAME>
<ALLOWEDSTATE>RUNNING|INACTIVE</ALLOWEDSTATE>
</MQCHANNEL>
<!-- check curdepth of queues -->
<MQUEUE>
<QNAME>.*</QNAME>
<MAXCURDEPTH>1</MAXCURDEPTH>
</MQUEUE>
</QMGR>
</MQS>
QMGR is the enclosing tag for every queue manager which we have to check
0 or 1. If you don't define QMGR, no check will run.
<MQS>
<QMGR>
<NAME>qmgr1</NAME>
<MQCHANNEL>
<CHNAME>.*</CHNAME>
<ALLOWEDSTATE>RUNNING|INACTIVE</ALLOWEDSTATE>
</MQCHANNEL>
<MQUEUE>
<QNAME>.*</QNAME>
<MAXCURDEPTH>1</MAXCURDEPTH>
</MQUEUE>
</QMGR>
<QMGR>
<NAME>qmgr2</NAME>
<MQCHANNEL>
<CHNAME>.*</CHNAME>
<ALLOWEDSTATE>RUNNING|INACTIVE</ALLOWEDSTATE>
</MQCHANNEL>
<MQUEUE>
<QNAME>.*</QNAME>
<MAXCURDEPTH>1</MAXCURDEPTH>
</MQUEUE>
</QMGR>
</MQS>
Name of the queue manager
string
1. If you don't define no QMGR-NAME, no check will run.
you can use regular expressions for the MQCHANNEL tags either to monitor or not. More then one MQCHANNEL pair is possible
The common XML tags as described in Section 9.8, “Tags Common to All Checks and/or Checkpoints”
As many as you like.
Look at QMGR
This entity describes a regular expression for the channel you want to monitor
regular expression ( i.e.: .* means all channels )
1
<MQCHANNEL>
<CHNAME>.*</CHNAME>
<ALLOWEDSTATE>RUNNING|INACTIVE</ALLOWEDSTATE>
</MQCHANNEL>
This entity describes a legal state of a channel. you can use regular expressions ( i.e.: RUNNING|INACTIVE )
regular expression ( i.e.: .* means all channels )
1
<MQCHANNEL>
<CHNAME>.*</CHNAME>
<ALLOWEDSTATE>RUNNING|INACTIVE</ALLOWEDSTATE>
</MQCHANNEL>
you can use regular expressions for the MQUEUE tags to define thresholds for the curdepth of queues
The common XML tags as described in Section 9.8, “Tags Common to All Checks and/or Checkpoints”
As many as you like.
Look at QMGR