Problem with "Monitor a guest VM on the VMWare host"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
thomas.woiti
Posts: 3
Joined: Mon Jan 05, 2015 5:15 am

Problem with "Monitor a guest VM on the VMWare host"

Post by thomas.woiti »

Hi,

I have been testing the vmware wizard and can monitor the ESX/Vsphere Hosts, but i can't monitore a guest vm.
when I go to "Monitor a guest VM on the VMWare host" and then "
VMware Guest Selection " nothing appears.

Image

What can i do?

Thank's
BR Thomas

PS: i also tried this

Code: Select all

chown apache.apache /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl
chmod 755 /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl
and when i try this:

Code: Select all

cd /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts
./getguests.pl -H <ip address> -u <username> -p <password>
i get a list of my VM's
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Problem with "Monitor a guest VM on the VMWare host"

Post by slansing »

What version of XI are you using, as well as what version of that wizard? You can find the wizard information at Admin > Manage Monitoring Wizards. Also, what is the output of running the following command during running of the wizard, and navigation to the guests section:

Code: Select all

tail -f /var/log/httpd/error_log
thomas.woiti
Posts: 3
Joined: Mon Jan 05, 2015 5:15 am

Re: Problem with "Monitor a guest VM on the VMWare host"

Post by thomas.woiti »

the version of the wizard is: 1.6.2

and here is the output of the command:

Code: Select all

