errors on plugin check_crm_v0_7
errors on plugin check_crm_v0_7
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
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
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
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_7Re: errors on plugin check_crm_v0_7
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.
[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
Here is the fixed file, unzip and replace yours
You do not have the required permissions to view the files attached to this post.
Re: errors on plugin check_crm_v0_7
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.
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
Is this a Nagios XI system?
-
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
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 installRe: errors on plugin check_crm_v0_7
no in nagios server it is client machine
need to install in nagios server the scripts you mentioned ?
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
I moved the post to the Nagios Core forum.
Run the following to install the required package
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 installRe: errors on plugin check_crm_v0_7
sorry for the confusion
need to install in nagios server the scripts you mentioned or on the client machine
need to install in nagios server the scripts you mentioned or on the client machine