ESXi root has special passwords and Nagios isn't taking it
Posted: Sun Mar 24, 2019 6:36 am
So I created a password on my ESXi host that contains both a dollar sign and an exclamation. I modified the esxi config file. Here is a sample password that has both special characters.
Fakepa$s!
This is what I have for the service definitions.
define service{
use generic-service
host_name ESXi1
service_description ESXi Hardware Check
check_command check_esxi_hardware!root!Fakepa$s!!dell!--perfdata
}
That didn't work so I tried to use "Fakepa$s!" with quotes and 'Fakepa$s!' with single quotes and neither are working. They are coming back with "UNKNOWN: Authentication Error". I even went as far as putting both the single quotes inside the quotes to no avail.
"'FakePa$s!'"
I set up several Nagios boxes using check_esxi_hardware.py on other networks with "regular" passwords that has no special characters just fine so I know what I am doing. It is just this particular ESXi host that has a password that contains both these special characters are causing me headaches.
Any help is appreciated. Thanks.
Fakepa$s!
This is what I have for the service definitions.
define service{
use generic-service
host_name ESXi1
service_description ESXi Hardware Check
check_command check_esxi_hardware!root!Fakepa$s!!dell!--perfdata
}
That didn't work so I tried to use "Fakepa$s!" with quotes and 'Fakepa$s!' with single quotes and neither are working. They are coming back with "UNKNOWN: Authentication Error". I even went as far as putting both the single quotes inside the quotes to no avail.
"'FakePa$s!'"
I set up several Nagios boxes using check_esxi_hardware.py on other networks with "regular" passwords that has no special characters just fine so I know what I am doing. It is just this particular ESXi host that has a password that contains both these special characters are causing me headaches.
Any help is appreciated. Thanks.