Jason Kulatunga
df07261c57
(0.3.9) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com >
2021-04-26 04:59:43 +00:00
Jason Kulatunga
527214f38c
(0.3.8) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com >
2021-04-26 03:58:09 +00:00
Jason Kulatunga
2fc24d0e76
fix error log.
2021-04-25 20:14:58 -07:00
Jason Kulatunga
d92a21fbca
Merge pull request #132 from telyn/patch-1
...
Change temperature graph to 24-hour formatting
2021-04-25 11:44:47 -07:00
Jason Kulatunga
4331f86ed4
fixing #164 telegram notification issue while I'm here.
...
TODO: do a full check of all notification params in shoutrrr and ensure they match what we use.
2021-04-25 11:38:17 -07:00
Jason Kulatunga
59d4a8e195
(0.3.7) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com >
2021-04-25 17:15:07 +00:00
Jason Kulatunga
79de0fed2b
upgrade shoutrrr version. Fix duplicate notifications when more than one notification handler configured (closure iteration issue).
...
fixes #160
fixes #146
fixes #135
2021-04-25 09:47:12 -07:00
Jason Kulatunga
5ea9a75039
(0.3.6) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com >
2021-04-24 20:57:50 +00:00
Telyn
9778809cba
Change temperature graph to 24-hour formatting
2020-12-27 14:57:27 +00:00
Jason Kulatunga
27b923b5e9
(0.3.5) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com >
2020-11-06 04:38:37 +00:00
Jason Kulatunga
bab25de2f2
(0.3.4) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com >
2020-11-05 16:12:37 +00:00
Jason Kulatunga
520136a5ec
fixing automated version bump, attempt 3.
2020-11-05 08:03:20 -08:00
Jason Kulatunga
e364fe95d9
fixing verion bump for release.
2020-11-05 07:25:44 -08:00
Jason Kulatunga
93cf676818
added a "Success" test for script notifications.
...
bumping the version in version file? not sure why it wasnt correctly bumped already.
2020-11-03 08:20:02 -08:00
Ricardo Gonzalez
13d3d9f64e
Show Host ID
2020-10-18 00:11:30 +01:00
Jason Kulatunga
77971edf5f
Merge pull request #103 from ryck/feature/improve-humanize-duration
2020-10-17 12:00:00 -06:00
Ricardo Gonzalez
78d0dd8f3b
Use humanizeDuration directly in the template
2020-10-16 21:52:03 +01:00
Ricardo Gonzalez
96534c44b7
Improve humanizeHours
2020-10-11 17:45:10 +01:00
Ricardo Gonzalez
95ef254b8c
Add timestamp to last updated. Fixes #87
2020-10-11 16:14:43 +01:00
Jason Kulatunga
bf07077154
fail if the parent directory for database does not exist.
2020-10-08 20:00:03 -06:00
Jason Kulatunga
f27883ea4c
remove requestcatcher live test.
2020-10-08 17:48:44 -06:00
Jason Kulatunga
b04f1b07e8
(0.3.0) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com >
2020-10-08 23:37:10 +00:00
Jason Kulatunga
9fac3c6308
fix gorm dependency.
2020-10-07 22:07:51 -06:00
Jason Kulatunga
1cd5ebaa43
missing device type update.
2020-10-07 21:59:48 -06:00
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.
2020-10-07 21:54:29 -06:00
Jason Kulatunga
32e7044c67
Merge pull request #75 from AnalogJ/notificationss
2020-10-05 19:48:32 -06:00
Jason Kulatunga
ac7c1f28cf
ignore empty ("") errors.
2020-10-05 08:56:43 -06:00
Jason Kulatunga
80a382d098
slight tweaks to notifications error handling.
2020-10-04 13:55:59 -06:00
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.
2020-10-03 10:40:27 -06:00
Jason Kulatunga
6ca4ce39de
Adding documenation for notifications.
2020-10-03 09:53:06 -06:00
Jason Kulatunga
d339e967a6
fixing notifications.
2020-10-02 21:05:04 -06:00
Jason Kulatunga
6377a258f6
sending notifications on failure.
2020-10-01 18:59:08 -06:00
Jason Kulatunga
be378bd147
if attribute Id is unknown (and does not match anything in metadata) the frontend breaks. Added more robust frontend display code to handle this case.
...
fixes #53
2020-09-30 09:10:42 -06:00
Jason Kulatunga
1246f5bba9
started working on notifications.
2020-09-30 08:50:10 -06:00
Jason Kulatunga
7742f4c6c3
fixing windows binary build during CI. Update config missing error message.
2020-09-29 16:16:15 -06:00
Jason Kulatunga
7988381433
(0.2.4) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com >
2020-09-29 03:00:30 +00:00
Jason Kulatunga
a80794590a
(0.2.3) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com >
2020-09-29 02:53:45 +00:00
Jason Kulatunga
32682283da
(0.2.2) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com >
2020-09-29 02:42:44 +00:00
Jason Kulatunga
75a5f7dfb6
(0.2.1) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com >
2020-09-24 03:26:38 +00:00
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.
2020-09-23 09:54:33 -06:00
Jason Kulatunga
5127399e94
conditionally log request body.
2020-09-22 10:26:33 -06:00
Jason Kulatunga
8a975e2164
log request body.
2020-09-22 10:09:29 -06:00
Jason Kulatunga
1c59b3c245
fix tests.
2020-09-21 19:24:39 -06:00
Jason Kulatunga
a57120d600
adding new environmental variables for added debugging: COLLECTOR_LOG_FILE, COLLECTOR_DEBUG, DEBUG, SCRUTINY_LOG_FILE, SCRUTINY_DEBUG
2020-09-21 18:41:52 -06:00
Jason Kulatunga
286ec25a94
(0.2.0) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com >
2020-09-21 03:15:05 +00:00
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.
2020-09-20 17:37:43 -06:00
Jason Kulatunga
67d1c592a5
include the device type in the title, if it's non-standard.
2020-09-20 17:37:43 -06:00
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.
2020-09-20 17:37:43 -06:00
Jason Kulatunga
66122778a3
only the firmware can really change between scans. Lets slim down the metadata update.
2020-09-20 17:37:43 -06:00
Jason Kulatunga
23d5b86b1b
new device detection engine (OS aware). Uses smartctl --scan to detect drives (and conditionally uses jaypipes/ghw). WWN is calculated from smartctl data, then retrieved from GHW, and fallsback to serial number. WWN calcuation code is based on IEEE spec, for "Registered" IEEE format - NAA5. TODO: support NAA6 and other formats?
2020-09-20 17:37:43 -06:00