Page 2 of 3

Re: Nagios XI and Vmware - Error why?

Posted: Tue Sep 20, 2011 8:07 am
by markers
I found this really annoying, so I thought I go about installing Nagios XI another way.

I converted your vmware image and used that.

Trying to install so I can monitor Vmware guests and so on.

Following this: http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
Came to this: yum install -yq perl-Class-Accessor perl-Config-Tiny perl-Math-Calc-Units perl-Params-Validate
Get this:

Code: Select all

[root@localhost vmware-vsphere-cli-distrib]# yum install -yq perl-Class-Accessor                                 perl-Config-Tiny perl-Math-Calc-Units perl-Params-Validate
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/metalink                                            | 9.3 kB     00:00
 * base: mirror.softaculous.com
 * epel: ftp-stud.hs-esslingen.de
 * extras: ftp.klid.dk
 * rpmforge: fr2.rpmfind.net
 * updates: ftp.klid.dk
base                                                     | 3.7 kB     00:00
epel                                                     | 4.3 kB     00:00
epel/primary_db                                          | 3.4 MB     00:08
extras                                                   |  951 B     00:00
rpmforge                                                 | 1.1 kB     00:00
rpmforge/primary                                         | 1.4 MB     00:05
rpmforge                                                              4085/4085
updates                                                  | 3.5 kB     00:00
Setting up Install Process
Package perl-Params-Validate-0.92-3.el6.i686 already installed and latest versio                                n
Resolving Dependencies
--> Running transaction check
---> Package perl-Class-Accessor.noarch 0:0.31-6.1.el6 set to be updated
---> Package perl-Config-Tiny.noarch 0:2.12-7.1.el6 set to be updated
---> Package perl-Math-Calc-Units.noarch 0:1.07-1.el6.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                   Arch        Version              Repository     Size
================================================================================
Installing:
 perl-Class-Accessor       noarch      0.31-6.1.el6         base           26 k
 perl-Config-Tiny          noarch      2.12-7.1.el6         base           23 k
 perl-Math-Calc-Units      noarch      1.07-1.el6.rf        rpmforge       30 k

Transaction Summary
================================================================================
Install       3 Package(s)
Upgrade       0 Package(s)

Total download size: 79 k
Installed size: 145 k
Downloading Packages:
(1/3): perl-Class-Accessor-0.31-6.1.el6.noarch.rpm       |  26 kB     00:00
(2/3): perl-Config-Tiny-2.12-7.1.el6.noarch.rpm          |  23 kB     00:00
(3/3): perl-Math-Calc-Units-1.07-1.el6.rf.noarch.rpm     |  30 kB     00:00
--------------------------------------------------------------------------------
Total                                            45 kB/s |  79 kB     00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing     : perl-Config-Tiny-2.12-7.1.el6.noarch                     1/3
  Installing     : perl-Math-Calc-Units-1.07-1.el6.rf.noarch                2/3
  Installing     : perl-Class-Accessor-0.31-6.1.el6.noarch                  3/3

Installed:
  perl-Class-Accessor.noarch 0:0.31-6.1.el6
  perl-Config-Tiny.noarch 0:2.12-7.1.el6
  perl-Math-Calc-Units.noarch 0:1.07-1.el6.rf

Complete!
BUT, when I run this: rpm -Uvh perl-Nagios-Plugin-*.rpm

Code: Select all

error: Failed dependencies:
        perl(:MODULE_COMPAT_5.8.8) is needed by perl-Nagios-Plugin-0.33-2.noarch
WHY on earth do I get this error message? Is this supposed to be easy to install, and what on earth am I doing wrong?

Really really annoying to say the least. I want to monitor my vmware guests and servers!!

Please help me. Need some serious help!

Markers

Re: Nagios XI and Vmware - Error why?

Posted: Tue Sep 20, 2011 10:49 am
by nscott
Markers,

I updated the pdf yesterday and it does not contain the instructions to install the RPM. Can you please clear you cache and head to:

http://assets.nagios.com/downloads/nagi ... ios_XI.pdf

And follow those instructions. They are confirmed working for other people.

Re: Nagios XI and Vmware - Error why?

Posted: Fri Sep 23, 2011 5:43 am
by markers
...

Then I get this:

Do you accept? (yes/no) yes

Thank you.

Please wait while configuring CPAN ...

Please wait while configuring perl modules using CPAN ...

CPAN is downloading and installing pre-requisite Perl module "Archive::Zip" .

