JMX::Jmx4Perl::Nagios::CheckJmx4Perl - Module for encapsulating the functionality of check_jmx4perl


  # One line in check_jmx4perl to rule them all


The purpose of this module is to encapsulate a single run of check_jmx4perl in a perl object. This allows for check_jmx4perl to run within the embedded Nagios perl interpreter (ePN) wihout interfering with other, potential concurrent, runs of this check. Please refer to check_jmx4perl for documentation on how to use this check. This module is probably not of general interest and serves only the purpose described above.

Its main task is to set up one ore more JMX::Jmx4Perl::Nagios::SingleCheck objects from command line arguments and optionally from a configuration file.


$check = new $JMX::Jmx4Perl::Nagios::CheckJmx4Perl()

Set up a object used for a single check. It will parse the command line arguments and any configuation file given.


Send the JMX request to the server monitored and print out a nagios output.


Write out result and exit. This method can be overridden to provide a custom output, which can be extracted from NagiosPlugin object.


This file is part of jmx4perl.

Jmx4perl is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

jmx4perl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with jmx4perl. If not, see <>.