errors on plugin check_crm_v0_7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
harinarne
Posts: 25
Joined: Fri Jan 25, 2019 12:24 pm

errors on plugin check_crm_v0_7

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: errors on plugin check_crm_v0_7

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
harinarne
Posts: 25
Joined: Fri Jan 25, 2019 12:24 pm

Re: errors on plugin check_crm_v0_7

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: errors on plugin check_crm_v0_7

Post by scottwilkerson »

Here is the fixed file, unzip and replace yours
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
harinarne
Posts: 25
Joined: Fri Jan 25, 2019 12:24 pm

Re: errors on plugin check_crm_v0_7

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: errors on plugin check_crm_v0_7

Post by scottwilkerson »

Is this a Nagios XI system?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: errors on plugin check_crm_v0_7

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
harinarne
Posts: 25
Joined: Fri Jan 25, 2019 12:24 pm

Re: errors on plugin check_crm_v0_7

Post by harinarne »

no in nagios server it is client machine
need to install in nagios server the scripts you mentioned ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: errors on plugin check_crm_v0_7

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
harinarne
Posts: 25
Joined: Fri Jan 25, 2019 12:24 pm

Re: errors on plugin check_crm_v0_7

Post by harinarne »

sorry for the confusion

need to install in nagios server the scripts you mentioned or on the client machine
Locked