CPAN is downloading and installing pre-requisite Perl module "Compress::Zlib" .


CPAN is downloading and installing pre-requisite Perl module
"IO::Compress::Zlib::Constants" .

CPAN is downloading and installing pre-requisite Perl module
"Class::MethodMaker" .

CPAN is downloading and installing pre-requisite Perl module "UUID" .

CPAN is downloading and installing pre-requisite Perl module "Data::Dump" .

CPAN is downloading and installing pre-requisite Perl module "SOAP::Lite" .

CPAN is downloading and installing pre-requisite Perl module
"XML::LibXML::Common" .

CPAN is downloading and installing pre-requisite Perl module "XML::LibXML" .

CPAN not able to install following Perl modules on the system. These must be
installed manually for use by vSphere CLI:

XML::LibXML::Common 0.13 or newer
XML::LibXML 1.63 or newer

Any ideas?

Re: Nagios XI and Vmware - Error why?

Posted: Fri Sep 23, 2011 10:54 am
by nscott
markers,

That dependency should've been covered by the yum install perl-XML-LibXML, are you sure you typed it in properly?

Re: Nagios XI and Vmware - Error why?

Posted: Fri Sep 30, 2011 8:00 am
by markers
Copy and paste usually does it for me.

I'll try again in 2 minutes.



Please wait while copying vSphere CLI files...

The installation of vSphere CLI 4.0.0 build-161974 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command:
"/usr/bin/vmware-uninstall-vSphere-CLI.pl".

This installer has successfully installed both vSphere CLI and the vSphere SDK
for Perl.

Enjoy,

--the VMware team

Then I deleted the vmware wizard, and installed it again.

Then I get this message, when I try the wizard...
Error: It appears as though you have not installed the VMware SDK or ESX plugins on your Nagios XI server. You must have these components properly installed on your system before using this wizard.

Can anyone direct me on how to uninstall correctly the vmware sdk, delete directories and do this once and for all?

This is making me mental... :-)

Re: Nagios XI and Vmware - Error why?

Posted: Fri Sep 30, 2011 8:03 am
by markers
Can't remember. I have installed it so many times I can hardly remember my own name anymore.

Will try again over the weekend. Have got some other work to do as well...


Have a nice weekend, everyone!

I'll toast to you all!

Re: Nagios XI and Vmware - Error why?

Posted: Fri Sep 30, 2011 8:04 am
by markers
Can it be anything to do with the version numbers do do? I have tried 5.0 and 4.0 without any luck.

Re: Nagios XI and Vmware - Error why?

Posted: Fri Sep 30, 2011 12:34 pm
by nscott
I haven't read anything about the different SDK causing issues. Atter you removed the wizard did you update the chown settings on the getguest.pl?

A good way to troubleshoot this issue is to install the SDK, and then try manually running the plugin from the command line

/usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl -H <your ESX> -u <user to login as> -p <password for said user>

If that doesn't roll, then the SDK is messed up. Once that rolls, then set the permissions properly (by allowing apache to execute it) and try it in Nagios XI.

Re: Nagios XI and Vmware - Error why?

Posted: Mon Oct 03, 2011 3:56 am
by markers
Good morning!

Then I get this error message:

Can't load '/usr/lib/perl5/auto/XML/LibXML/Common/Common.so' for module XML::Lib XML::Common: /usr/lib/perl5/auto/XML/LibXML/Common/Common.so: wrong ELF class: E LFCLASS64 at /usr/lib/perl5/DynaLoader.pm line 200.
at /usr/lib/perl5/XML/LibXML.pm line 12
Compilation failed in require at /usr/lib/perl5/XML/LibXML.pm line 12.
BEGIN failed--compilation aborted at /usr/lib/perl5/XML/LibXML.pm line 12.
Compilation failed in require at /usr/share/perl5/VMware/VICommon.pm line 11.
BEGIN failed--compilation aborted at /usr/share/perl5/VMware/VICommon.pm line 11 .
Compilation failed in require at /usr/share/perl5/VMware/VIRuntime.pm line 15.
Compilation failed in require at /usr/local/nagiosxi/html/includes/configwizards /vmware/scripts/getguests.pl line 101.
BEGIN failed--compilation aborted at /usr/local/nagiosxi/html/includes/configwiz ards/vmware/scripts/getguests.pl line 101.

Re: Nagios XI and Vmware - Error why?

Posted: Mon Oct 03, 2011 11:05 am
by nscott
Thats very odd, what does it say when you run a

yum info perl-XML-LibXML

Post the output.