Jason Kulatunga
6e0321f488
add go.sum
2022-07-06 21:39:33 -07:00
Jason Kulatunga
4419f7f429
remove zig. remove cgo dependency for sqlite (using pkg.go.dev/modernc.org/sqlite)
2022-07-06 21:39:28 -07:00
Jason Kulatunga
8466c5e750
upgrade to v2.9.0 for influxdb sdk -- this includes the SetupWithToken method.
2022-05-20 09:18:01 -07:00
Jason Kulatunga
5ac0aa8f74
Forked InfluxDB SDK and added support for using pre-generated admin token during setup. This ensures we no longer need to persist the token during startup.
...
fixes #248
2022-05-18 09:14:05 -07:00
Jason Kulatunga
bd6d192006
fix packagr config.
2022-05-09 19:49:18 -07:00
packagrio-bot
a2a80f3102
(v0.4.0) Automated packaging of release by Packagr
2022-05-09 20:05:53 +00:00
Jason Kulatunga
9d85920f49
started working on migration code.
2022-05-03 11:50:22 -07:00
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
2021-06-27 10:55:18 -07:00
Jason Kulatunga
3995c87856
upgrade shoutrrr version.
...
fixes #160
fixes #146
todo:
#135
2021-04-25 08:42:58 -07:00
Jason Kulatunga
9fac3c6308
fix gorm dependency.
2020-10-07 22:07:51 -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
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
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
Jason Kulatunga
c913cf39b9
adding new nottification validation erorr. Added a notification class containing webhook, script and shoutrrr notification logic. Adding "Test notification endpoint".
2020-09-18 10:13:06 -06:00
Jason Kulatunga
586767393d
(0.1.6) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com >
2020-09-06 23:14:48 +00:00
packagr-io-beta
eb5b5ebee3
(v0.1.5) Automated packaging of release by Packagr
2020-08-28 07:55:28 +00:00
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.
2020-08-28 00:41:08 -07:00
packagr-io-beta
b6ca94f786
(v0.1.1) Automated packaging of release by Packagr
2020-08-21 06:31:48 +00:00
Jason Kulatunga
8482272d45
init
2020-08-19 16:04:21 -07:00