I am having issue monitoring VMware ESX vsphere. I have installed VMware Nagios XI Monitoring Wizard and VMware Perl SDK sucessfully where i get an message "Enjoy, --the VMware team". next i got to my nagios xi web UI and vmware under monitoring wizards and follow the instruction. I even put in the username and password. once i am completed with the setup i get the following error message when i click on host details.
ESX3 CRITICAL - Auth file must contain both username and password
Please advice on what i am doing wrong here and why i am getting this error.
i have followed every step of the installation of monitoring vmware pdf doc.
Monitoring VMware ESX issue
Re: Monitoring VMware ESX issue
Your username and password are probably stored in: "/usr/local/nagiosxi/etc/components/vmware/<your_host_name>_auth.txt" file. Check it out and make sure that your username and password are not on the same line.
Hope this helps.
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitoring VMware ESX issue
Thanks, the username and password was on the same line and i put the password on the next line and i still get the same error message.
Re: Monitoring VMware ESX issue
OK, I think i fixed the orig error message i posted. but now i get another error message.
ESX3 CRITICAL - Error: Permission to perform this operation was denied.
ESX3 CRITICAL - Error: Permission to perform this operation was denied.
Re: Monitoring VMware ESX issue
Can you run your check in the command line and show us the exact command that you are running and the output? For example, your check may look something like this:
Code: Select all
[root@localhost libexec]# ./check_esx3.pl -H 192.168.X.XXX -f /usr/local/nagiosxi/etc/components/vmware/VMware_Host_auth.txt -l CPU
ESX3 OK - cpu usage=742.00 MHz (7.75%) | cpu_usagemhz=742.00Mhz;; cpu_usage=7.75%;;Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitoring VMware ESX issue
here is the output
./check_esx3.pl -H xxx.xxx.xxx.xxx -f /usr/local/nagiosxi/etc/components/vmware/vmware-hostxxx_auth.txt -l CPU
ESX3 CRITICAL - Error: Permission to perform this operation was denied.
./check_esx3.pl -H xxx.xxx.xxx.xxx -f /usr/local/nagiosxi/etc/components/vmware/vmware-hostxxx_auth.txt -l CPU
ESX3 CRITICAL - Error: Permission to perform this operation was denied.
Re: Monitoring VMware ESX issue
Are you sure you are using the right credentials? Can you log in the VMware client with the same username and password? Did you try re-running the wizard? Are you trying to monitor a VMware host or a guest VM on the VMware host?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitoring VMware ESX issue
I am monitoring the VMware host. I did log into the VMware with the same credentials. just curious what are the file ownership and group should be? Plus, do i need to enable anything on the ESX hosts for nagios to talk to it or vice verse? i can telnet to post 5666 on both side.
Re: Monitoring VMware ESX issue
My permissions are: -rwxr-xr-x 1 nagios users 82841 Feb 15 14:04 check_esx3.pl
I don't think the firewall is an issue. Do you have any special characters in your password? This is a possibility... If this is the case, we will see if we can find a workaround.
I don't think the firewall is an issue. Do you have any special characters in your password? This is a possibility... If this is the case, we will see if we can find a workaround.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitoring VMware ESX issue
setting the password to simple character didn't work and for test purpose we even turned off the firewall on the esx hosts. still getting the same error message. running out of option here.