Page 1 of 1

Plugins Does not Work in RHEL 7.5 (Maipo)

Posted: Wed Mar 27, 2019 2:22 am
by acvillaester
Hi,

I have a plugin called check_jmx4perl and centreon_plugins.pl. It worked perfectly fine in Red Hat Enterprise Linux Server release 6.9 (Santiago) but in Red Hat Enterprise Linux Server release 7.5 (Maipo) it didn't work.

Here is the error details:
[root@nagios yum.repos.d]# /usr/local/nagios/libexec/jmx4perl-master/scripts/check_jmx4perl --url='http://10.200.8.32:8087/jolokia/' --mbean java.lang:type=Threading --operation findDeadlockedThreads --null no-deadlock --string --critical '!no-deadlock' --critical 10
Can't locate Monitoring/Plugin/Functions.pm in @INC (@INC contains: /root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi /root/perl5/lib/perl5/5.16.3 /root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5 /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/jmx4perl-master/scripts/check_jmx4perl line 6.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/jmx4perl-master/scripts/check_jmx4perl line 6.


Is there anything I need to install in RHEL 7 to make it work? I appreciate any inputs.

Thanks and Godbless!!

Albert Villaester

Re: Plugins Does not Work in RHEL 7.5 (Maipo)

Posted: Wed Mar 27, 2019 9:52 am
by cdienger
Make sure the monitoring perl modules are installed on the 7.5 machine:

perl -MCPAN -e 'install Monitoring::Plugin'

Re: Plugins Does not Work in RHEL 7.5 (Maipo)

Posted: Fri Apr 05, 2019 6:26 am
by acvillaester
Hi cdienger,

Thank you so much. This solves the problem.

Godbless dude!!!

Re: Plugins Does not Work in RHEL 7.5 (Maipo)

Posted: Fri Apr 05, 2019 7:49 am
by scottwilkerson
acvillaester wrote:Hi cdienger,

Thank you so much. This solves the problem.

Godbless dude!!!
Great!

Locking thread