We are trying to integrate
with jboss-7.1.1 but at runtime we are getting following error.
./check_mbean_collector -H 10.124.41.18 -p 5566 -m jboss.system:type=ServerInfo -a ActiveThreadCount -w 200 -c 400
I am hitting this error >> Use of uninitialized value $answer in pattern match (m//) at ./check_mbean_collector
There is ClassLoader issues for collector.sar deployed in Jboss that is causing initialization error for $answer. We can bypass warning by adding check to see if it is defined to every location where it has been accessed.
if (defined($answer) && #some access to answer # )
This should take care of above error