VMware Auth

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rdobbsmacu
Posts: 36
Joined: Tue Apr 28, 2015 3:11 pm

VMware Auth

Post 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.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: VMware Auth

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: VMware Auth

Post 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.
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

Post by rdobbsmacu »

The username and password are correct and the file attributes are set to -rw-r--r-- apache nagios
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: VMware Auth

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked