BaldMansMojo / check_vmware_esx

chech_vmware_esx Fork of check_vmware_api.pl
GNU General Public License v2.0
124 stars 67 forks source link

make session file usage more robust #127

Closed sni closed 5 years ago

sni commented 7 years ago

Compare the api returned url and the given url2connect less error prone. Using --sslport=443 results in a url2connect https://vcenter:443/... while get_option returns https://vcenter/... Also it seems like some api returns .../sdk while others return .../sdk/webService so just ignore that part. Both leads to not resuing the existing session files.

this should fix #115