[root@localhost ~]# tail -f /var/log/httpd/error_log
Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2692.
ERROR: "WorkDir" not specified in mrtg config file
[Mon Jan 05 16:02:50 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 710
[Mon Jan 05 16:02:50 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 711
[Mon Jan 05 16:02:51 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 710
[Mon Jan 05 16:02:54 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 710
[Mon Jan 05 16:02:54 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 711
[Mon Jan 05 16:07:50 2015] [error] [client 192.168.0.208] File does not exist: /var/www/html/favicon.ico
[Wed Jan 07 08:34:39 2015] [error] [client 192.168.0.207] PHP Notice:  Undefined variable: data in /usr/local/nagiosxi/html/includes/configwizards/vmware/vmware.inc.php on line 492, referer: http://nagios.TTT.at/nagiosxi/config/monitoringwizard.php
[Wed Jan 07 08:34:39 2015] [error] [client 192.168.0.207] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/configwizards/vmware/vmware.inc.php on line 492, referer: http://nagios.TTT.at/nagiosxi/config/monitoringwizard.php
[Wed Jan 07 08:35:38 2015] [error] [client 192.168.0.207] PHP Notice:  Undefined variable: data in /usr/local/nagiosxi/html/includes/configwizards/vmware/vmware.inc.php on line 492, referer: http://nagios.TTT.at/nagiosxi/config/monitoringwizard.php
[Wed Jan 07 08:35:38 2015] [error] [client 192.168.0.207] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/configwizards/vmware/vmware.inc.php on line 492, referer: http://nagios.TTT.at/nagiosxi/config/monitoringwizard.php
thx
BR Thomas
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem with "Monitor a guest VM on the VMWare host"

Post by lmiltchev »

Did you get any errors, while installing SDK? Did you follow all of the steps, outlined in this document?

Run the following commands and show us the output in code wraps:

Code: Select all

uname -a
cat /etc/*release
yum list installed | grep perl
Be sure to check out our Knowledgebase for helpful articles and solutions!
thomas.woiti
Posts: 3
Joined: Mon Jan 05, 2015 5:15 am

Re: Problem with "Monitor a guest VM on the VMWare host"

Post by thomas.woiti »

Yes i followed the steps in the Document and i don't got any errors while installing.

Code: Select all

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-504.3.3.el6.x86_64 #1 SMP Wed Dec 17 01:55:02           UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

[root@localhost ~]# cat /etc/*release
CentOS release 6.6 (Final)
CentOS release 6.6 (Final)
CentOS release 6.6 (Final)

Code: Select all

[root@localhost ~]# yum list installed | grep perl
perl.x86_64                          4:5.10.1-136.el6_6.1              @updates
perl-Archive-Zip.noarch              1.30-2.el6                        @base
perl-CPAN.x86_64                     1.9402-136.el6_6.1                @updates
perl-Class-Accessor.noarch           0.31-6.1.el6                      @base
perl-Class-MakeMethods.noarch        1.01-5.el6                        @epel
perl-Class-MethodMaker.x86_64        2.16-6.el6                        @base
perl-Class-Singleton.noarch          1.4-6.el6                         @base
perl-Compress-Raw-Zlib.x86_64        1:2.021-136.el6_6.1               @updates
perl-Compress-Zlib.x86_64            2.021-136.el6_6.1                 @updates
perl-Config-IniFiles.noarch          2.72-2.el6                        @epel
perl-Config-Tiny.noarch              2.12-7.1.el6                      @base
perl-Crypt-DES.x86_64                2.05-9.el6                        @epel
perl-Crypt-Rijndael.x86_64           1.09-2.el6                        @epel
perl-Crypt-SSLeay.x86_64             0.57-17.el6                       @base
perl-DBD-MySQL.x86_64                4.013-3.el6                       @base
perl-DBI.x86_64                      1.609-4.el6                       @base
perl-Data-Dump.noarch                1.15-1.el6.rf                     @rpmforge
perl-DateTime.x86_64                 1:0.5300-2.el6                    @base
perl-Digest-HMAC.noarch              1.01-22.el6                       @base
perl-Digest-SHA.x86_64               1:5.47-136.el6_6.1                @updates
perl-Digest-SHA1.x86_64              2.12-2.el6                        @base
perl-Email-Date-Format.noarch        1.002-5.el6                       @base
perl-Error.noarch                    1:0.17015-4.el6                   @base
perl-ExtUtils-MakeMaker.x86_64       6.55-136.el6_6.1                  @updates
perl-ExtUtils-ParseXS.x86_64         1:2.2003.0-136.el6_6.1            @updates
perl-HTML-Parser.x86_64              3.64-2.el6                        @base
perl-HTML-Tagset.noarch              3.20-4.el6                        @base
perl-IO-Compress-Base.x86_64         2.021-136.el6_6.1                 @updates
perl-IO-Compress-Zlib.x86_64         2.021-136.el6_6.1                 @updates
perl-IO-Socket-INET6.noarch          2.56-4.el6                        @base
perl-IO-Socket-SSL.noarch            1.31-2.el6                        @base
perl-IO-stringy.noarch               2.110-10.1.el6                    @base
perl-List-MoreUtils.x86_64           0.22-10.el6                       @base
perl-MIME-Lite.noarch                3.027-2.el6                       @base
perl-MIME-Types.noarch               1.28-2.el6                        @base
perl-Mail-IMAPClient.noarch          3.34-1.el6                        @epel
perl-Mail-POP3Client.noarch          2.18-6.el6                        @epel
perl-MailTools.noarch                2.04-4.el6                        @base
perl-Math-Calc-Units.noarch          1.07-6.el6                        @epel
perl-Module-Pluggable.x86_64         1:3.90-136.el6_6.1                @updates
perl-Nagios-Plugin.noarch            0.35-2.el6.rf                     @rpmforge
perl-Net-DNS.x86_64                  0.65-5.el6                        @base
perl-Net-LibIDN.x86_64               0.12-3.el6                        @base
perl-Net-SMTP-TLS.noarch             0.12-1.el6.rf                     @rpmforge
perl-Net-SNMP.noarch                 5.2.0-4.el6                       @epel
perl-Net-SSLeay.x86_64               1.35-9.el6                        @base
perl-Params-Validate.x86_64          0.92-3.el6                        @base
perl-Parse-RecDescent.noarch         1.965-1.el6                       @epel
perl-Pod-Escapes.x86_64              1:1.04-136.el6_6.1                @updates
perl-Pod-Simple.x86_64               1:3.13-136.el6_6.1                @updates
perl-SNMP_Session.noarch             1.12-4.el6                        @base
perl-SOAP-Lite.noarch                0.710.10-3.el6                    @base
perl-Socket6.x86_64                  0.23-4.el6                        @base
perl-Test-Harness.x86_64             3.17-136.el6_6.1                  @updates
perl-Time-HiRes.x86_64               4:1.9721-136.el6_6.1              @updates
perl-TimeDate.noarch                 1:1.16-13.el6                     @base
perl-URI.noarch                      1.40-2.el6                        @base
perl-XML-NamespaceSupport.noarch     1.10-3.el6                        @base
perl-XML-Parser.x86_64               2.36-7.el6                        @base
perl-XML-Simple.noarch               2.18-6.el6                        @base
perl-devel.x86_64                    4:5.10.1-136.el6_6.1              @updates
perl-libs.x86_64                     4:5.10.1-136.el6_6.1              @updates
perl-libwww-perl.noarch              5.833-2.el6                       @base
perl-version.x86_64                  3:0.77-136.el6_6.1                @updates
rrdtool-perl.x86_64                  1.3.8-7.el6                       @base
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem with "Monitor a guest VM on the VMWare host"

Post by lmiltchev »

You are missing some of the required packages, for example "perl-XML-SAX" and "perl-XML-LibXML"...

I would recommend repeating all of the steps, outlined in our document here:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

which would be basically:

1. Installing the prereqs

Code: Select all

yum erase perl-XML-SAX-Base -y
yum install perl-XML-SAX --exclude=perl-XML-SAX-Base -y
yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML
2. Setting the environment variables

Code: Select all

export http_proxy=
export ftp_proxy=
3. Installing SDK

Watch the output for errors as you do this. Don't miss any steps. Let us know if this solved your problem.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked