Page 1 of 1
check_esx3 authorization
Posted: Wed Apr 11, 2018 11:40 am
by chrisedwards
Hello All!
I have inherited a Nagios XI install. I am trying to manually test a check with check_esx3.pl.
When I run...
Code: Select all
[/usr/local/nagios/libexec/check_esx3.pl -H "uk-esx" -f "/home/nagios/.vmware/uk_auth.txt" -l "CPU"
I get this result...
Code: Select all
ESX3 CRITICAL - Unable to open auth file "/home/nagios/.vmware/uk_auth.txt"
The file uk_auth.txt is missing. BUT... This check is still running properly. Could there be another secret storage method for the auth file?
Any help is appreciated.
Thanks,
Chris
Re: check_esx3 authorization
Posted: Wed Apr 11, 2018 12:17 pm
by kyang
Hello,
If the check is running properly from the UI, its probably from the config wizard.
XI stores stores the location of this auth file typically here.
Code: Select all
/usr/local/nagiosxi/etc/components/vmware/vcenter_nagios_local_auth.txt
Re: check_esx3 authorization
Posted: Wed Apr 11, 2018 2:36 pm
by chrisedwards
That file does not exist on my installation.
Re: check_esx3 authorization
Posted: Wed Apr 11, 2018 3:14 pm
by kyang
Sorry,
It wouldn't be that exact file, because that is specific to my server.
What is in that directory?
Code: Select all
ll /usr/local/nagiosxi/etc/components/vmware
Re: check_esx3 authorization
Posted: Thu Apr 12, 2018 7:44 am
by chrisedwards
That directory is empty.
Re: check_esx3 authorization
Posted: Thu Apr 12, 2018 8:36 am
by scottwilkerson
can you go to Configure -> CCM -> Services
select this service
take a screenshot of the command and args so we can see how it is configured?
Also, when you tried to run this form the command line, were you root or nagios?
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H "uk-esx" -f "/home/nagios/.vmware/uk_auth.txt" -l "CPU"
Re: check_esx3 authorization
Posted: Thu Apr 12, 2018 8:49 am
by chrisedwards
I ran the command as both root and as the user nagios. Neither worked.
Screenshot attached.
Thanks for helping me!
Re: check_esx3 authorization
Posted: Thu Apr 12, 2018 9:02 am
by scottwilkerson
Wow this actually makes no sense that it is still running in Nagios, what is the output of this
Code: Select all
ls -al /home/nagios/.vmware/uk_auth.txt
Re: check_esx3 authorization
Posted: Mon Apr 16, 2018 9:58 am
by chrisedwards
The .vmware directory doesnt even exist. This is why I am stumped. Could it be ssh certificates?
Re: check_esx3 authorization
Posted: Mon Apr 16, 2018 10:14 am
by scottwilkerson
chrisedwards wrote:The .vmware directory doesnt even exist. This is why I am stumped. Could it be ssh certificates?
This really doesn't make any sense, are you sure it is still executing properly? Can you show a screenshot of the advaned tab when viewing the Service status detail page for this service?