VMware ESX temperature monitoring

Hi,
I want to share a learning with montoring DELL servers with ESXi 6.5.

The check_vmware_esx script did’nt return any temperature sensor values when calling with -S runtime -s temp. It looks only for sensors of type “temperature”, but these report their temperatures with type “other”.

Workaround:
there is a program block starting with if ($subselect eq "temp") where sensors are selected in a loop.
Wrong sensor types are skipped by checking for sensor type not equal temperature.

I changed
if (lc($_->sensorType) ne 'temperature')
to
if (lc($_->baseUnits) !~ m/^degrees.*/)
and everything works - now looks for all sensor readings with base unit “degrees”.

Greetings,
Manfred

2 Likes

Hi,

thanks for sharing :slight_smile: Did you already create a pull request for the plugin over at GitHub? I’ve seen that it became active in the past weeks again. Thanks in advance.

Cheers,
Michael

Done :ok_hand:

Greetings,
Manfred

1 Like