Page 2 of 3

Re: errors on plugin check_crm_v0_7

Posted: Fri Feb 01, 2019 12:47 pm
by harinarne
scottwilkerson wrote:Is this a Nagios XI system?
yes we are using Nagios XI for monitoring

Re: errors on plugin check_crm_v0_7

Posted: Fri Feb 01, 2019 12:52 pm
by scottwilkerson
Is this plugin on the Nagios XI server?

Did you run the commands I suggested on the server that has the plugin?

Re: errors on plugin check_crm_v0_7

Posted: Fri Feb 01, 2019 1:00 pm
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

Re: errors on plugin check_crm_v0_7

Posted: Fri Feb 01, 2019 1:10 pm
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

Re: errors on plugin check_crm_v0_7

Posted: Fri Feb 01, 2019 1:17 pm
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.

Re: errors on plugin check_crm_v0_7

Posted: Fri Feb 01, 2019 1:46 pm
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

Re: errors on plugin check_crm_v0_7

Posted: Fri Feb 01, 2019 1:49 pm
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.

Re: errors on plugin check_crm_v0_7

Posted: Fri Feb 01, 2019 1:55 pm
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

Re: errors on plugin check_crm_v0_7

Posted: Fri Feb 01, 2019 2:02 pm
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

Re: errors on plugin check_crm_v0_7

Posted: Fri Feb 01, 2019 3:24 pm
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