Jason Kulatunga
2533d8d34f
using Constants for git release/debug modes.
3 years ago
Jason Kulatunga
af2523cfee
setting GinMode to release by default. Users get confused otherwise.
3 years ago
Jason Kulatunga
1bd86f5abd
[WIP] Delete button for devices.
3 years ago
Jason Kulatunga
f844a435fd
fix error message.
3 years ago
Jason Kulatunga
168ca802d1
add support for specifying scheme for influxdb endpoint url (http vs https).
...
fixes #258
3 years ago
Jason Kulatunga
381a6799cc
updates for v0.4.0 release. Slight refactor/organization.
3 years ago
Jason Kulatunga
54178eaaf0
Merge branch 'master' into BASEPATH
3 years ago
Jason Kulatunga
fabc629e40
handle case where WWN not detected for a device (print error messages, but skip device collection & uploading).
3 years ago
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
3 years ago
Andrea Spacca
a7c8c75a49
fix new test
4 years ago
Andrea Spacca
48bc7cedf4
test cases
4 years ago
Andrea Spacca
9fc11b7140
BASEPATH
4 years ago
Andrea Spacca
ea3fbc09f1
BASEPATH
4 years ago
Andrea Spacca
86145be2b1
BASEPATH
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