When starting JBoss with -b <ip>, the thread pool MBean is:
jboss.web:name=ajp-<ip_address>-8009,type=ThreadPool
So, when filtering by "jboss.web:name=ajp-<ip_address>-8009,type=ThreadPool,*" it works fine and returns the MBean.
But when starting JBoss with -b <hostname>, the MBean looks like this:
name=ajp-<hostname>/<ip_address>-8009,type=ThreadPool
And, when filtering by "jboss.web:name=ajp-<hostname>/<ip_address>-8009,type=ThreadPool,*" there are no results. I haven't found a filter that returns this MBean.
This makes impossible to use SNMP to export data to another monitoring tool, as the configuration in deploy/snmp-adapter.sar/attributes.xml can't find the MBean. For instance, if I define
<mbean name="jboss.web:name=ajp-<hostname>/<ip_address>-8009,type=ThreadPool" oid-prefix=".1.2.3.4.1">
It does not work, but if I define it like
<mbean name="jboss.web:name=ajp-<ip_address>-8009,type=ThreadPool" oid-prefix=".1.2.3.4.1">
it works.