...A place where sharing IT monitoring knowledges

Wednesday 5 June 2013

check_esx3/check_vmware_api error 'Cannot complete login due to an incorrect user name or password' when upgrading to ESXi5


If you've upgraded your VMWare infrastructure to ESXi5 and you're getting the error 'Cannot complete login due to an incorrect user name or password' when running OP5's check_esx3 or check_vmware_api plugins, bet that you're using a Windows domain username without setting the domain itself.

Up to ESXi5 you could use a domain username in order to login to VCenter/ESX servers without the need of specifying the domain. Starting at ESXi5 you need to set the user domain in two of these ways:
  • user@domain
  • domain\user
So there's a chance that you, as I, were using the OP5 check_esx3.pl / check_vmware_api.pl Nagios plugin in order to get info from your virtualization infrastructure and that the plugin based checks stopped working after upgrading to ESXi5. In order to solve the problem apply the previous rule when setting the -u (--user) argument. 

Have in mind that, since the backslash (\) is a shell special character, you must quote the username value ('domain\user') or escape the backslash (domain\\user) in order to work when using the syntax domain\user.




No comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes