ndsudo add smartctl scan-open (#18143)
Ilya Mashchenko committed
Jul 14, 2024 at 22:01 UTC
fa4d1509d8f0efe7d85ec5f5f4e05e5e66fe208a
1 file changed
+8
src/collectors/plugins.d/ndsudo.c
+8
@@ -45,6 +45,14 @@ struct command {
45
[1] = NULL,
46
},
47
},
48
+ {
49
+ .name = "smartctl-json-scan-open",
50
+ .params = "--json --scan-open",
51
+ .search = {
52
+ [0] = "smartctl",
53
+ [1] = NULL,
54
+ },
55
+ },
56
{
57
.name = "smartctl-json-device-info",
58
.params = "--json --all {{deviceName}} --device {{deviceType}} --nocheck {{powerMode}}",