{"id":1859,"date":"2025-03-03T17:39:57","date_gmt":"2025-03-03T09:39:57","guid":{"rendered":"https:\/\/www.forillusion.com\/?p=1859"},"modified":"2025-03-03T17:39:58","modified_gmt":"2025-03-03T09:39:58","slug":"install-scrutiny-in-mcsm","status":"publish","type":"post","link":"https:\/\/www.forillusion.com\/index.php\/install-scrutiny-in-mcsm\/","title":{"rendered":"\u5b89\u88c5Scrutiny\u5e76\u5728MCSM\u4e2d\u8fd0\u884c"},"content":{"rendered":"\n<p><div class=\"has-toc have-toc\"><\/div><\/p>\n\n\n\n<p>\u9879\u76ee\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/AnalogJ\/scrutiny\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/github.com\/AnalogJ\/scrutiny<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u88c5Scrutiny<\/h2>\n\n\n\n<p>\u5148\u5efa\u8bae\u4e24\u4e2a\u6587\u4ef6\u5939\uff0c<code>\/opt\/scrutiny\/scrutiny<\/code>\u548c<code>\/opt\/scrutiny\/influxdb<\/code><\/p>\n\n\n\n<p>\u5728MCSM\u4e2d\u65b0\u5efa\u4e00\u4e2aDocker\u5b9e\u4f8b\uff0c\u5728\u5b9e\u4f8b\u914d\u7f6e\u7684\u201c\u5bb9\u5668\u5316\u201d\u6807\u7b7e\u9875\u4e2d\u586b\u5165\u4ee5\u4e0b\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Docker \u955c\u50cf: ghcr.io\/analogj\/scrutiny:master-omnibus\n\u5f00\u653e\u7aef\u53e3:\n    \u4e3b\u673a\u7aef\u53e3|\u5bb9\u5668\u7aef\u53e3|\u534f\u8bae\n    1080   |8080  |TCP\n    1086   |8086  |TCP\n\u989d\u5916\u6302\u8f7d\u8def\u5f84\uff1a\n    \u4e3b\u673a\u76ee\u5f55                    |  \u5bb9\u5668\u76ee\u5f55\n    \/opt\/scrutiny\/scrutiny  |  \/opt\/scrutiny\/config\n    \/opt\/scrutiny\/influxdb  |  \/opt\/scrutiny\/influxdb<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\u8fd0\u884c\u793a\u4f8b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u88c5\u6536\u96c6\u7aef<\/h2>\n\n\n\n<p>\u5148\u5b89\u88c5<code>sudo apt install smartmontools<\/code><\/p>\n\n\n\n<p>\u5728\u9700\u8981\u4e0a\u62a5\u786c\u76d8\u4fe1\u606f\u7684\u673a\u5668\u4e0a\uff0c\u4ece\u9879\u76ee\u5730\u5740\u4e2d\u4e0b\u8f7d\u5bf9\u5e94\u7684<code>scrutiny-collector-metrics<\/code>\uff0c\u5e76\u653e\u7f6e\u5230<code>\/opt\/scrutiny<\/code>\u4e2d\uff0c\u7136\u540e\u5728MCSM\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u666e\u901a\u63a7\u5236\u53f0\u5b9e\u4f8b\uff0c\u547d\u4ee4\u4e3a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/opt\/scrutiny\/scrutiny-collector-metrics run  --api-endpoint \"http:\/\/your.scrutiny.com:1080\"<\/code><\/pre>\n\n\n\n<p>\u6ce8\u610f\u4fee\u6539api\u5730\u5740\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u51b3USB\u786c\u76d8\u65e0\u6cd5\u8bfb\u53d6SMART\u4fe1\u606f<\/h2>\n\n\n\n<p>\u53c2\u8003\u8d44\u6599\uff1a<a href=\"https:\/\/35plus.eu.org\/archives\/usb-smartctl.html\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/35plus.eu.org\/archives\/usb-smartctl.html<\/a><\/p>\n\n\n\n<p>\u6267\u884c<code>lsblk<\/code>\u67e5\u770b\u6240\u6709\u7684\u786c\u76d8\uff0c\u7136\u540e\u4f7f\u7528<code>smartctl --info \/dev\/sda<\/code>\u4f9d\u6b21\u67e5\u770b\u6bcf\u4e00\u4e2a\u786c\u76d8\u7684SMART\u4fe1\u606f\u662f\u5426\u80fd\u6b63\u5e38\u8bfb\u53d6\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8eusb\u786c\u76d8\uff0c\u53ef\u80fd\u65e0\u6cd5\u67e5\u770bSMART\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>\u5148\u6267\u884c<code>lsusb -tv<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@forillusion-Ubuntu:~# lsusb -tv\n\/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd\/1p, 5000M\n    ID 1d6b:0003 Linux Foundation 3.0 root hub\n    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M\n        ID 2109:0711 VIA Labs, Inc. VL711 SATA 6Gb\/s bridge\n\/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd\/6p, 480M\n    ID 1d6b:0002 Linux Foundation 2.0 root hub\n    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M\n        ID 2109:0711 VIA Labs, Inc. VL711 SATA 6Gb\/s bridge\n    |__ Port 3: Dev 4, If 0, Class=Hub, Driver=hub\/4p, 480M\n        ID 05e3:0608 Genesys Logic, Inc. Hub\n    |__ Port 4: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 12M\n        ID 1a81:1202 Holtek Semiconductor, Inc. \n    |__ Port 4: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 12M\n        ID 1a81:1202 Holtek Semiconductor, Inc. \n\/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci\/8p, 480M\n    ID 1d6b:0002 Linux Foundation 2.0 root hub<\/code><\/pre>\n\n\n\n<p>VIA\u4e3a\u6613\u9a71\u7ebf\u8bbe\u5907\u3002\u6253\u5f00\u6587\u4ef6<code>\/etc\/default\/grub<\/code>\uff0c\u627e\u5230<code>GRUB_CMDLINE_LINUX<\/code>\uff0c\u586b\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GRUB_CMDLINE_LINUX=\"usb_storage.quirks=2109:0711:\"<\/code><\/pre>\n\n\n\n<p>\u5176\u4e2d<strong>\u200b<code>2109:0711:<\/code>\u200b<\/strong> \u4e3a\u4f7f\u7528lsusb\u67e5\u770b\u5230\u7684<code>VID:PID<\/code>\u4fe1\u606f\uff0c\u5373\u542b\u6709VIA\u7684\u90a3\u4e00\u884c\u4e2d\u7684\u4fe1\u606f\u3002\u5982\u679c\u5b58\u5728\u591a\u4e2a\u4e0d\u540c\u7684VID:PID\uff0c\u5219\u586b\u5165\u6587\u4ef6\u65f6\u7528\u9017\u53f7\u5206\u9694\uff0c\u4f8b\u5982<strong>\u200b<code>2109:0711:\uff0c2109:0712:<\/code>\u200b<\/strong> \u3002<\/p>\n\n\n\n<p>\u7136\u540e\u6267\u884c<code>update-grub<\/code>\uff0c\u7136\u540e\u91cd\u542f\u3002\u91cd\u542f\u540e\u68c0\u67e5<code>\/sys\/module\/usb_storage\/parameters\/quirks<\/code>\u5185\u5bb9\u662f\u5426\u4e0e\u914d\u7f6e\u5185\u5bb9\u4e00\u81f4\uff0c\u7136\u540e\u6267\u884csmartctl\u770b\u662f\u5426\u80fd\u6210\u529f\u8bfb\u53d6SMART\u4fe1\u606f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@forillusion-Ubuntu:~# cat \/sys\/module\/usb_storage\/parameters\/quirks\n2109:0711:<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9879\u76ee\u5730\u5740\uff1ahttps:\/\/github.com\/AnalogJ\/scrutiny \u5b89\u88c5Scrutiny \u5148\u5efa\u8bae\u4e24\u4e2a\u6587\u4ef6\u5939\uff0c\/opt &#8230;<\/p>","protected":false},"author":1,"featured_media":1860,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[12],"class_list":["post-1859","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-3","tag-12"],"_links":{"self":[{"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/posts\/1859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/comments?post=1859"}],"version-history":[{"count":1,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/posts\/1859\/revisions"}],"predecessor-version":[{"id":1861,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/posts\/1859\/revisions\/1861"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/media\/1860"}],"wp:attachment":[{"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/media?parent=1859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/categories?post=1859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/tags?post=1859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}