Install check_jmx4perl in XI
Posted: Tue Jun 06, 2017 8:57 am
Hi.
On my Core installation I use check_jmx4perl plugin.
I'm trying to set up this on my Nagios XI server, and I'm stuck.
I have installed the plugin via the web gui and created the check and service check.
The result from the service check in Nagios is:
(No output on stdout) stderr: Can't locate Nagios/Plugin/Functions.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_jmx4perl line 12.
And when I run the command via shell:
Can't locate Nagios/Plugin/Functions.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_jmx4perl line 12.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_jmx4perl line 12.
I have installed perl and cpan.
I have tried to google it and it looks like I miss the Nagios/Plugin/Functions.pm in CPAN ? Is this correct ?
How can I setup this / fix this issue ?
Server is RHEL7 and NagiosXI is 5.2.9
check_jmx4perl is 1.05-1
When I installed the plugin on XI I just copied check_jmx4perl from my Core installation (Other Server)
If possible, please also guide me to install the newest version downloaded from https://jolokia.org/
Brgds
Interrex
On my Core installation I use check_jmx4perl plugin.
I'm trying to set up this on my Nagios XI server, and I'm stuck.
I have installed the plugin via the web gui and created the check and service check.
The result from the service check in Nagios is:
(No output on stdout) stderr: Can't locate Nagios/Plugin/Functions.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_jmx4perl line 12.
And when I run the command via shell:
Can't locate Nagios/Plugin/Functions.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_jmx4perl line 12.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_jmx4perl line 12.
I have installed perl and cpan.
I have tried to google it and it looks like I miss the Nagios/Plugin/Functions.pm in CPAN ? Is this correct ?
How can I setup this / fix this issue ?
Server is RHEL7 and NagiosXI is 5.2.9
check_jmx4perl is 1.05-1
When I installed the plugin on XI I just copied check_jmx4perl from my Core installation (Other Server)
If possible, please also guide me to install the newest version downloaded from https://jolokia.org/
Brgds
Interrex