Unkown authentication error.

This forum supports the ESX Host Health Monitor plugin. When posting post screenshots of issues and any script and command logs listed in the probe consoles.
Post Reply
oliveradams
Posts: 3
Joined: Wed Apr 11, 2018 3:46 pm

Unkown authentication error.

Post by oliveradams »

I have been having this problem since I started using this plugin. It has never actually worked correctly for me. I have emailed support multiple times with no replies to my last few emails. I was told something about the password not being stored correctly, Does anyone know what I can try next.

This is the output from the commands

cmd.exe!!! /c "C:\Python27\Python.exe -W ignore C:\Python27\check_esxi_hardware.py -v -H *.*.*.* -U root -P "-9999" -V hp"

20180926 12:43:58 Connection to https://*.*.*.*
20180926 12:43:58 Found pywbem version 0.10.0
20180926 12:43:58 Check classe OMC_SMASHFirmwareIdentity
20180926 12:44:02 Global exit set to UNKNOWN
UNKNOWN: Authentication Error

Whatever password I enter it uses 9999.

User avatar
Cubert
Posts: 1483
Joined: Tue Dec 29, 2015 7:57 pm
Contact:

Re: Unkown authentication error.

Post by Cubert »

What version of ESX plugin are you on?

The Current Version Is: 4.0.0.58

The issue was in the script where, the script engine has problems with raw SQL and saving variables so we get a SQL error code instead of your password value.

We changed the way we got that information in the latest build so you should have better results.

Make sure your script version number matches the latest build with the following info
Version 4.0.0.56
Date 3/09/2018

If you need the latest version goto our site and login and view your subscriptions. There you will find the link to the latest downoads.

oliveradams
Posts: 3
Joined: Wed Apr 11, 2018 3:46 pm

Re: Unkown authentication error.

Post by oliveradams »

Thanks for your reply. I am running .58 do I need to downgrade to .56 then?

User avatar
Cubert
Posts: 1483
Joined: Tue Dec 29, 2015 7:57 pm
Contact:

Re: Unkown authentication error.

Post by Cubert »

Is script version .56?

User avatar
Cubert
Posts: 1483
Joined: Tue Dec 29, 2015 7:57 pm
Contact:

Re: Unkown authentication error.

Post by Cubert »

If you open the ESX Health Monitor script under the script/maintenance folder

on line 56 should be execute powershell.

Code: Select all

[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("@sqlPassword@"))
Just before this line, add a new line that does a script log message function.

Plase "This is the SQL password encoded[@sqlPassword@]" as the log line.

Let probe run and see what the output was from log line in the agent script logs.

If it looks like base64 then use an online base64 decoder to decode string. Or replace @sqlPassword@ in the powershell string and run that command in powershell to see the decoded version.

Does the decoded version come out as -9999 ? or is it a password ?

oliveradams
Posts: 3
Joined: Wed Apr 11, 2018 3:46 pm

Re: Unkown authentication error.

Post by oliveradams »

I just ran this and the decoded text was the correct password.

User avatar
Cubert
Posts: 1483
Joined: Tue Dec 29, 2015 7:57 pm
Contact:

Re: Unkown authentication error.

Post by Cubert »

Ok in the script if we edit it.

Line 61
Edit this line, change ESXPassword to DECRYPTPASSWORD and rerun scans. Do you get "-9999" now?

Before

Code: Select all

C:\Python27\Python.exe -W ignore C:\Python27\check_esxi_hardware.py -H @ESXHOSTIP@ -U @ESXUsername@ -P "@ESXPassword@" -V @ESXVender@
After

Code: Select all

C:\Python27\Python.exe -W ignore C:\Python27\check_esxi_hardware.py -H @ESXHOSTIP@ -U @ESXUsername@ -P "@DECRYPTPASSWORD@" -V @ESXVender@

Post Reply