vmware_exporter icon indicating copy to clipboard operation
vmware_exporter copied to clipboard

ESX host temperature monitoring

Open tushar-umbarkar opened this issue 5 years ago • 8 comments

Hi All,

Is there any way to monitor the server temperature using exporter ?

Thanks and Regards, Tushar

tushar-umbarkar avatar Sep 23 '20 11:09 tushar-umbarkar

Thanks @pryorda for labeling this as enhancement.

Please let me know if I can help /contribute in this enhancement.

Regards, Tushar

tushar-umbarkar avatar Nov 12 '20 05:11 tushar-umbarkar

hello,

I've looked into the issue @pryorda and the exporter is actually getting the metrics.

The prop name is runtime.healthSystemRuntime.systemHealthInfo.numericSensorInfo

        elif 'runtime.healthSystemRuntime.systemHealthInfo.numericSensorInfo' == prop.name:
            """
                host hardware sensors alarms
            """
            try:
                alarms = list(
                    'sensorInfo:{}:{}'.format(item.name.replace(' ', ''), item.healthState.key.lower())
                    for item in prop.val if item.healthState.key.lower() not in ('green', 'unknown')
                )
            except Exception:
                alarms = ['sensorInfo:AlarmsUnavailable:yellow']


            properties[prop.name] = ','.join(alarms)

Exporter display this information only if fetch_alarms is true in the config and the healthState.key is flagged as red. I don't know how do you want to handle this, i've just started to look into the exporter :)

M0NsTeRRR avatar Mar 10 '21 20:03 M0NsTeRRR

@M0NsTeRRR I welcome all prs. As long as it has unit tests and you validate it works. Thanks for looking into this.

pryorda avatar Mar 10 '21 20:03 pryorda

I will send the PR tomorrow probably but I need some informations before.

I'm testing on a Dell R320 in my homelab can someone confirm that sensors name are not vendor specific

Here are sensors I get on my R320 from vcenter : https://gist.github.com/M0NsTeRRR/d001ef5aaba0eda2efcbd701c0f0e64d

You can find the information in Server > Monitor > Hardware Health

M0NsTeRRR avatar Mar 11 '21 02:03 M0NsTeRRR

I've attached mine as a comment. Looks like the ids can be different.

pryorda avatar Mar 11 '21 05:03 pryorda

PR #255

M0NsTeRRR avatar Mar 11 '21 11:03 M0NsTeRRR

@tushar-umbarkar you should have sensors metric with vmware_exporter 0.15

M0NsTeRRR avatar Mar 29 '21 08:03 M0NsTeRRR

@pryorda I think this issue can be closed :)

M0NsTeRRR avatar Sep 29 '22 07:09 M0NsTeRRR