cosmostat has working drive health dashboard

This commit is contained in:
2026-04-19 14:23:32 -07:00
parent c6007d9c33
commit 46d9f86d55
48 changed files with 4295 additions and 257 deletions

4
files/api/DriveServer.py Normal file
View File

@ -0,0 +1,4 @@
# This is the class definition for the remote Storage Systems
# There will be a StorageLinux and StorageWindows Class, as well as the LocalServer Class
# The LocalServer class will mostly be a List of Storage server objects and Class functions for interacting with them
# The actual Storage server Classes will mostly just be collections of variables

6
files/api/StorageApi.py Normal file
View File

@ -0,0 +1,6 @@
### This file contains the flask routes for interfacing with the DriveServer objects
### I need routes for adding/updating windows/linux hosts, as well as a query route
### There needs to also be a Redis handler, meaning also that this will render with PHP
### but have javascript to update if any Redis data happens
### This won't happen a lot, but it will happen occasionally

View File

@ -371,7 +371,8 @@ def build_inventory():
"cosmostat_server_reporter": "true",
"cosmostat_server": "false",
"secure_api": "false",
"disable_local_dashboard": "true",
"disable_local_dashboard": "false",
"update_pipeline": "true",
"REAL_API_KEY": f"{cosmostat_settings['REAL_API_KEY']}"
},
}

View File

@ -261,6 +261,6 @@
"Percent Full": "acpi -V | jc --acpi | jq '.[] | select(.type==\"Battery\") | .charge_percent'",
"State": "acpi -V | jc --acpi | jq '.[] | select(.type==\"Battery\") | .state'"
},
"precheck": "acpi | grep Battery | wc -l"
"precheck": "acpi | grep Battery | grep -v unavailable | wc -l"
}
]