Jason Kulatunga
d9ecf6c0d3
make sure defaults are available if missing from localStorage
...
fixes #277
2 years ago
Michael Shamoon
8051ad4dde
Tweak / fix some dark mode colors
...
Update styles.scss
2 years ago
Michael Shamoon
165f98dc09
Add settings UI for dark mode
2 years ago
Jason Kulatunga
6e02e4da02
fixing func def.
2 years ago
Jason Kulatunga
9c8498cea7
disable and re-enable bitwise operations
2 years ago
Jason Kulatunga
9aa0e97be0
display the device UUID and device Label in the details page.
...
fixes #265
3 years ago
Jason Kulatunga
488fcfc820
added AttributeStatus bit flag
...
ensure DeviceStatus is a valid bit flag.
[docs] added running tests section to contribution guide.
make sure UI correctly treats scrutiny failures as failed.
3 years ago
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
packagrio-bot
d78957353d
(v0.4.8) Automated packaging of release by Packagr
3 years ago
Jason Kulatunga
4aa1485246
using device title pipe to consistently set the device name based on configuration setting.
...
adding device status pipe to set the device status in a more readable way.
3 years ago
Jason Kulatunga
e1e1d321dd
fix git.version.sh script.
3 years ago
Jason Kulatunga
3971b37abc
attempting to fix docker image build by generating frontend version information before docker build.
3 years ago
Jason Kulatunga
cf1bd3ea6b
trying to fix docker build, so it includes git sha info.
3 years ago
Jason Kulatunga
c7c55ab95c
trying to fix docker build, so it includes git sha info.
3 years ago
Jason Kulatunga
d93d24b52d
using npm run commands for building angular application (supports `pre` steps).
...
Automatically embed the application version in the UI.
3 years ago
Jason Kulatunga
b6e69021b2
ensure that the base href is set, as it's required when reloading subpages.
...
fixes #264
3 years ago
Jason Kulatunga
e95b44c690
make sure we use a reasonable number of decimal points for converted temps.
3 years ago
Jason Kulatunga
4ee947d55c
trying to fix compilation/typing issues.
3 years ago
Jason Kulatunga
21212c0a1d
add setting to change temperature between C and F.
...
fixes #175
3 years ago
Jason Kulatunga
d1376a2200
serve all fonts locally
...
fixes #125
3 years ago
Jason Kulatunga
7d2daf4f6a
add ability to sort devices by age (powered-on-hours)
...
fixes #100
3 years ago
Jason Kulatunga
da4562d308
fixed UI issues related to deleting (component is now correctly removed from the dashboard device list).
...
fixes #69
3 years ago
Jason Kulatunga
f51de52ff7
hide device dashboard component if deletion finishes successfully.
3 years ago
Jason Kulatunga
987632df39
working deletion code.
3 years ago
Jason Kulatunga
28a3c3e53f
[WIP] Delete button for devices.
3 years ago
Jason Kulatunga
1bd86f5abd
[WIP] Delete button for devices.
3 years ago
packagrio-bot
0f935ceb48
(v0.4.7) Automated packaging of release by Packagr
3 years ago
Jason Kulatunga
f844a435fd
fix error message.
3 years ago
Jason Kulatunga
3a970e7a27
Merge pull request #262 from AnalogJ/beta
...
pre-v0.4.7 release
3 years ago
Jason Kulatunga
307c2bcdef
fix error message.
...
Simpler GormMigrateOptions.
3 years ago
Jason Kulatunga
d08a1e3ef6
ignore retention policy errors during migration.
...
- fixes #256
3 years ago
Jason Kulatunga
2292041f9f
never drop tables.
3 years ago
Jason Kulatunga
75e4bf1d6e
added a helpful comment that the database migration might take a looong time.
3 years ago
Jason Kulatunga
97add04276
make sure the migration step runs with transactions, so that we can debug easier.
...
- related #256
3 years ago
Jason Kulatunga
1423f55d78
remove Power Cycle Count failure attribute for ATA drives. Unrealistic for consumer users (BackBlaze data is datacenter focused).
...
- fixed #31
3 years ago
Jason Kulatunga
46d0b70399
disable NVMe Scrutiny failures for "Numb Error Log Entries" attribute. More analysis needed for NVMe drives & their critical attributes.
...
- fixes #187
- fixes #247
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
8c07e91f39
grey out and mark thresholds as not yet implemented.
3 years ago
Jason Kulatunga
7979950c3b
fixing device sort and display title.
...
fixes #194
3 years ago
Jason Kulatunga
9846ba13e0
adding support for device sort in UI.
3 years ago
Jason Kulatunga
83839f7faf
adding group by hostId support in dashboard.
...
fixes #151
3 years ago
Jason Kulatunga
85fa3b1f8f
moved device summary info panel into isolated component.
3 years ago
Jason Kulatunga
4190f9a633
remove filter not implemented message.
3 years ago
Jason Kulatunga
743ce27d2e
adding comment.
3 years ago
Jason Kulatunga
399a2450ff
make sure we can change the temperature duration key for the chart.
3 years ago
Jason Kulatunga
934f16f0a5
persist settings across sessions (in local storage).
3 years ago
Jason Kulatunga
0aeb13c181
support custom display of devices by UUID/ID/Label & Scrutiny Name. (Does not persist).
...
Related #225
3 years ago
Jason Kulatunga
5899bf2026
started working on Dashboard UI sorting and naming
3 years ago
Jason Kulatunga
3b137964fc
make sure we include the host id in the temp history label.
3 years ago
Jason Kulatunga
1bfdd0043f
added a way to retrieve raw udev data. Can be used to retrieve disk label, UUID and "disk/by-id/*" device info.
...
Storing it in the database during device registration.
3 years ago
Jason Kulatunga
999c12748c
added a way to retrieve raw udev data. Can be used to retrieve disk label, UUID and "disk/by-id/*" device info.
...
Storing it in the database during device registration.
3 years ago
packagrio-bot
65d31046a0
(v0.4.6) Automated packaging of release by Packagr
3 years ago
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
3 years ago
Jason Kulatunga
a589d11d01
update influxdb host default to localhost.
3 years ago
packagrio-bot
1a05868381
(v0.4.5) Automated packaging of release by Packagr
3 years ago
packagrio-bot
b5920e35e3
(v0.4.4) Automated packaging of release by Packagr
3 years ago
Jason Kulatunga
e7801619cd
added additional tests from #187 .
...
Detected that the frontend was incorrectly classifying Scrutiny Failures as Warnings.
Fixed.
3 years ago
packagrio-bot
9ea283e8d2
(v0.4.3) Automated packaging of release by Packagr
3 years ago
packagrio-bot
2f67d6f9ae
(v0.4.2) Automated packaging of release by Packagr
3 years ago
Jason Kulatunga
145996055a
use locked versions of database models when doing migrations.
3 years ago
packagrio-bot
90e5d219a2
(v0.4.1) Automated packaging of release by Packagr
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
packagrio-bot
a2a80f3102
(v0.4.0) Automated packaging of release by Packagr
3 years ago
Jason Kulatunga
de702414b9
moving all filesystem references to /scrutiny to /opt/scrutiny
...
fixes #230
3 years ago
Jason Kulatunga
2967b6ca01
make sure that we set the config path when ReadConfig is called.
3 years ago
Jason Kulatunga
5ed69d7fc4
adding tests for Smart and parser.
3 years ago
Jason Kulatunga
2214febbd1
simple rename.
3 years ago
Jason Kulatunga
786e7d04f2
make sure we print the overall device status in the details page.
3 years ago
Jason Kulatunga
0cee744c29
highlight last updated dates when more than 2 weeks or 1 month.
3 years ago
Jason Kulatunga
f39628efc3
by default show all temp data.
3 years ago
Jason Kulatunga
5bab9ac04a
make sure we can correctly save the config file if onboarding influx.
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
1ced2198c7
cleanup log messages.
3 years ago
Jason Kulatunga
5f12fbb510
enable final migration cleanup.
3 years ago
Jason Kulatunga
702518579b
fixed summary query.
3 years ago
Jason Kulatunga
fc5a9ba15e
fixed device processing in details page. Summary query is still broken.
3 years ago
Jason Kulatunga
8fe0dbed6b
partially working. Some datapoints are failing with panic and are silently ignored.
...
TODO must fix.
3 years ago
Jason Kulatunga
7d963c96a6
writing pseudocode algorithm for data migration.
3 years ago
Jason Kulatunga
2750ccef4a
call out deprecated structs so they are not accidentally used via autocomplete.
3 years ago
Jason Kulatunga
9d85920f49
started working on migration code.
3 years ago
Jason Kulatunga
0dba9f8011
Merge branch 'master' into influxdb
3 years ago
Jason Kulatunga
d42faf30b0
fix WriteConfig interface.
3 years ago
Jason Kulatunga
5fb5b9afbe
if we're completing the InfluxDB setup via automation, attempt to store the token in the config file automatically.
3 years ago
Jason Kulatunga
702c7cdf7a
if running test iin github actions, use influxdb service for testing.
3 years ago
Jason Kulatunga
00bc6ecd92
make sure we can pull config from env variables.
3 years ago
Jason Kulatunga
bd39b2cd4d
fixes for aggregation.
3 years ago
Jason Kulatunga
0a9d364aea
adding duration key to smart attributes api endpoint
3 years ago
Jason Kulatunga
f60636a6aa
broke scrutiny_repository.go into multiple files for easier exploration & maintenance.
3 years ago
Jason Kulatunga
7a7771981a
broke scrutiny_repository.go into multiple files for easier exploration & maintenance.
3 years ago
Jason Kulatunga
f569ab6474
[BROKEN COMMIT]
...
This code leverages the new `types.isType` functionality introduced in the flux language (https://github.com/influxdata/flux/issues/2159 )
This code will fix https://github.com/AnalogJ/scrutiny/issues/22 and all related issues.
Unfortunately this code is broken because the influxdb go client library does not correctly handle import statments in the task defintion.
blocked by
https://github.com/influxdata/influxdb-client-go/issues/322
3 years ago
Jason Kulatunga
903d5713fc
fixes for tests.
3 years ago
Jason Kulatunga
0872da57d7
fixes for tests.
3 years ago
Jason Kulatunga
47e8595c9d
using constant vars for duration key magic strings. Fixing Errorf calls to correctly have template data.
3 years ago
Jason Kulatunga
bff83de3a0
query temp data across multiple buckets
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
772063a843
find the temp history for the last week (by default). Smooth out data using aggregate window for hourly numbers. Better temp casting during influx data inflating.
3 years ago
Jason Kulatunga
b776fb8886
tweaking retention policy code so we can test downsampling scripts.
3 years ago
Jason Kulatunga
ce032c5609
fixes for Scrutiny end-to-end testing.
3 years ago
Jason Kulatunga
060ac7b83a
fixes https://github.com/AnalogJ/scrutiny/issues/179
3 years ago
Jason Kulatunga
7b7b4fe4e3
fixing test.
3 years ago
Jason Kulatunga
5789c836db
make sure the status is always exposed in the json data. make sure display_name for metadata is included. Update mocked test data for frontend.
3 years ago
Jason Kulatunga
deba21fe19
update timestamps for testing.
3 years ago
Jason Kulatunga
31b5dfa038
ensure that all buckets are created during init. Remove all references to "name" field for attributes (shoudl come from metadata instead). Status is now an int64 (0 is passing).
3 years ago
Jason Kulatunga
9878985fa3
adding aggregation code
3 years ago
Jason Kulatunga
975c034925
WIP downsample scripts.
3 years ago
Jason Kulatunga
a60edfff26
fixing mocked data
3 years ago
Jason Kulatunga
bd19230cbf
make sure data is persisted to DB.
3 years ago
Jason Kulatunga
80f4660130
validate thresholds whenever SMART data is recieved.
3 years ago
Jason Kulatunga
694fc74ca0
fixing history.
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
234a8f9b01
cr fixes
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
fd4f0429e4
(0.3.12) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
9be57f2271
(0.3.11) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
712119cb5e
fixing ui when visible on small screen.
...
tweak local contrib instructions.
Fixing javascript mediaquery breakpoint for small screen.
4 years ago
Jason Kulatunga
644a9418dd
(0.3.10) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
df07261c57
(0.3.9) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
527214f38c
(0.3.8) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
2fc24d0e76
fix error log.
4 years ago
Jason Kulatunga
d92a21fbca
Merge pull request #132 from telyn/patch-1
...
Change temperature graph to 24-hour formatting
4 years ago
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.
4 years ago
Jason Kulatunga
59d4a8e195
(0.3.7) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
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
4 years ago
Jason Kulatunga
5ea9a75039
(0.3.6) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Telyn
9778809cba
Change temperature graph to 24-hour formatting
4 years ago
Jason Kulatunga
27b923b5e9
(0.3.5) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
bab25de2f2
(0.3.4) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
520136a5ec
fixing automated version bump, attempt 3.
4 years ago
Jason Kulatunga
e364fe95d9
fixing verion bump for release.
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
Ricardo Gonzalez
13d3d9f64e
Show Host ID
4 years ago
Jason Kulatunga
77971edf5f
Merge pull request #103 from ryck/feature/improve-humanize-duration
4 years ago
Ricardo Gonzalez
78d0dd8f3b
Use humanizeDuration directly in the template
4 years ago
Ricardo Gonzalez
96534c44b7
Improve humanizeHours
4 years ago
Ricardo Gonzalez
95ef254b8c
Add timestamp to last updated. Fixes #87
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
b04f1b07e8
(0.3.0) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
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
32e7044c67
Merge pull request #75 from AnalogJ/notificationss
4 years ago
Jason Kulatunga
ac7c1f28cf
ignore empty ("") errors.
4 years ago
Jason Kulatunga
80a382d098
slight tweaks to notifications error handling.
4 years ago