cosmostat has working drive health dashboard
This commit is contained in:
4
files/api/DriveServer.py
Normal file
4
files/api/DriveServer.py
Normal 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
6
files/api/StorageApi.py
Normal 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
|
||||
|
||||
@ -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']}"
|
||||
},
|
||||
}
|
||||
|
||||
@ -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"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user