Page 1 of 3
errors on plugin check_crm_v0_7
Posted: Thu Jan 31, 2019 8:05 pm
by harinarne
I am using below plugin
https://exchange.nagios.org/directory/P ... RM/details
Getting below errors on the ./check_crm_v0_7
Can't locate Nagios/Plugin.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 ./check_crm_v0_7 line 50.
BEGIN failed--compilation aborted at ./check_crm_v0_7 line 50.
sudo yum install perl-Nagios-Plugin
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.dc2.hackingand.coffee
* extras: mirror.steadfastnet.com
* updates: mirror.oss.ou.edu
No package perl-Nagios-Plugin available.
Error: Nothing to do
please help me on this
Re: errors on plugin check_crm_v0_7
Posted: Fri Feb 01, 2019 8:16 am
by scottwilkerson
This is using an old package and needs to be updated to the new one.
Run the following to change to use the installed
Nagios::Monitoring::Plugin
Code: Select all
sed -i -e 's/Nagios::Plugin/Nagios::Monitoring::Plugin/g' /usr/local/nagios/libexec/check_crm_v0_7
Re: errors on plugin check_crm_v0_7
Posted: Fri Feb 01, 2019 11:58 am
by harinarne
after running the command also getting same errors
[root@virtz01-ctl-c1n1 libexec]# ./check_crm_v0_7
Can't locate Nagios/Plugin.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 ./check_crm_v0_7 line 50.
BEGIN failed--compilation aborted at ./check_crm_v0_7 line 50.
Re: errors on plugin check_crm_v0_7
Posted: Fri Feb 01, 2019 12:08 pm
by scottwilkerson
Here is the fixed file, unzip and replace yours
Re: errors on plugin check_crm_v0_7
Posted: Fri Feb 01, 2019 12:17 pm
by harinarne
no luck getting same error
Can't locate Nagios/Monitoring/Plugin.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 ./check_crm_v0_7 line 50.
BEGIN failed--compilation aborted at ./check_crm_v0_7 line 50.
Re: errors on plugin check_crm_v0_7
Posted: Fri Feb 01, 2019 12:23 pm
by scottwilkerson
Is this a Nagios XI system?
Re: errors on plugin check_crm_v0_7
Posted: Fri Feb 01, 2019 12:25 pm
by scottwilkerson
Run the following to install the required package
Code: Select all
cd /tmp
wget https://cpan.metacpan.org/authors/id/N/NA/NAGIOS/Nagios-Monitoring-Plugin-0.51.tar.gz
tar xzf Nagios-Monitoring-Plugin-0.51.tar.gz
cd Nagios-Monitoring-Plugin-0.51
perl Makefile.PL
make
make test
make install
Re: errors on plugin check_crm_v0_7
Posted: Fri Feb 01, 2019 12:29 pm
by harinarne
no in nagios server it is client machine
need to install in nagios server the scripts you mentioned ?
Re: errors on plugin check_crm_v0_7
Posted: Fri Feb 01, 2019 12:31 pm
by scottwilkerson
I moved the post to the Nagios Core forum.
Run the following to install the required package
Code: Select all
cd /tmp
wget https://cpan.metacpan.org/authors/id/N/NA/NAGIOS/Nagios-Monitoring-Plugin-0.51.tar.gz
tar xzf Nagios-Monitoring-Plugin-0.51.tar.gz
cd Nagios-Monitoring-Plugin-0.51
perl Makefile.PL
make
make test
make install
Re: errors on plugin check_crm_v0_7
Posted: Fri Feb 01, 2019 12:40 pm
by harinarne
sorry for the confusion
need to install in nagios server the scripts you mentioned or on the client machine