ascii42 / check_vmware_horizon

Icinga/ Nagios check for vmware Horizon
1 stars 0 forks source link

Unknown parameter: Problem while gathering API Token #2

Closed jbaumgar1 closed 8 months ago

jbaumgar1 commented 8 months ago

Hi,

I've got this message when I try to use the following command.

./check_vmware_horizon.sh -D domain.com -H horizon.domain.com -P password -U username

Do you have any idea on what is missing? I'm running Horizon server 2309.

Best

ascii42 commented 8 months ago

Hi,

The Parameters should be ok, maybe you could try -d for debug mode. I guess there is something wrong with the user. i.e. username or bad password or permissons....

In that case the debug mode should print something like + [[ {"status":"UNAUTHORIZED","timestamp":1703241420944,"errors":[{"error_key":"auth.token.invalid.error","

jbaumgar1 commented 8 months ago

I've put -d at the end but still have the same output.

Unknown parameter: Problem while gathering API Token Usage: check_vmware_horizon.sh [-h] [-V] -H [-U ] [-P ] [-D ] [-opts] [-w ] [-c ] [-v]

jbaumgar1 commented 8 months ago

Ok my bad, I was using another DNS entry to point to the VIP which doesn't work probably due to the fact that it's not the same domain