Datastore Monitoring not Working ---Can't locate Nagios/Plug
-
amitgupta19
- Posts: 286
- Joined: Fri Sep 08, 2017 5:53 am
Re: Datastore Monitoring not Working ---Can't locate Nagios/
Just to reiterate or if i put my problem in another way.
When i run the following comamnd
sudo ./check_esx3.pl -D xxx.xxx.xxx.xxx -u "xxxxxxxxxxx" -p "xxxxxxxxx" -l vmfs -s "3PAR2r1-0" -w 85% -c 90%
on Nagios which is installed on the Centos is giving the correct result.
On Nagios which is installed on Orcle Linux 7 is giving the error:
/usr/bin/perl: symbol lookup error: /usr/local/lib64/perl5/auto/Class/MethodMaker/MethodMaker.so: undefined symbol: Perl_Gthr_key_ptr
When i run the following comamnd
sudo ./check_esx3.pl -D xxx.xxx.xxx.xxx -u "xxxxxxxxxxx" -p "xxxxxxxxx" -l vmfs -s "3PAR2r1-0" -w 85% -c 90%
on Nagios which is installed on the Centos is giving the correct result.
On Nagios which is installed on Orcle Linux 7 is giving the error:
/usr/bin/perl: symbol lookup error: /usr/local/lib64/perl5/auto/Class/MethodMaker/MethodMaker.so: undefined symbol: Perl_Gthr_key_ptr
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Datastore Monitoring not Working ---Can't locate Nagios/
Now you are getting an error in your Class::MethodMaker
Try forcing a reinstall with
Try forcing a reinstall with
Code: Select all
cpan -i Class::MethodMaker-
amitgupta19
- Posts: 286
- Joined: Fri Sep 08, 2017 5:53 am
Re: Datastore Monitoring not Working ---Can't locate Nagios/
When i try to install using the command:
cpan -i Class::MethodMaker
================================================================
[amgupta@xxxxxxxx libexec]$ sudo cpan -i Class::MethodMaker
[sudo] password for amgupta:
Fetching with LWP:
http://mirror.datapipe.net/CPAN/authors/01mailrc.txt.gz
LWP failed with code[500] message[Can't connect to myproxy.mydomain.com:0000 (Bad hostname)]
Proxy authentication needed!
(Note: to permanently configure username and password run
o conf proxy_user your_username
o conf proxy_pass your_password
)
Username: amgupta
================================================================================
I also tried to install by entering into the CPAN and it gave the following error:
====================================================================================
Running install for module 'Class::MethodMaker'
Running make for S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-2.24.tar.gz
Fetching with LWP:
http://mirrors.sonic.net/cpan/authors/i ... .24.tar.gz
Fetching with LWP:
http://mirrors.sonic.net/cpan/authors/i ... /CHECKSUMS
Checksum for /home/amgupta/.cpan/sources/authors/id/S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-2.24.tar.gz ok
CPAN.pm: Building S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-2.24.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Class::MethodMaker
Writing MYMETA.yml and MYMETA.json
/usr/bin/perl cmmg.pl components/array.m > lib/Class/MethodMaker/array.pm
Can't locate Fatal.pm in @INC (@INC contains: /home/amgupta/.cpan/build/Test-Simple-1.302171-XR6zyb/blib/arch /home/amgupta/.cpan/build/Test-Simple-1.302171-XR6zyb/blib/lib /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 cmmg.pl line 7.
BEGIN failed--compilation aborted at cmmg.pl line 7.
make: *** [lib/Class/MethodMaker/array.pm] Error 2
SCHWIGON/class-methodmaker/Class-MethodMaker-2.24.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
EXODIST/Test-Simple-1.302171.tar.gz : install NO
SCHWIGON/class-methodmaker/Class-MethodMaker-2.24.tar.gz: make NO
cpan[2]> exit
Terminal does not support GetHistory.
Lockfile removed.
*** Remember to restart your shell before running cpan again ***
cpan -i Class::MethodMaker
================================================================
[amgupta@xxxxxxxx libexec]$ sudo cpan -i Class::MethodMaker
[sudo] password for amgupta:
Fetching with LWP:
http://mirror.datapipe.net/CPAN/authors/01mailrc.txt.gz
LWP failed with code[500] message[Can't connect to myproxy.mydomain.com:0000 (Bad hostname)]
Proxy authentication needed!
(Note: to permanently configure username and password run
o conf proxy_user your_username
o conf proxy_pass your_password
)
Username: amgupta
================================================================================
I also tried to install by entering into the CPAN and it gave the following error:
====================================================================================
Running install for module 'Class::MethodMaker'
Running make for S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-2.24.tar.gz
Fetching with LWP:
http://mirrors.sonic.net/cpan/authors/i ... .24.tar.gz
Fetching with LWP:
http://mirrors.sonic.net/cpan/authors/i ... /CHECKSUMS
Checksum for /home/amgupta/.cpan/sources/authors/id/S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-2.24.tar.gz ok
CPAN.pm: Building S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-2.24.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Class::MethodMaker
Writing MYMETA.yml and MYMETA.json
/usr/bin/perl cmmg.pl components/array.m > lib/Class/MethodMaker/array.pm
Can't locate Fatal.pm in @INC (@INC contains: /home/amgupta/.cpan/build/Test-Simple-1.302171-XR6zyb/blib/arch /home/amgupta/.cpan/build/Test-Simple-1.302171-XR6zyb/blib/lib /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 cmmg.pl line 7.
BEGIN failed--compilation aborted at cmmg.pl line 7.
make: *** [lib/Class/MethodMaker/array.pm] Error 2
SCHWIGON/class-methodmaker/Class-MethodMaker-2.24.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
EXODIST/Test-Simple-1.302171.tar.gz : install NO
SCHWIGON/class-methodmaker/Class-MethodMaker-2.24.tar.gz: make NO
cpan[2]> exit
Terminal does not support GetHistory.
Lockfile removed.
*** Remember to restart your shell before running cpan again ***
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Datastore Monitoring not Working ---Can't locate Nagios/
cpan cannot run make.
This is outside the scope of Nagios support, it has to do with Perl and the operating system. I would contact whoever setup this server
This is outside the scope of Nagios support, it has to do with Perl and the operating system. I would contact whoever setup this server
-
amitgupta19
- Posts: 286
- Joined: Fri Sep 08, 2017 5:53 am
Re: Datastore Monitoring not Working ---Can't locate Nagios/
Can you specify the Perl Package name which i can ask to the paltform team to install on it?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Datastore Monitoring not Working ---Can't locate Nagios/
I'd like to say it was just Class::MethodMaker but I know that isn't going to be true as you have been missing package after package of plugins that would be normally found on a base systemamitgupta19 wrote:Can you specify the Perl Package name which i can ask to the paltform team to install on it?
-
amitgupta19
- Posts: 286
- Joined: Fri Sep 08, 2017 5:53 am
Re: Datastore Monitoring not Working ---Can't locate Nagios/
Is there any list of the Pre-requisites that we can ensure before setting up the Nagios Server?
I mean to say do we have any list or a document that we can reference, so as to ensure that we have all the pre-requisite packages completed.
I mean to say do we have any list or a document that we can reference, so as to ensure that we have all the pre-requisite packages completed.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Datastore Monitoring not Working ---Can't locate Nagios/
These are listed by OS here starting from a normal minimal base OS, but the VMware plugin and SDK are going to have their own requirements and dependencies for the requirements which are usually calculated via cpan
https://support.nagios.com/kb/article/n ... ce-96.html
https://support.nagios.com/kb/article/n ... ce-96.html
-
amitgupta19
- Posts: 286
- Joined: Fri Sep 08, 2017 5:53 am
Re: Datastore Monitoring not Working ---Can't locate Nagios/
I have installed the Package Class::MethodMaker
[amgupta@cxxnagios3 libexec]$ sudo yum install perl-Class-MethodMaker
Loaded plugins: ulninfo
GIA-CentOS7-Local | 3.0 kB 00:00:00
GIA_LOCAL_ol7_UEK3_latest | 2.8 kB 00:00:00
GIA_LOCAL_ol7_UEK4_latest | 2.8 kB 00:00:00
GIA_LOCAL_ol7_UEK5_latest | 2.8 kB 00:00:00
GIA_LOCAL_ol7_addons | 2.8 kB 00:00:00
GIA_LOCAL_ol7_latest | 3.4 kB 00:00:00
epel/x86_64/metalink | 17 kB 00:00:00
epel | 5.3 kB 00:00:00
(1/8): GIA_LOCAL_ol7_UEK4_latest/updateinfo | 88 kB 00:00:00
(2/8): GIA_LOCAL_ol7_UEK5_latest/updateinfo | 27 kB 00:00:00
(3/8): GIA_LOCAL_ol7_UEK4_latest/primary_db | 790 kB 00:00:00
(4/8): GIA_LOCAL_ol7_latest/primary_db | 4.3 MB 00:00:00
(5/8): GIA_LOCAL_ol7_latest/updateinfo | 2.6 MB 00:00:00
(6/8): GIA_LOCAL_ol7_UEK5_latest/primary_db | 939 kB 00:00:00
(7/8): epel/x86_64/updateinfo | 1.0 MB 00:00:01
(8/8): epel/x86_64/primary_db | 6.9 MB 00:00:00
Package perl-Class-MethodMaker-2.20-1.el7.x86_64 already installed and latest version
Nothing to do
=======================================================================================================================
When i run the command it is still giving the same error:
/usr/bin/perl: symbol lookup error: /usr/local/lib64/perl5/auto/Class/MethodMaker/MethodMaker.so: undefined symbol: Perl_Gthr_key_ptr
[amgupta@cxxnagios3 libexec]$ sudo yum install perl-Class-MethodMaker
Loaded plugins: ulninfo
GIA-CentOS7-Local | 3.0 kB 00:00:00
GIA_LOCAL_ol7_UEK3_latest | 2.8 kB 00:00:00
GIA_LOCAL_ol7_UEK4_latest | 2.8 kB 00:00:00
GIA_LOCAL_ol7_UEK5_latest | 2.8 kB 00:00:00
GIA_LOCAL_ol7_addons | 2.8 kB 00:00:00
GIA_LOCAL_ol7_latest | 3.4 kB 00:00:00
epel/x86_64/metalink | 17 kB 00:00:00
epel | 5.3 kB 00:00:00
(1/8): GIA_LOCAL_ol7_UEK4_latest/updateinfo | 88 kB 00:00:00
(2/8): GIA_LOCAL_ol7_UEK5_latest/updateinfo | 27 kB 00:00:00
(3/8): GIA_LOCAL_ol7_UEK4_latest/primary_db | 790 kB 00:00:00
(4/8): GIA_LOCAL_ol7_latest/primary_db | 4.3 MB 00:00:00
(5/8): GIA_LOCAL_ol7_latest/updateinfo | 2.6 MB 00:00:00
(6/8): GIA_LOCAL_ol7_UEK5_latest/primary_db | 939 kB 00:00:00
(7/8): epel/x86_64/updateinfo | 1.0 MB 00:00:01
(8/8): epel/x86_64/primary_db | 6.9 MB 00:00:00
Package perl-Class-MethodMaker-2.20-1.el7.x86_64 already installed and latest version
Nothing to do
=======================================================================================================================
When i run the command it is still giving the same error:
/usr/bin/perl: symbol lookup error: /usr/local/lib64/perl5/auto/Class/MethodMaker/MethodMaker.so: undefined symbol: Perl_Gthr_key_ptr
-
amitgupta19
- Posts: 286
- Joined: Fri Sep 08, 2017 5:53 am
Re: Datastore Monitoring not Working ---Can't locate Nagios/
It is Solved...
I uninstalled the version 6.7 and reinstalled the version 6.5
Now it is working correctly....
Thanks for your support...
I uninstalled the version 6.7 and reinstalled the version 6.5
Now it is working correctly....
Thanks for your support...