Plugins Does not Work in RHEL 7.5 (Maipo)

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
acvillaester
Posts: 21
Joined: Fri Nov 17, 2017 11:06 am

Plugins Does not Work in RHEL 7.5 (Maipo)

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

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

Post by cdienger »

Make sure the monitoring perl modules are installed on the 7.5 machine:

perl -MCPAN -e 'install Monitoring::Plugin'
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
acvillaester
Posts: 21
Joined: Fri Nov 17, 2017 11:06 am

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

Post by acvillaester »

Hi cdienger,

Thank you so much. This solves the problem.

Godbless dude!!!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

acvillaester wrote:Hi cdienger,

Thank you so much. This solves the problem.

Godbless dude!!!
Great!

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked