ConSol-Monitoring / check_vsphere

A check pugin for naemon/nagios/icinga to monitor various stuff on ESXi Hosts and VCenter
https://omd.consol.de/docs/plugins/check_vsphere/
GNU Affero General Public License v3.0
9 stars 7 forks source link

Sessionfile handling #20

Closed datamuc closed 5 months ago

mlueckert commented 5 months ago

This will introduce a new --sessionfile argument where you can specify the path to a sessionfile where the authorization cookie will be stored for later reuse.

This change is based on the following discussion: https://github.com/vmware/pyvmomi/issues/537

In newer versions of pyVim one could use the normal SmartConnect method as it will introduce a "sessionId" parameter, but in the current version 8.0.2.0.1 it is not there yet. Here you can find the new sessionId parameter implementation: https://github.com/vmware/pyvmomi/blob/29104169c65d8ce455a7d384a8a741801ea0c458/pyVim/connect.py#L906

datamuc commented 5 months ago

Closed in favor of PR#21