Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESX host temperature monitoring #226

Open
tushar-umbarkar opened this issue Sep 23, 2020 · 8 comments
Open

ESX host temperature monitoring #226

tushar-umbarkar opened this issue Sep 23, 2020 · 8 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@tushar-umbarkar
Copy link

Hi All,

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

Thanks and Regards,
Tushar

@pryorda pryorda added enhancement New feature or request help wanted Extra attention is needed labels Oct 9, 2020
@tushar-umbarkar
Copy link
Author

Thanks @pryorda for labeling this as enhancement.

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

Regards,
Tushar

@M0NsTeRRR
Copy link
Contributor

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 :)

@pryorda
Copy link
Owner

pryorda commented Mar 10, 2021

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

@M0NsTeRRR
Copy link
Contributor

M0NsTeRRR commented Mar 11, 2021

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

@pryorda
Copy link
Owner

pryorda commented Mar 11, 2021

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

@M0NsTeRRR
Copy link
Contributor

PR #255

@M0NsTeRRR
Copy link
Contributor

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

@M0NsTeRRR
Copy link
Contributor

@pryorda I think this issue can be closed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants