Page 1 of 1

ESX3 CRITICAL - Error: Cannot complete login due to an incor

Posted: Wed Jul 15, 2020 11:45 pm
by nknllaneta
Hi Everyone, I am still trying to find my way around Nagios particularly with Linux. Please bear with me.

The ESXi root password of all our servers have been changed recently. I have updated the password via GUI and run the "test check command" confirming that it should be working. However, I still kept seeing this error

ESX3 CRITICAL - Error: Cannot complete login due to an incorrect user name or password.

For the Following services:
CPU Usage for VMHost
Datastore Usage for VMHost
Input/Output for VMHost
Memory for VMHost
Networking for VMHost
Services for VMHost
VM Status for VMHost


Also, tried running the command below via SSH.

[root@nagios tmp]# /usr/local/nagios/libexec/check_esx3.pl -H 10.141.1.66 -u XXXXX -p XXXXX -l "CPU"
ESX3 OK - cpu usage=3263.00 MHz (10.87%) | cpu_usagemhz=3263.00Mhz;; cpu_usage=10.87%;;



Strangely, some of the hosts are working and some are not. Please help :?

Re: ESX3 CRITICAL - Error: Cannot complete login due to an i

Posted: Thu Jul 16, 2020 3:13 pm
by jbrunkow
Welcome to the forum! :D Thanks for joining in.

There are a couple things that could cause this. One thing to consider is what special characters are in the password; some of them may be executed as part of the command instead of as a character. You can usually fix that type of thing by using an escape character or just by wrapping the password in quotes.

I encourage you to double check that the password you entered is correct. :)

It may also be helpful to know that you can set passwords as macros in XI. See the link below for more detailed information on how to do so.
UNDERSTANDING USER MACROS IN NAGIOS XI

The output of your check command looks successful. What does it return on the other servers?

Re: ESX3 CRITICAL - Error: Cannot complete login due to an i

Posted: Thu Jul 16, 2020 4:59 pm
by nknllaneta
Thank you @jbrunkow

We are using the same password across all our ESXi servers - out of 10 ESXi hosts, 4 are working and 6 are not.

Tested the credentials via GUI "test check command" and below confirming that the credentials are working.

[root@nagios tmp]# /usr/local/nagios/libexec/check_esx3.pl -H 10.141.1.66 -u XXXXX -p XXXXX -l "CPU"
ESX3 OK - cpu usage=3263.00 MHz (10.87%) | cpu_usagemhz=3263.00Mhz;; cpu_usage=10.87%;;


:? :?

Re: ESX3 CRITICAL - Error: Cannot complete login due to an i

Posted: Fri Jul 17, 2020 2:25 pm
by jbrunkow
Hi,
There maybe an error in the current configuraitons, you may want to refresh the configuration files. Just navigate to Configure using the top bar of XI > click Core Config Manager under Advanced Configuration on the left pane > then click Config File Management under Tools > and perform the following steps on that page...
  1. 1. Click Delete Files. (Don't worry, they are easy to recreate.)
  • 2. Click Write Configs.
  • 3. Click Verify Files. If any errors are raised at this point, try to resolve them and then repeat steps one through three.
  • 4. Click Restart Nagios Core to apply the changes.
It that doesn't resolve it, send ( PM ) us a profile. We can find lots of information about your system in there. You can download the profile by navigating to System Profile under System Config on the left pane > and clicking the Download Profile button on that page.

Re: ESX3 CRITICAL - Error: Cannot complete login due to an i

Posted: Wed Jul 22, 2020 10:41 pm
by nknllaneta
Thanks @jbrunkow

I restarted the service but no luck.

Without deleting the hosts, I re-added the entries with the exact name of the affected ESXi hosts to avoid creating duplicate entries and it resolved the issue.

Re: ESX3 CRITICAL - Error: Cannot complete login due to an i

Posted: Thu Jul 23, 2020 8:26 am
by scottwilkerson
nknllaneta wrote:Thanks @jbrunkow

I restarted the service but no luck.

Without deleting the hosts, I re-added the entries with the exact name of the affected ESXi hosts to avoid creating duplicate entries and it resolved the issue.
Glad to hear the issue is resolved!

Locking thread