@cryptotaxi247 / netdata-1 / commits / 599dc4914

command line option to disable sel

Costa Tsaousis (ktsaou) committed Mar 7, 2017 at 00:09 UTC 599dc4914ebba6ba0a7dc3800554dcd1c27b9b36
1 file changed +10
src/freeipmi_plugin.c
+10
@@ -1438,6 +1438,14 @@ int main (int argc, char **argv) {
1438 debug = 1;
1439 continue;
1440 }
1441 + else if(strcmp("sel", argv[i]) == 0) {
1442 + netdata_do_sel = 1;
1443 + continue;
1444 + }
1445 + else if(strcmp("no-sel", argv[i]) == 0) {
1446 + netdata_do_sel = 0;
1447 + continue;
1448 + }
1449 else if(strcmp("-h", argv[i]) == 0 || strcmp("--help", argv[i]) == 0) {
1450 fprintf(stderr,
1451 "\n"
@@ -1449,6 +1457,8 @@ int main (int argc, char **argv) {
1457 "Available options:\n"
1458 " NUMBER, sets the data collection frequency\n"
1459 " debug, enables verbose output\n"
1460 + " sel, enable SEL collection (it is on by default)\n"
1461 + " no-sel, disable SEL collection\n"
1462 " hostname X, sets the remote host to connect to\n"
1463 " username X, sets the username to authenticate at the remote host\n"
1464 " password X, sets the password to authenticate at the remote host\n"