Page 1 of 3

Guest host VM list not showing up in VM monitoring wizzard

Posted: Sat Jan 31, 2015 12:43 pm
by backmak
Screen Shot 2015-01-31 at 12.41.58 PM.png
Hi all,

Running into the following problem, when running through the VMware monitoring wizard and I'm running into the following situation:

When selecting the option to monitor a Guest VM on the VM host and proceeding to step 3. The Guest Selection tab isn't populating, if I select monitoring VM host I have no issues and the checks that I select are created.

We're currently running R2.5 (manual yum install) on a CentOS 6 64bit VM and have updated all perl packages needed for this plugin. We have another host running nagios xi R1.4 on CentOS 6 64bit and the plugin is working as expected. My suspicion is that version R2.5 isn't compatible with the monitoring wizard and I was wondering if anyone else was running into this issue.

Side Note: We do have a support contract with Nagios but for some reason my user isn't associated with the customer number. If someone could also help me out with that as well, I would appreciate it.

Below is a screenshot of what I'm seeing.
Screen Shot 2015-01-31 at 12.41.58 PM.png

Re: Guest host VM list not showing up in VM monitoring wizza

Posted: Sun Feb 01, 2015 10:59 pm
by Box293
Can you run these commands and post the output:

Code: Select all

cd /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts
./getguests.pl -H <ip address> -u <username> -p <password>
Also I'll get you to tell me the version of the Config Wizard, can you please do the following:

Click the Admin menu
System Extensions > Manage Config Wizards
Find the VMware config wizard
What version is this config wizard?
Does Check For Updates show a newer version available?

Re: Guest host VM list not showing up in VM monitoring wizza

Posted: Mon Feb 02, 2015 9:27 am
by scottwilkerson
Actually there was a bug with the previous version of the vmware wizard

Upload the new attached Wizard through Admin -> Manage Config Wizards

Re: Guest host VM list not showing up in VM monitoring wizza

Posted: Tue Feb 10, 2015 1:15 pm
by kbackman
After upgrading to 1.6.3 I'm still seeing the same error. Looking into the log files I'm seeing this:

[Tue Feb 10 13:10:39 2015] [error] [client 10.75.13.45] PHP Notice: Undefined variable: stdout in /usr/local/nagiosxi/html/includes/configwizards/vmware/vmware.inc.php on line 468, referer: http://nagios01.c01.noc.mlb.adm1.util.m ... wizard.php
[Tue Feb 10 13:10:39 2015] [error] [client 10.75.13.45] PHP Notice: Undefined offset: 3 in /usr/local/nagiosxi/html/includes/configwizards/vmware/vmware.inc.php on line 506, referer: http://nagios01.c01.noc.mlb.adm1.util.m ... wizard.php
[Tue Feb 10 13:10:39 2015] [error] [client 10.75.13.45] PHP Notice: Undefined offset: 2 in /usr/local/nagiosxi/html/includes/configwizards/vmware/vmware.inc.php on line 508, referer: http://nagios01.c01.noc.mlb.adm1.util.m ... wizard.php

Here is the uname -a of the VM I'm running nagios xi on:
Linux nagios01 2.6.32-358.2.1.el6.x86_64 #1 SMP Wed Mar 13 00:26:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

When running the ./getguests.pl I get the following output:
Server version unavailable at 'https://10.4.100.67:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 551


Thanks again for your help.

Re: Guest host VM list not showing up in VM monitoring wizza

Posted: Tue Feb 10, 2015 1:27 pm
by kbackman
Also here is an output of the current pearl packages installed:

yum list installed | grep perl
net-snmp-perl.x86_64 1:5.5-49.el6_5.2 @updates
perl.x86_64 4:5.10.1-136.el6_6.1 @updates
perl-Archive-Tar.x86_64 1.58-136.el6_6.1 @updates
perl-Archive-Zip.noarch 1.30-2.el6 @base
perl-CGI.x86_64 3.51-136.el6_6.1 @updates
perl-CPAN.x86_64 1.9402-136.el6_6.1 @updates
perl-Class-Accessor.noarch 0.31-6.1.el6 @base
perl-Class-MethodMaker.x86_64 2.16-6.el6 @base
perl-Class-Singleton.noarch 1.4-6.el6 @base
perl-Collectd.x86_64 5.4.1-1.mlb6 @/perl-Collectd-5.4.1-1.mlb6.x86_64
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-General.noarch 2.52-1.el6 @base
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-OpenSSL-Bignum.x86_64 0.04-8.1.el6 @base
perl-Crypt-OpenSSL-RSA.x86_64 0.25-10.1.el6 @base
perl-Crypt-OpenSSL-Random.x86_64 0.04-9.1.el6 @base
perl-Crypt-Rijndael.x86_64 1.09-2.el6 @epel
perl-Crypt-SSLeay.x86_64 0.57-16.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-Encode-Detect.x86_64 1.01-2.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-Zlib.x86_64 1:1.09-136.el6_6.1 @updates
perl-IO-stringy.noarch 2.110-10.1.el6 @base
perl-JSON.noarch 2.15-5.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-DKIM.noarch 0.37-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-NetAddr-IP.x86_64 4.027-7.el6 @base
perl-Package-Constants.x86_64 1:0.02-136.el6_6.1 @updates
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-Regexp-Common.noarch 2010010201-2.el6.rf @rpmforge
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-LibXML.x86_64 1:1.70-5.el6 @base
perl-XML-NamespaceSupport.noarch 1.10-3.el6 @base
perl-XML-Parser.x86_64 2.36-7.el6 @base
perl-XML-SAX.noarch 0.96-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-6.el6 @base
uuid-perl.x86_64 1.6.1-10.el6 @base

