summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2024-04-23 16:05:00 +0300
committerGitHub <noreply@github.com>2024-04-23 16:05:00 +0300
commitd50def4a5497ca53a0b53b1b20a771077b2475b5 (patch)
tree8d0d9201a2c52eb71720ca725138243732ca513e
parent9edea61e500f2af134f8d72d79d31826d9c918e8 (diff)
add fail2ban-client to ndsudo (#17499)
-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 aeb2865252..d03ec937b3 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 = "fail2ban-client-status",
+ .params = "status",
+ .search = {
+ [0] = "fail2ban-client",
+ [1] = NULL,
+ },
+ },
+ {
+ .name = "fail2ban-client-status-jail",
+ .params = "status {{jail}}",
+ .search = {
+ [0] = "fail2ban-client",
+ [1] = NULL,
+ },
+ },
+ {
.name = "storcli-controllers-info",
.params = "/cALL show all J nolog",
.search = {