public NagiosJmxCommand(MBeanServerRegistry mBeanServerRegistry, QueryDef... qdefs) {
listers = new ArrayList<QueryLister>(qdefs.length);
for (QueryDef qdef : qdefs) {
this.listers.add(new QueryLister(mBeanServerRegistry, qdef));
}
this.scanner = new JmxScanner(mBeanServerRegistry, new MetricsRegistry(), new SymbolRegistry(), listers);
scanner.setAttachResults(true);
}