Installing jmx4perl plugin to Nagios
In this section we describe how to download and install the jmx4perl plugin to a Nagios server.
Prerequisites to jmx4perl plugin installation
Before you begin
- Nagios Open Source version or Nagios XI 2011 version should be installed into Linux
platform (or VM). To download Nagios, go to http://www.nagios.org/download, and follow the installation
instructions.Information noteNote: Nagios Open Source 3.3.1 and Nagios XI 2011 version have been tested, but previous versions of Nagios may also work with Talend Runtime.
- You also need an installation of the Talend Runtime, which may be on different host (for example, a Windows machine) to the Nagios installation.
Downloading the jmx4perl plugin
Procedure
Download the jmx4perl plugin to the Nagios server machine, from http://search.cpan.org/CPAN/authors/id/R/RO/ROLAND/jmx4perl-1.05.tar.gz to, for example, /tmp.
Building the jmx4perl plugin
We use the Perl CPAN (Comprehensive Perl Archive Network) shell here to download missing dependencies.
Before you begin
Procedure
What to do next
When all these steps finished successfully, the jmx4perl plugin should be installed onto Nagios.
Check everything has been correctly installed by communicating with a Talend Runtime Container (this already has an active Jolokia agent) (please replace <jolokia_host> with the host where the Talend Runtime Container is running):
$ check_jmx4perl -u http://<jolokia_host>:8040/jolokia --alias MEMORY_HEAP_USED --base MEMORY_HEAP_MAX --warning 80 --critical 90
If you have problems getting this running, try disabling the firewall on the Jolokia (Talend Runtime Container) host.