Jason Kulatunga
702c7cdf7a
if running test iin github actions, use influxdb service for testing.
3 years ago
Jason Kulatunga
0a9d364aea
adding duration key to smart attributes api endpoint
3 years ago
Jason Kulatunga
0872da57d7
fixes for tests.
3 years ago
Jason Kulatunga
03bfdd3890
changing the duration dropdown for temp history data. adding an /api/summary/temp endpoint
3 years ago
Jason Kulatunga
ce032c5609
fixes for Scrutiny end-to-end testing.
3 years ago
Jason Kulatunga
7b7b4fe4e3
fixing test.
3 years ago
Jason Kulatunga
80f4660130
validate thresholds whenever SMART data is recieved.
3 years ago
Jason Kulatunga
8a46931399
!!!!WIP!!!!
...
adding InfluxDB
- influxdb added to dockerfile
- influxdb s6 service
- influxdb config
- adding defaults to config
- creating a DeviceRepo interface (multiple db backends)
- implemented DeviceRepo interface as ScruitnyRepository
4 years ago
Jason Kulatunga
93cf676818
added a "Success" test for script notifications.
...
bumping the version in version file? not sure why it wasnt correctly bumped already.
4 years ago
Jason Kulatunga
bf07077154
fail if the parent directory for database does not exist.
4 years ago
Jason Kulatunga
f27883ea4c
remove requestcatcher live test.
4 years ago
Jason Kulatunga
9fac3c6308
fix gorm dependency.
4 years ago
Jason Kulatunga
1cd5ebaa43
missing device type update.
4 years ago
Jason Kulatunga
b44ef5cb9c
adding support for a collecto config file.
...
/scrutiny/config/collector.yaml
Adding ability to specify host identifier (label), that is updated on every collector run.
Can be specified by `host-id` CLI or `COLLECTOR_HOST_ID` env var.
Created a config class, interface and associated tests.
Created a "TransformDetectedDrives" function, that will allow users to insert drives not detected by Smarctl --scan, ignore drives that they dont want, and override smartctl device type.
Added Upsert functionality when registering devices.
Replaced "github.com/jinzhu/gorm" with "gorm.io/gorm" (ORM location moved, was using incorrect lib url)
Removed machineid library.
4 years ago
Jason Kulatunga
a3438297e6
removeedd waitgroup, using sync/errgroup instead (to pass error messages back). returning errors in test notifications endpoint payload. Adding failure tests for webhooks, scripts & shoutrr.
4 years ago
Jason Kulatunga
d339e967a6
fixing notifications.
4 years ago
Jason Kulatunga
6377a258f6
sending notifications on failure.
4 years ago
Jason Kulatunga
6a20228262
adding error handling for all DB calls. Returning StatusInternalServerError whenever an error occurs. Adding additional logging to server handlers.
...
Make sure we "return" after a c.JSON call.
4 years ago
Jason Kulatunga
5127399e94
conditionally log request body.
4 years ago
Jason Kulatunga
8a975e2164
log request body.
4 years ago
Jason Kulatunga
1c59b3c245
fix tests.
4 years ago
Jason Kulatunga
a57120d600
adding new environmental variables for added debugging: COLLECTOR_LOG_FILE, COLLECTOR_DEBUG, DEBUG, SCRUTINY_LOG_FILE, SCRUTINY_DEBUG
4 years ago
Jason Kulatunga
ad3f8480d9
added some anonymized nvme test data to ensure that NVMe drives are correctly processed by new device detection. thanks @Roxedus.
...
All db testing is done with files created in a temp directory.
4 years ago
Jason Kulatunga
24262f7c8c
pass deviceType when running smartctl data collection (for megaraid type disks).
...
Make DevicePrefix a public function available outside the detect module.
if device type is detected as "ata" or "scsi", dont pass in via -d parameter, can cause issues with missing data.
4 years ago
Jason Kulatunga
98415e625d
fix import. added simle test for notify test endpoint.
4 years ago
Jason Kulatunga
78a619b09d
moved middleware into more relevant location. Adding send test notifications handler. making sure that config is available from web handler functions.
4 years ago
Jason Kulatunga
c913cf39b9
adding new nottification validation erorr. Added a notification class containing webhook, script and shoutrrr notification logic. Adding "Test notification endpoint".
4 years ago
Jason Kulatunga
62b2ec9554
(0.1.13) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
834dcdc223
update test db.
4 years ago
Jason Kulatunga
c8471ffa88
(0.1.12) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
fb1415f8a5
(0.1.11) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
022b6b6598
(0.1.10) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
09eca64a03
(0.1.9) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
442cda254c
(0.1.8) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
451bf73334
(0.1.7) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
586767393d
(0.1.6) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
packagr-io-beta
eb5b5ebee3
(v0.1.5) Automated packaging of release by Packagr
4 years ago
Jason Kulatunga
e283d43654
rename metadata class names.
...
adding metadata for NVME and SCSI drives.
send back protocol specific metadata for displaying data in the UI for attributes.
UI - moved all metadata lookups into named functions (for better if/else logic)
show different columns if nvme or scsi.
4 years ago
Jason Kulatunga
2ad120c87b
added debug logging message for detected devices.
...
adding a mocked class for Config.
Adding device type to Device struct. Will eventually be needed for raid drives.
adding End-to-end testing capabilties.
Added testdata json files for webserver requests.
Seperated Start code and Setup code in webapp so we can test.
renamed "smart_attributes" to "ata_attributes" - Backwards incomatible change.
Added front end device sorting (red, yellow, green)
show unknown icon/status if drive has no smart data yet.
Moved all attribute "getters" into the controller.
created a device-sort pipe.
4 years ago
Jason Kulatunga
5a80ae3e74
WIP - start supporting NVME and SCSI drive smart data.
...
Added addiitonal log message data for Smartctl exit ccode.
4 years ago
Jason Kulatunga
d636709aa1
Moved version file into webapp source tree. Replacing fmt with logger calls. moved Jobber config file into /scrutiny/jobber directory. Added scsi json file. Moved API rooute handlers into their own files in a module. Added not yet implemnented tooltips.
4 years ago
Jason Kulatunga
40f5cbef6c
moved hard drive device detection to collector (So we can run multiple in parallel).
4 years ago
Jason Kulatunga
8482272d45
init
4 years ago