From a698070253a575f5345fc20437eac004e7cd0399 Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko Date: Mon, 1 Jul 2024 23:38:35 +0300 Subject: [PATCH] ndsudo add 'chronyc serverstats' (#18056) --- src/collectors/plugins.d/ndsudo.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/collectors/plugins.d/ndsudo.c b/src/collectors/plugins.d/ndsudo.c index 8b4d76f4609f14..9ea9738d74f87a 100644 --- a/src/collectors/plugins.d/ndsudo.c +++ b/src/collectors/plugins.d/ndsudo.c @@ -13,6 +13,14 @@ struct command { const char *params; const char *search[MAX_SEARCH]; } allowed_commands[] = { + { + .name = "chronyc-serverstats", + .params = "serverstats", + .search = { + [0] = "chronyc", + [1] = NULL, + }, + }, { .name = "dmsetup-status-cache", .params = "status --target cache --noflush",