diff options
Diffstat (limited to 'src/collectors/plugins.d')
-rw-r--r-- | src/collectors/plugins.d/ndsudo.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/collectors/plugins.d/ndsudo.c b/src/collectors/plugins.d/ndsudo.c index d401c885a9..0ba1c86978 100644 --- a/src/collectors/plugins.d/ndsudo.c +++ b/src/collectors/plugins.d/ndsudo.c @@ -13,7 +13,15 @@ struct command { const char *params; const char *search[MAX_SEARCH]; } allowed_commands[] = { - { + { + .name = "lvs-report-json", + .params = "--reportformat json --units b --nosuffix -o {{options}}", + .search = { + [0] = "lvs", + [1] = NULL, + }, + }, + { .name = "igt-json", .params = "-J -s {{interval}}", .search = { @@ -117,7 +125,7 @@ bool check_string(const char *str, size_t index, char *err, size_t err_size) { if(!((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || - c == ' ' || c == '_' || c == '-' || c == '/' || c == '.')) { + c == ' ' || c == '_' || c == '-' || c == '/' || c == '.' || c == ',')) { snprintf(err, err_size, "command line argument No %zu includes invalid character '%c'", index, c); return false; } |