Page 1 of 1
VMware Auth
Posted: Mon Apr 18, 2016 12:49 pm
by rdobbsmacu
My vmware services are returning CRITICAL - Unable to open auth file "/nagiosxi/etc/components/vmware/auth.txt
I have the service in a manage host group and service group and multiple host are members of theses groups.
Re: VMware Auth
Posted: Mon Apr 18, 2016 12:55 pm
by gormank
Have you looked at the file?
My guess is it isn't readable, its gone, or the uname/passwd are no longer valid in the file.
Re: VMware Auth
Posted: Mon Apr 18, 2016 1:11 pm
by tgriep
If it is gone, you can recreate it in this folder
Code: Select all
/usr/local/nagiosxi/etc/components/vmware/
Then you can add the username and password like the example below.
Code: Select all
username=nagiosadmin
password=nagiosadmin
Save the file, make sure the owner is apache with the group set to nagios so that can read the file.
Re: VMware Auth
Posted: Mon Apr 18, 2016 1:22 pm
by rdobbsmacu
The username and password are correct and the file attributes are set to -rw-r--r-- apache nagios
Re: VMware Auth
Posted: Mon Apr 18, 2016 2:23 pm
by tgriep
When using the -f option for the check_esx3, you need to use the full path to the auth file like below.
Code: Select all
-f /usr/local/nagiosxi/etc/components/vmware/auth.txt
Is the checked defined that way?
Can you login as the nagios user to the console and run that check without errors?