Page 2 of 2
Re: Monitor a guest VM on a VMWare host
Posted: Mon Feb 02, 2015 3:33 am
by mwasc
Yes, the user is able to read the guests. I've added an another user, but I get the same screen.
Re: Monitor a guest VM on a VMWare host
Posted: Mon Feb 02, 2015 2:02 pm
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"
Re: Monitor a guest VM on a VMWare host
Posted: Thu Feb 05, 2015 9:58 am
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.
Re: Monitor a guest VM on a VMWare host
Posted: Thu Feb 05, 2015 2:18 pm
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!
Re: Monitor a guest VM on a VMWare host
Posted: Thu Feb 05, 2015 5:33 pm
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
Re: Monitor a guest VM on a VMWare host
Posted: Thu Feb 05, 2015 9:03 pm
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
Re: Monitor a guest VM on a VMWare host
Posted: Thu Feb 05, 2015 9:08 pm
Confirmed I did successfully upload the Wizard attached to this support thread
Shaun
Re: Monitor a guest VM on a VMWare host
Posted: Fri Feb 06, 2015 10:55 am
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?
Re: Monitor a guest VM on a VMWare host
Posted: Fri Feb 06, 2015 12:20 pm
Downloaded that latest wizard
Removed current wizard
Installed new
restarted httpd
Test it & works now!
Thanks All!!