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

Re: errors on plugin check_crm_v0_7

Post by harinarne »

scottwilkerson wrote:Is this a Nagios XI system?
yes we are using Nagios XI for monitoring
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 plugin on the Nagios XI server?

Did you run the commands I suggested on the server that has the plugin?
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 »

scottwilkerson wrote:Is this plugin on the Nagios XI server?

Did you run the commands I suggested on the server that has the plugin?
the plugin was not in nagios server

i run the below command and copy the tar file that which you provided

sed -i -e 's/Nagios::Plugin/Nagios::Monitoring::Plugin/g' /usr/local/nagios/libexec/check_crm_v0_7

do you want me to install below on client machine if we install nothing will effect my client machine right ?

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
thanks
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 »

harinarne wrote:do you want me to install below on client machine if we install nothing will effect my client machine right ?

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
yes
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 »

scottwilkerson wrote:
harinarne wrote:do you want me to install below on client machine if we install nothing will effect my client machine right ?

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
yes
getting below error while trying to install
perl Makefile.PL
Can't locate ExtUtils/MakeMaker.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 Makefile.PL line 2.
BEGIN failed--compilation aborted at Makefile.PL line 2.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: errors on plugin check_crm_v0_7

Post by lmiltchev »

Try installing the perl-devel package to see if this is going to fix your error.

Code: Select all

yum install perl-devel
Be sure to check out our Knowledgebase for helpful articles and solutions!
harinarne
Posts: 25
Joined: Fri Jan 25, 2019 12:24 pm

Re: errors on plugin check_crm_v0_7

Post by harinarne »

lmiltchev wrote:Try installing the perl-devel package to see if this is going to fix your error.

Code: Select all

yum install perl-devel
yum install perl-devel
Loaded plugins: changelog, fastestmirror, priorities
ctlsdn-base | 2.9 kB 00:00:00
ctlsdn-controlpod | 2.9 kB 00:00:00
ctlsdn-openvswitch | 2.9 kB 00:00:00
Loading mirror speeds from cached hostfile
* ctlsdn-base: keep.ctlsdn.io
* ctlsdn-controlpod: keep.ctlsdn.io
* ctlsdn-openvswitch: keep.ctlsdn.io
No package perl-devel available.
Error: Nothing to do
[root@virtz01-ctl-c1n1 Nagios-Monitoring-Plugin-0.51]# perl Makefile.PL
Can't locate ExtUtils/MakeMaker.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 Makefile.PL line 2.
BEGIN failed--compilation aborted at Makefile.PL line 2.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: errors on plugin check_crm_v0_7

Post by lmiltchev »

No package perl-devel available.
Error: Nothing to do
This is strange... Can you run the following commands and show the output?

Code: Select all

cat /etc/*release
yum repolist
yum provides perl-devel
Be sure to check out our Knowledgebase for helpful articles and solutions!
harinarne
Posts: 25
Joined: Fri Jan 25, 2019 12:24 pm

Re: errors on plugin check_crm_v0_7

Post by harinarne »

lmiltchev wrote:
No package perl-devel available.
Error: Nothing to do
This is strange... Can you run the following commands and show the output?

Code: Select all

cat /etc/*release
yum repolist
yum provides perl-devel
---->cat /etc/*release
CentOS Linux release 7.4.1708 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.4.1708 (Core)
CentOS Linux release 7.4.1708 (Core)

---->yum repolist
Loaded plugins: changelog, fastestmirror, priorities
Loading mirror speeds from cached hostfile
* ctlsdn-base: keep.ctlsdn.io
* ctlsdn-controlpod: keep.ctlsdn.io
* ctlsdn-openvswitch: keep.ctlsdn.io
repo id repo name status
ctlsdn-base CTLSDN - 7 - NFVi Base Packages 865
ctlsdn-controlpod CTLSDN - 7 - NFVi Controlpod Packages 913
ctlsdn-openvswitch CTLSDN - 7 - NFVi Openvswitch Packages 33
repolist: 1,811


--->yum provides perl-devel
Loaded plugins: changelog, fastestmirror, priorities
Loading mirror speeds from cached hostfile
* ctlsdn-base: keep.ctlsdn.io
* ctlsdn-controlpod: keep.ctlsdn.io
* ctlsdn-openvswitch: keep.ctlsdn.io
ctlsdn-base/filelists_db | 853 kB 00:00:00
ctlsdn-controlpod/filelists_db | 550 kB 00:00:00
ctlsdn-openvswitch/filelists_db | 37 kB 00:00:00
No matches found
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: errors on plugin check_crm_v0_7

Post by lmiltchev »

You have custom repos... This is not a typical (vanilla) CentOS 7 system. The perl-devel package should be provided by the base repo. Anyway, you can try to install the missing perl module via cpan. Try this:

Code: Select all

cpan install ExtUtils::MakeMaker
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked