Просмотр исходного кода

check_snmp does not work with -6 --ipv6 flags

Fix for issue #239

Thanks to Stephen Smoogen for spotting the problem!
John C. Frickson 9 лет назад
Родитель
Сommit
437cf92c3c
3 измененных файлов с 3 добавлено и 1 удалено
  1. 1 0
      NEWS
  2. 1 0
      THANKS.in
  3. 1 1
      plugins/check_snmp.c

+ 1 - 0
NEWS

@@ -4,6 +4,7 @@ x.x.x xxxx-xx-xx
 	FIXES
 	check_users: not accepting zero as the threshold
 	check_http: reports warning where it should report ok with -e
+	check_snmp: does not work with -6 --ipv6 flags
 
 
 2.2.0 2017-01-19

+ 1 - 0
THANKS.in

@@ -328,6 +328,7 @@ Spenser Reinhardt
 Stefan Meier
 Stephane Chazelas
 Stephane Lapie
+Stephen Smoogen
 Steve Greenland
 Steve Hanselman
 Steve Rader

+ 1 - 1
plugins/check_snmp.c

@@ -724,7 +724,7 @@ process_arguments (int argc, char **argv)
 	}
 
 	while (1) {
-		c = getopt_long (argc, argv, "nhvVOt:c:w:H:C:o:e:E:d:D:s:t:R:r:l:u:p:m:P:N:L:U:a:x:A:X:",
+		c = getopt_long (argc, argv, "nhvVO46t:c:w:H:C:o:e:E:d:D:s:t:R:r:l:u:p:m:P:N:L:U:a:x:A:X:",
 									 longopts, &option);
 
 		if (c == -1 || c == EOF)