diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2024-04-24 18:38:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-24 18:38:01 +0300 |
commit | fae824fb719659a664b9071a4341a01a57087b13 (patch) | |
tree | 66345efd16be2140a28a453549a98dc83ff71b83 /src | |
parent | 4ac496d7498a3000443d1e4d3932841596a8c0ca (diff) |
add smartctl to ndsudo (#17515)
Diffstat (limited to 'src')
-rw-r--r-- | src/collectors/plugins.d/ndsudo.c | 16 |
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 = { |