summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2024-04-24 18:38:01 +0300
committerGitHub <noreply@github.com>2024-04-24 18:38:01 +0300
commitfae824fb719659a664b9071a4341a01a57087b13 (patch)
tree66345efd16be2140a28a453549a98dc83ff71b83 /src
parent4ac496d7498a3000443d1e4d3932841596a8c0ca (diff)
add smartctl to ndsudo (#17515)
Diffstat (limited to 'src')
-rw-r--r--src/collectors/plugins.d/ndsudo.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/collectors/plugins.d/ndsudo.c b/src/collectors/plugins.d/ndsudo.c
index d03ec937b3..c736df129b 100644
--- a/src/collectors/plugins.d/ndsudo.c
+++ b/src/collectors/plugins.d/ndsudo.c
@@ -14,6 +14,22 @@ struct command {
const char *search[MAX_SEARCH];
} allowed_commands[] = {
{
+ .name = "smartctl-json-scan",
+ .params = "--json --scan",
+ .search = {
+ [0] = "smartctl",
+ [1] = NULL,
+ },
+ },
+ {
+ .name = "smartctl-json-device-info",
+ .params = "--json --all {{deviceName}} --device {{deviceType}} --nocheck {{powerMode}}",
+ .search = {
+ [0] = "smartctl",
+ [1] = NULL,
+ },
+ },
+ {
.name = "fail2ban-client-status",
.params = "status",
.search = {