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.
VMware Auth
Re: VMware Auth
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.
My guess is it isn't readable, its gone, or the uname/passwd are no longer valid in the file.
Re: VMware Auth
If it is gone, you can recreate it in this folder
Then you can add the username and password like the example below.
Save the file, make sure the owner is apache with the group set to nagios so that can read the file.
Code: Select all
/usr/local/nagiosxi/etc/components/vmware/Code: Select all
username=nagiosadmin
password=nagiosadmin
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
rdobbsmacu
- Posts: 36
- Joined: Tue Apr 28, 2015 3:11 pm
Re: VMware Auth
The username and password are correct and the file attributes are set to -rw-r--r-- apache nagios
Re: VMware Auth
When using the -f option for the check_esx3, you need to use the full path to the auth file like below.
Is the checked defined that way?
Can you login as the nagios user to the console and run that check without errors?
Code: Select all
-f /usr/local/nagiosxi/etc/components/vmware/auth.txtCan you login as the nagios user to the console and run that check without errors?
Be sure to check out our Knowledgebase for helpful articles and solutions!