1 Reply Latest reply on Feb 25, 2013 4:23 AM by manishdevraj

    integrating jboss-7.1.1 with nagios

    jigneshmpatel

      We are trying to integrate

      http://jboss2nagios.sourceforge.net

      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

       

       

       

      Please suggest.

       

       

       

      -Jignesh

        • 1. Re: integrating jboss-7.1.1 with nagios
          manishdevraj

          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