Page 1 of 3
Problems with monitoring of VMware guest machines
Posted: Thu Dec 06, 2012 10:33 am
by Bojikravov
Hi, I 'm using nagiosxi-2012 R1.2-ovf-64, I've got problems with monitoring a VM guest machine on ESXi 5.1 (799733) host.
My current VMware cofiguration wizard is 1.1 (Nagios said that is up to date),
According "Monitoring_VMware_With_Nagios_XI.pdf" I've made permissions:
Code: Select all
chown nagios.nagcmd /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl
Code: Select all
chmod 775 /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl
After that i followed Mr. Miltchev's post (
http://support.nagios.com/forum/viewtop ... sdk#p37953)
and I used these command to make SDK Prerequisites
Code: Select all
yum clean all
yum erase perl-XML-SAX-Base-1.04-1.el6.rf.noarch
yum install perl-XML-SAX -y
yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML –y
After that upload file VMware-vSphere-Perl-SDK-5.1.0-780721.x86_64.gz (last version on vmware site) and successfully install VMware Perl SDK.
So far so good.
I add my ESXi host to Nagios without any problems, and saw his service details (CPU, RAM etc.)
But when I try to add virtual machine that belongs to that ESX host (check Monitor a guest VM on the VMWare host) on Guest Selection I recive
"It appears as though the VMware SDK has not yet been installed on your Nagios XI server. You must install the SDK before you are able to use this wizard"
Do you have any suggestions?
I'll be thankful.
Re: Problems with monitoring of VMware guest machines
Posted: Thu Dec 06, 2012 1:13 pm
by lmiltchev
Did all of the prereqs installed fine, or you had some messages about "older" perl modules, etc.?
Also, let me clarify... When you run the VMware Monitoring Wizard, you enter the IP address of the vmware server (host), the credentials, and then if you select:
1. Monitor the VMware host - you can proceed with the wizard and monitor the guest fine
2. Monitor a guest VM on the VMWare host - you don't see guest VMs on this host, and you receive the following message:
"It appears as though the VMware SDK has not yet been installed on your Nagios XI server. You must install the SDK before you are able to use this wizard"
Is this correct?
Re: Problems with monitoring of VMware guest machines
Posted: Thu Dec 06, 2012 1:44 pm
by Bojikravov
Hi,
I'm not sure about messages for older perl modules... all installations passed fine. My fault. Tomorrow I'll make a new installation.
In VMware monitoring wizard, when I put my credentials for host I can choose between:
- monitor host or VM on that host.
When I choose to monitor the Host and finish the wizard everything works fine.
But when I choose to monitor virtual machine on that host I receive "It appears as though the VMware SDK has not yet been installed on your Nagios XI server. You must install the SDK before you are able to use this wizard"
I tried to install older version of SDK Tools (5.0) and the result was the same, I can't see a list of VM's of target ESXi host.
Re: Problems with monitoring of VMware guest machines
Posted: Thu Dec 06, 2012 4:39 pm
by lmiltchev
Can you run the following commands in terminal and show us the output?
Code: Select all
uname -a
cat /etc/redhat-release
yum list installed | grep perl
Re: Problems with monitoring of VMware guest machines
Posted: Fri Dec 07, 2012 2:41 am
by Bojikravov
Linux localhost.localdomain 2.6.32-279.5.1.el6.x86_64 #1 SMP Tue Aug 14 23:54:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
CentOS release 6.3 (Final)
Code: Select all
yum list installed | grep perl
perl.x86_64 4:5.10.1-127.el6 @base
perl-CPAN.x86_64 1.9402-127.el6 @base
perl-Class-Accessor.noarch 0.31-6.1.el6 @base
perl-Class-Singleton.noarch 1.4-6.el6 @base
perl-Compress-Raw-Zlib.x86_64 1:2.020-127.el6 @base
perl-Compress-Zlib.x86_64 2.020-127.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-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-DateTime.x86_64 1:0.5300-1.el6 @base
perl-Digest-HMAC.noarch 1.01-22.el6 @base
perl-Digest-SHA.x86_64 1:5.47-127.el6 @base
perl-Digest-SHA1.x86_64 2.12-2.el6 @base
perl-Error.noarch 1:0.17015-4.el6 @base
perl-ExtUtils-MakeMaker.x86_64 6.55-127.el6 @base
perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-127.el6 @base
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.020-127.el6 @base
perl-IO-Compress-Zlib.x86_64 2.020-127.el6 @base
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-Mail-IMAPClient.noarch 3.32-1.el6 @epel
perl-Mail-POP3Client.noarch 2.18-6.el6 @epel
perl-Math-Calc-Units.noarch 1.07-6.el6 @epel
perl-Module-Pluggable.x86_64 1:3.90-127.el6 @base
perl-Nagios-Plugin.noarch 0.35-2.el6.rf @rpmforge
perl-Net-DNS.x86_64 0.65-4.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-127.el6 @base
perl-Pod-Simple.x86_64 1:3.13-127.el6 @base
perl-SNMP_Session.noarch 1.12-4.el6 @base
perl-Socket6.x86_64 0.23-3.el6 @base
perl-Test-Harness.x86_64 3.17-127.el6 @base
perl-Time-HiRes.x86_64 4:1.9721-127.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-127.el6 @base
perl-libs.x86_64 4:5.10.1-127.el6 @base
perl-libwww-perl.noarch 5.833-2.el6 @base
perl-version.x86_64 3:0.77-127.el6 @base
rrdtool-perl.x86_64 1.3.8-6.el6 @base
That's what I get.
Re: Problems with monitoring of VMware guest machines
Posted: Fri Dec 07, 2012 3:00 am
by Bojikravov
That is my System Profile
Code: Select all
===Nagios XI Installation Profile===
===System:====
Nagios XI Version : 2012R1.2
localhost.localdomain 2.6.32-279.5.1.el6.x86_64 x86_64
CentOS release 6.3 (Final)
Gnome is not installed
===Apache Information====
PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11
Server Name: 192.168.250.33
Server Address: 192.168.250.33
Server Port: 80
===Date/Time====
PHP Timezone: America/Chicago
PHP Time: Fri, 07 Dec 2012 01:57:07 -0600
System Time: Fri, 07 Dec 2012 01:57:07 -0600
===Nagios XI Data====
nagios (pid 21011) is running...
NPCD running (pid 1623).
ndo2db (pid 1689) is running...
CPU Load 15: 0.78
Total Hosts: 2
Total Services: 15
Function 'get_base_uri' returns: http://192.168.250.33/nagiosxi/
Function 'get_base_url' returns: http://192.168.250.33/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: http://192.168.250.33/nagiosxi/includes/components/profile/profile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/
===Ping Test localhost====
Running:
/bin/ping -c 3 localhost 2>&1
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.066 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.027 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.042 ms
--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.027/0.045/0.066/0.016 ms
===Test wget To locahost====
WGET From /localhost/nagiosql/index.php
Running:
/usr/bin/wget http://localhost/nagiosql/index.php
--2012-12-07 01:57:09-- //localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: `/tmp/nagiosql_index.tmp'
0K ..... 100% 276M=0s
2012-12-07 01:57:10 (276 MB/s) - `/tmp/nagiosql_index.tmp' saved [5259/5259]
Re: Problems with monitoring of VMware guest machines
Posted: Fri Dec 07, 2012 11:42 am
by lmiltchev
It seems like that you have all of the required packages installed. I am not sure why you cannot see the guests. What is the output of the following command?
How many guests do you have on this particular host? I assume you can log in the ESX server using same credentials and see all of the guest VMs.
Re: Problems with monitoring of VMware guest machines
Posted: Fri Dec 07, 2012 2:12 pm
by Bojikravov
On ESXi host machine I run 7 VM's.
On Monday I'll run command and send you feedback.
Thankс for your attention.
Re: Problems with monitoring of VMware guest machines
Posted: Mon Dec 10, 2012 1:26 am
by Bojikravov
Hi, that's what Nagos said after
[root@localhost vmware-vsphere-cli-distrib]# yum list installed libuuid
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
epel/metalink | 16 kB 00:00
* base: centos.skknet.net
* epel: mirror.telepoint.bg
* extras: centos.skknet.net
* rpmforge: mirror.nl.leaseweb.net
* updates: centos.skknet.net
base | 3.7 kB 00:00
cr | 3.0 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 4.9 MB 00:00
extras | 3.5 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 4.1 MB 00:00
vmware-tools-collection | 951 B 00:00
Installed Packages
libuuid.x86_64 2.17.2-12.7.el6_3 @updates
You have new mail in /var/spool/mail/root
[root@localhost vmware-vsphere-cli-distrib]#
Re: Problems with monitoring of VMware guest machines
Posted: Mon Dec 10, 2012 11:36 am
by scottwilkerson
We did have a couple bugs with the wizard around the time of this release. Can you re-install the wizard through Admin -> Manage Config Wizards
http://assets.nagios.com/downloads/nagi ... vmware.zip