check_esx3 authorization

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
chrisedwards
Posts: 5
Joined: Wed Apr 11, 2018 11:24 am

check_esx3 authorization

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

Re: check_esx3 authorization

Post 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
chrisedwards
Posts: 5
Joined: Wed Apr 11, 2018 11:24 am

Re: check_esx3 authorization

Post by chrisedwards »

That file does not exist on my installation.
kyang

Re: check_esx3 authorization

Post 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
chrisedwards
Posts: 5
Joined: Wed Apr 11, 2018 11:24 am

Re: check_esx3 authorization

Post by chrisedwards »

That directory is empty.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_esx3 authorization

Post 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"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chrisedwards
Posts: 5
Joined: Wed Apr 11, 2018 11:24 am

Re: check_esx3 authorization

Post by chrisedwards »

I ran the command as both root and as the user nagios. Neither worked.

Screenshot attached.

Thanks for helping me!
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_esx3 authorization

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chrisedwards
Posts: 5
Joined: Wed Apr 11, 2018 11:24 am

Re: check_esx3 authorization

Post by chrisedwards »

The .vmware directory doesnt even exist. This is why I am stumped. Could it be ssh certificates?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_esx3 authorization

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked