Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
leejm_ca
byleejm_ca, August 13, 2010
6 of 8 people found this review helpful
Prerequisites:
I ran into a lot of issues trying to get this plugin to work on my Nagios RedHat 4_Update6 host. Such as…. I received errors when using an old version of CPAN to download, build and install Perl modules required by the check_esx3.pl plugin. To resolve this I upgraded Nagios server to Redhat 5_Update 6 and also received a few awesome suggestions from the Nagiosplug-help communities.
Using the advice I was given I then took the following steps:
- Downloaded check_esx3.pl from Nagios Plugin Exchange
- As per check_esx.txt, I downloaded and installed “VMware-vSphere-Perl-SDK-4.1.0-254719.i386.tar.gz “
- I then ran the ./check_esx3.pl script and received the error:
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./check_esx3.pl line 31.
BEGIN failed--compilation aborted at ./check_esx3.pl line 31.
- Using CPAN I installed the requested module: #perl -MCPAN -e 'install Nagios::Plugin'
-Tried ./check_esx3.pl and received error:
Can't locate Params/Validate.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Functions.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Functions.pm line 11.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin.pm line 4.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin.pm line 4.
Compilation failed in require at ./check_esx3.pl line 31.
BEGIN failed--compilation aborted at ./check_esx3.pl line 31.
- Using CPAN I installed the requested module: # perl -MCPAN -e 'install Params::Validate'
-Ran ./check_esx3.pl and received error:
Can't locate Math/Calc/Units.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Functions.pm line 12.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Functions.pm line 12.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin.pm line 4.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin.pm line 4.
Compilation failed in require at ./check_esx3.pl line 31.
BEGIN failed--compilation aborted at ./check_esx3.pl line 31.
- Using CPAN I installed the requested module: # perl -MCPAN -e 'install Math::Calc::Units'
- Ran ./check_esx3.pl and received error:
Base class package "Class::Accessor::Fast" is empty.
(Perhaps you need to 'use' the module which defines that package first.)
at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin.pm line 11
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin.pm line 11.
Compilation failed in require at ./check_esx3.pl line 31.
BEGIN failed--compilation aborted at ./check_esx3.pl line 31.
- Using CPAN I installed the requested module: perl -MCPAN -e 'install Class::Accessor::Fast'
- Ran ./check_esx3.pl and received error:
Base class package "Config::Tiny" is empty.
(Perhaps you need to 'use' the module which defines that package first.)at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Config.pm line 6
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Config.pm line 6.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Getopt.pm line 16.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Getopt.pm line 16.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin.pm line 64.
- Using CPAN I installed the requested module: perl -MCPAN -e 'install Config::Tiny'
- Now able to run ./check_esx3.pl
Usage: check_esx3.pl -D | -H [ -N ]
-u -p | -f
-l [ -s ]
[ -x ]
[ -t ] [ -w ] [ -c ]
[ -V ] [ -h ]
I ran into a lot of issues trying to get this plugin to work on my Nagios RedHat 4_Update6 host. Such as…. I received errors when using an old version of CPAN to download, build and install Perl modules required by the check_esx3.pl plugin. To resolve this I upgraded Nagios server to Redhat 5_Update 6 and also received a few awesome suggestions from the Nagiosplug-help communities.
Using the advice I was given I then took the following steps:
- Downloaded check_esx3.pl from Nagios Plugin Exchange
- As per check_esx.txt, I downloaded and installed “VMware-vSphere-Perl-SDK-4.1.0-254719.i386.tar.gz “
- I then ran the ./check_esx3.pl script and received the error:
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./check_esx3.pl line 31.
BEGIN failed--compilation aborted at ./check_esx3.pl line 31.
- Using CPAN I installed the requested module: #perl -MCPAN -e 'install Nagios::Plugin'
-Tried ./check_esx3.pl and received error:
Can't locate Params/Validate.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Functions.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Functions.pm line 11.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin.pm line 4.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin.pm line 4.
Compilation failed in require at ./check_esx3.pl line 31.
BEGIN failed--compilation aborted at ./check_esx3.pl line 31.
- Using CPAN I installed the requested module: # perl -MCPAN -e 'install Params::Validate'
-Ran ./check_esx3.pl and received error:
Can't locate Math/Calc/Units.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Functions.pm line 12.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Functions.pm line 12.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin.pm line 4.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin.pm line 4.
Compilation failed in require at ./check_esx3.pl line 31.
BEGIN failed--compilation aborted at ./check_esx3.pl line 31.
- Using CPAN I installed the requested module: # perl -MCPAN -e 'install Math::Calc::Units'
- Ran ./check_esx3.pl and received error:
Base class package "Class::Accessor::Fast" is empty.
(Perhaps you need to 'use' the module which defines that package first.)
at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin.pm line 11
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin.pm line 11.
Compilation failed in require at ./check_esx3.pl line 31.
BEGIN failed--compilation aborted at ./check_esx3.pl line 31.
- Using CPAN I installed the requested module: perl -MCPAN -e 'install Class::Accessor::Fast'
- Ran ./check_esx3.pl and received error:
Base class package "Config::Tiny" is empty.
(Perhaps you need to 'use' the module which defines that package first.)at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Config.pm line 6
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Config.pm line 6.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Getopt.pm line 16.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin/Getopt.pm line 16.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Nagios/Plugin.pm line 64.
- Using CPAN I installed the requested module: perl -MCPAN -e 'install Config::Tiny'
- Now able to run ./check_esx3.pl
Usage: check_esx3.pl -D | -H [ -N ]
-u -p | -f
-l [ -s ]
[ -x ]
[ -t ] [ -w ] [ -c ]
[ -V ] [ -h ]