Can IBM Websphere template be setup to monitor queue depth?
I am not aware of any method of collecting queue depth metrics from Websphere via JMX, or SNMP. You could write your own Java code and call it from within a script using the following examples.
There is an IBM MQ JMX gateway available from Queuemetrix that can be used to monitor queue depth, as well as many other metrics such as channels and subscribers. HOW TO MONITOR IBM MQ WITH SOLARWINDS AND LAMAXU | QueueMetrix