8b139ad157
remove concurrency for collector, it causes issues on systems with lots of devices. Just retrieve the data in order for now (eventually we may do it in batches).
Jason Kulatunga2020-09-21 08:44:38 -06:00
fd82e9a4da
print error message if publish does not finish successfully.
Jason Kulatunga2020-09-20 15:08:58 -06:00
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.
Jason Kulatunga2020-09-20 15:03:39 -06:00
297f0a51c5
adding ability to write a log file with all output from collector. Executing commands will now log be logged (and when debug is enabled, their output's are also logged).
Jason Kulatunga2020-09-19 18:51:35 -06:00
67d1c592a5
include the device type in the title, if it's non-standard.
Jason Kulatunga2020-09-19 11:25:19 -06:00
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.
Jason Kulatunga2020-09-18 21:37:32 -06:00
66122778a3
only the firmware can really change between scans. Lets slim down the metadata update.
Jason Kulatunga2020-09-18 20:27:35 -06:00
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?
Jason Kulatunga2020-09-18 19:27:55 -06:00
e6eeaf7e31
adding mocked detail data for frontend viewing. placeholders for settings panels. Add dialog panel for Details setings.
Jason Kulatunga2020-09-16 17:30:28 -07:00
5101a37964
adding device protocl and type to the. Adding class for parsing smartctl --scan json output, for device detection. added an example/test file for smartctl -x -j added a placeholder settings panel. moved dashboard & details compoonent out of "Admin" directory.
Jason Kulatunga2020-09-16 08:09:50 -07:00
98415e625d
fix import. added simle test for notify test endpoint.
Jason Kulatunga2020-09-12 14:40:21 -07:00
78a619b09d
moved middleware into more relevant location. Adding send test notifications handler. making sure that config is available from web handler functions.
Jason Kulatunga2020-09-12 13:19:08 -07:00
c913cf39b9
adding new nottification validation erorr. Added a notification class containing webhook, script and shoutrrr notification logic. Adding "Test notification endpoint".
Jason Kulatunga2020-09-12 12:43:41 -07:00
6bee0d1489
don't build a docker image and attach to the release. Scrutiny is public now, images hosted on docker-hub.
Jason Kulatunga2020-09-18 10:06:33 -06:00
266c95f857fix#3 Make sure that the collector attempts to correctly communicate with webapp container, even when running in dedicated container (and triggered manually). fixes cron schedule to run daily. added instructions for dedicated containers.
Jason Kulatunga2020-09-18 09:23:39 -06:00
86fc10b7b9
added ideal and thresholds for NVMe and SCSI drives. Added functions (PopulateAttributeStatus) to ensure that NVME and SCSI drives set the status for SMART attributes. Moved Status populating fucntion into the *Attribute files, so they are closer to the code they actually interact with. Fix frontend to correctly display status, thresh and Ideal for NVMe and SCSI ddrives.
Jason Kulatunga2020-09-08 22:24:24 -07:00
fb1415f8a5
(0.1.11) Automated packaging of release by Packagr
Jason Kulatunga2020-09-07 15:47:30 +00:00
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.
Jason Kulatunga2020-08-28 00:41:08 -07:00
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.
Jason Kulatunga2020-08-26 21:35:13 -07:00
5a80ae3e74
WIP - start supporting NVME and SCSI drive smart data. Added addiitonal log message data for Smartctl exit ccode.
Jason Kulatunga2020-08-24 23:01:03 -07:00
794479b28e
(v0.1.4) Automated packaging of release by Packagr
packagr-io-beta2020-08-23 00:49:43 +00:00
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.
Jason Kulatunga2020-08-21 18:06:00 -07:00