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
Install check_jmx4perl in XI
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Install check_jmx4perl in XI
Custom plugins aren't supported so your best recourse would be to inquire with the developer(s) of it to find and install the needed dependencies.
http://search.cpan.org/~roland/jmx4perl ... l#TUTORIAL
We do have some JMX documentation here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Does that help?
http://search.cpan.org/~roland/jmx4perl ... l#TUTORIAL
We do have some JMX documentation here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Does that help?
Previous Nagios employee
Re: Install check_jmx4perl in XI
Thank you.
Yes that helped me in the correct directions.
After searching for all the different modules in CPAN as you posted.
I found that they where available via Redhat repo, can be a bit tricky to find.
You can search with the following command for the modules:
yum search perl |grep -B 1 "module" (without " " )
These modules did the trick for me:
yum install perl-Monitoring-Plugin.noarch
yum install perl-Module-Find.noarch
yum install perl-Sys-SigAction.noarch
I hope this helps other's with similar issues with perl.
- Interrex
Yes that helped me in the correct directions.
After searching for all the different modules in CPAN as you posted.
I found that they where available via Redhat repo, can be a bit tricky to find.
You can search with the following command for the modules:
yum search perl |grep -B 1 "module" (without " " )
These modules did the trick for me:
yum install perl-Monitoring-Plugin.noarch
yum install perl-Module-Find.noarch
yum install perl-Sys-SigAction.noarch
I hope this helps other's with similar issues with perl.
- Interrex
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Install check_jmx4perl in XI
For future reference, you can also install some package like this:
Thanks for using Nagios! If you have further issues, please open a new thread or ticket.
Code: Select all
# yum install "perl(Module::Find)"Previous Nagios employee