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

thermalctld adds nonpresent PSUs sensors to the TEMPERATURE_INFO table #384

Open
cytsao1 opened this issue Jun 29, 2023 · 0 comments
Open
Assignees

Comments

@cytsao1
Copy link

cytsao1 commented Jun 29, 2023

For any nonpresent PSU, thermalctld will add its sensors to the redis database, with all values N/A.
thermalctld should check for PSU presence before adding their sensors to the db.

show platform temperature

            PSU0.0 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:04
            PSU0.1 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:04
            PSU0.2 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:04
            PSU1.0 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:04
            PSU1.1 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:04
            PSU1.2 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:04
            PSU2.0 Outlet_Temp         46.019       97.0      -5.0           102.0          -10.0      False  20230214 14:05:05
            PSU2.1 Outlet_Temp         46.019       97.0      -5.0           102.0          -10.0      False  20230214 14:05:05
            PSU2.2 Outlet_Temp         46.019       97.0      -5.0           102.0          -10.0      False  20230214 14:05:05
            PSU3.0 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:05
            PSU3.1 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:05
            PSU3.2 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:05
            PSU4.0 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:05
            PSU4.1 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:05
            PSU4.2 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:05
            PSU5.0 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:05
            PSU5.1 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:05
            PSU5.2 Outlet_Temp            N/A        N/A       N/A             N/A            N/A      False  20230214 14:05:0

db entry

"TEMPERATURE_INFO|PSU0.0 Outlet_Temp": {
    "expireat": 1676383627.929436,
    "ttl": -0.001,
    "type": "hash",
    "value": {
      "critical_high_threshold": "N/A",
      "critical_low_threshold": "N/A",
      "high_threshold": "N/A",
      "is_replaceable": "False",
      "low_threshold": "N/A",
      "maximum_temperature": "N/A",
      "minimum_temperature": "N/A",
      "temperature": "N/A",
      "timestamp": "20230214 14:06:59",
      "warning_status": "False"
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant