This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
chrisedwards
Posts: 5 Joined: Wed Apr 11, 2018 11:24 am
Post
by chrisedwards » Wed Apr 11, 2018 11:40 am
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
Post
by kyang » Wed Apr 11, 2018 12:17 pm
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
Post
by chrisedwards » Wed Apr 11, 2018 2:36 pm
That file does not exist on my installation.
kyang
Post
by kyang » Wed Apr 11, 2018 3:14 pm
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
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Thu Apr 12, 2018 8:36 am
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"
chrisedwards
Posts: 5 Joined: Wed Apr 11, 2018 11:24 am
Post
by chrisedwards » Thu Apr 12, 2018 8:49 am
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:
Post
by scottwilkerson » Thu Apr 12, 2018 9:02 am
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
chrisedwards
Posts: 5 Joined: Wed Apr 11, 2018 11:24 am
Post
by chrisedwards » Mon Apr 16, 2018 9:58 am
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:
Post
by scottwilkerson » Mon Apr 16, 2018 10:14 am
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?