Re: Guest host VM list not showing up in VM monitoring wizza

Posted: Tue Feb 10, 2015 4:07 pm
by Box293
kbackman wrote:When running the ./getguests.pl I get the following output:
Server version unavailable at 'https://10.4.100.67:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 551
Can you try the getguests command using an administrator account? I am just wanting to rule out what is going on.

Is 10.4.100.67 a vCenter server or ESX(i) box?

Re: Guest host VM list not showing up in VM monitoring wizza

Posted: Wed Feb 11, 2015 10:52 am
by kbackman
I was running the getguests command as the root user and 10.4.100.67 is a VM client host on our Vcenter.

Re: Guest host VM list not showing up in VM monitoring wizza

Posted: Wed Feb 11, 2015 6:20 pm
by scottwilkerson
Our apologies, the current version is 1.6.4 with the fixes you need
http://assets.nagios.com/downloads/nagi ... vmware.zip

Re: Guest host VM list not showing up in VM monitoring wizza

Posted: Thu Feb 12, 2015 5:24 pm
by kbackman
Awesome thanks! I'll install it, test it and let you know the results.

Re: Guest host VM list not showing up in VM monitoring wizza

Posted: Thu Feb 12, 2015 5:59 pm
by kbackman
So updated the VM and was able to add VM hosts with in the Vcenter however these checks seem to be failing:

mpipe01 CPU Usage CRITICAL 02-12-2015 17:40:37 0d 0h 3m 5s 4/5 ESX3 CRITICAL - HOST-VM CPU Unknown error
mpipe01 Input / Output CRITICAL 02-12-2015 17:38:20 0d 0h 6m 25s 5/5 ESX3 CRITICAL - HOST-VM IO Unknown error
mpipe01 Memory CRITICAL 02-12-2015 17:40:01 0d 0h 4m 44s 5/5 ESX3 CRITICAL - HOST-VM MEM Unknown error
mpipe01 Networking CRITICAL 02-12-2015 17:39:39 0d 0h 3m 5s 3/5 ESX3 CRITICAL - HOST-VM NET Unknown error

Looking in the httpd/error.log I'm seeing the following:

[Thu Feb 12 17:52:26 2015] [error] [client 10.75.13.45] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: nagios01.c01.noc.mlb.adm1.util.mlbam.net/nagiosxi/includes/components/ccm/index.php?cmd=view&type=service&page=2
[Thu Feb 12 17:52:26 2015] [error] [client 10.75.13.45] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: nagios01.c01.noc.mlb.adm1.util.mlbam.net/nagiosxi/includes/components/ccm/index.php?cmd=view&type=service&page=2
[Thu Feb 12 17:52:42 2015] [error] [client 10.75.13.45] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: nagios01.c01.noc.mlb.adm1.util.mlbam.net/nagiosxi/includes/components/ccm/index.php?cmd=view&type=service&page=1
[Thu Feb 12 17:52:42 2015] [error] [client 10.75.13.45] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: nagios01.c01.noc.mlb.adm1.util.mlbam.net/nagiosxi/includes/components/ccm/index.php?cmd=view&type=service&page=1
[Thu Feb 12 17:52:49 2015] [error] [client 10.75.13.45] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: nagios01.c01.noc.mlb.adm1.util.mlbam.net/nagiosxi/includes/components/ccm/index.php
[Thu Feb 12 17:52:49 2015] [error] [client 10.75.13.45] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: nagios01.c01.noc.mlb.adm1.util.mlbam.net/nagiosxi/includes/components/ccm/index.php
[Thu Feb 12 17:52:58 2015] [error] [client 10.75.13.45] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: nagios01.c01.noc.mlb.adm1.util.mlbam.net/nagiosxi/includes/components/ccm/index.php
[Thu Feb 12 17:52:58 2015] [error] [client 10.75.13.45] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: nagios01.c01.noc.mlb.adm1.util.mlbam.net/nagiosxi/includes/components/ccm/index.php
[Thu Feb 12 17:53:13 2015] [error] [client 10.75.13.45] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: nagios01.c01.noc.mlb.adm1.util.mlbam.net/nagiosxi/includes/components/ccm/index.php
[Thu Feb 12 17:53:22 2015] [error] [client 10.75.13.45] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: nagios01.c01.noc.mlb.adm1.util.mlbam.net/nagiosxi/includes/components/ccm/index.php
[Thu Feb 12 17:53:44 2015] [error] [client 10.75.13.45] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: nagios01.c01.noc.mlb.adm1.util.mlbam.net/nagiosxi/includes/components/ccm/index.php
[Thu Feb 12 17:54:03 2015] [error] [client 10.75.13.45] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: nagios01.c01.noc.mlb.adm1.util.mlbam.net/nagiosxi/includes/components/ccm/index.php