add MegaCli64 to ndsudo (#19223)
* add MegaCli64 to ndsudo * bump max search
Ilya Mashchenko committed
Dec 16, 2024 at 16:17 UTC
4b3be902e118e0c1f2b0b88f99298a275432425a
1 file changed
+3
-1
src/collectors/utils/ndsudo.c
+3
-1
@@ -4,7 +4,7 @@
4
#include <unistd.h>
5
#include <stdbool.h>
6
7
-#define MAX_SEARCH 2
7
+#define MAX_SEARCH 3
8
#define MAX_PARAMETERS 128
9
#define ERROR_BUFFER_SIZE 1024
10
@@ -216,6 +216,7 @@ struct command {
216
.search = {
217
[0] = "megacli",
218
[1] = "MegaCli",
219
+ [2] = "MegaCli64",
220
},
221
},
222
{
@@ -224,6 +225,7 @@ struct command {
225
.search = {
226
[0] = "megacli",
227
[1] = "MegaCli",
228
+ [2] = "MegaCli64",
229
},
230
},
231
{