Monitor a guest VM on a VMWare host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mwasc
Posts: 9
Joined: Fri Jan 23, 2015 8:06 am

Re: Monitor a guest VM on a VMWare host

Post by mwasc »

Yes, the user is able to read the guests. I've added an another user, but I get the same screen.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitor a guest VM on a VMWare host

Post by lmiltchev »

One thing I noticed - these scripts are owned by nagios:root:
ls -la /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/
total 28
drwxr-xr-x 2 nagios root 4096 Jan 21 20:11 .
drwxr-xr-x 6 nagios root 4096 Jan 21 20:11 ..
-rwxr-xr-x 1 nagios root 5187 Jan 21 20:11 getguests.pl
-rwxr-xr-x 1 nagios root 5187 Jan 21 20:11 growguest.pl
-rwxr-xr-x 1 nagios root 2033 Jan 21 20:11 NagiosXI-VMWare.sh
while on all of my test boxes the permissions are nagios:nagios. You can try changing the permissions and see if this is going to help.

Can you run the following check from the CLI, and show us the output? (hide the sensitive info)

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -H "<ip address>" -f "/usr/local/nagiosxi/etc/components/vmware/<hostname>.txt" -N "<VM name>" -l "CPU"
Be sure to check out our Knowledgebase for helpful articles and solutions!
mwasc
Posts: 9
Joined: Fri Jan 23, 2015 8:06 am

Re: Monitor a guest VM on a VMWare host

Post by mwasc »

I had changed the permissions, but it doesnt' help.

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -H "<ip address>" -f "/usr/local/nagiosxi/etc/components/vmware/<hostname>.txt" -N "<VM name>" -l "CPU"
And I'll get this message:

Code: Select all

Unable to open auth file "/usr/local/nagiosxi/etc/components/vmware/<hostname>.txt"
I've followed the path and there is no "vmware" Directory.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitor a guest VM on a VMWare host

Post by lmiltchev »

We found a bug in the latest vmware wizard. Download the patched wizard below:
vmware.zip
Don't unzip it - just install it by going to: Admin->Manage Config Wizards->Btowse->vmware.zip->Upload Wizard

Next, rerun the vmware wizard and see if the issue has been resolved. Thanks!
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
[email protected]
Posts: 3
Joined: Sat Dec 07, 2013 10:52 pm

Re: Monitor a guest VM on a VMWare host

Post by [email protected] »

I have exact same problem
vmware.png
I can add ESXi 5.0 -5.5 hosts no problem on my XI server. When I add VM guests using the wizard (the new 1 posted), it is blank.
Running as nagios user ./getguests.pl -H [ipaddress] -u root -p [passwd] is successful & lists all my guest VMs from that ESX host
The user account & password used has access to all client VMs
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor a guest VM on a VMWare host

Post by scottwilkerson »

@[email protected] - Did you ypload the new wizard lmiltchev posted here?
http://support.nagios.com/forum/viewtop ... 10#p125864

You can upload through Admin -> Manage Config Wizards
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
[email protected]
Posts: 3
Joined: Sat Dec 07, 2013 10:52 pm

Re: Monitor a guest VM on a VMWare host

Post by [email protected] »

Confirmed I did successfully upload the Wizard attached to this support thread

Shaun
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor a guest VM on a VMWare host

Post by scottwilkerson »

[email protected] wrote:Confirmed I did successfully upload the Wizard attached to this support thread

Shaun
There have been 2 attached, to confirm you installed the one posted by lmiltchev?
viewtopic.php?f=6&t=31097&start=10#p125864

And to confirm one more thing, are you getting the same results, or did this resolve the issue?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
[email protected]
Posts: 3
Joined: Sat Dec 07, 2013 10:52 pm

Re: Monitor a guest VM on a VMWare host

Post by [email protected] »

Downloaded that latest wizard
Removed current wizard
Installed new
restarted httpd
Test it & works now!

Thanks All!!
Locked