Skip to content

Commit

Permalink
add 'ethtool -m' to ndsudo (netdata#19428)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyam8 authored Jan 17, 2025
1 parent cab7353 commit 11353ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/collectors/utils/ndsudo.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ struct command {
const char *params;
const char *search[MAX_SEARCH];
} allowed_commands[] = {
{
.name = "ethtool-module-info",
.params = "-m {{devname}}",
.search =
{
[0] = "ethtool",
[1] = NULL,
},
},
{
.name = "chronyc-serverstats",
.params = "serverstats",
Expand Down

0 comments on commit 11353ec

Please sign in to comment.