Przeglądaj źródła

add support for -k to check_disk_smb

Fix for issue https://github.com/nagios-plugins/nagios-plugins/issues/152

Also, updates to NEWS
John C. Frickson 9 lat temu
rodzic
commit
1ce3b25b04
2 zmienionych plików z 20 dodań i 1 usunięć
  1. 17 0
      NEWS
  2. 3 1
      plugins-scripts/check_disk_smb.pl

+ 17 - 0
NEWS

@@ -1,5 +1,22 @@
 This file documents the major additions and syntax changes between releases.
 
+2.x.x 2016-xx-xx
+	SECURITY FIXES
+
+	ENHANCEMENTS
+	SNI support in check_tcp (ddbilik)
+
+	FIXES
+	check_tcp.c: tools/build_perl_modules hardcodes the perl used
+	check_game.c: reports ping as number of players (Jason Rivers)
+	fix some gcc5 warnings (Mario Trangoni)
+	check_cluster.c: Update wording in comments (Troy Lea)
+	check_nagios.c: could not locate a running nagios process
+	check_swap.c: does not accept threshold of zero
+	check_swap.c: uses inconsistent checks on negative thresholds
+	check_disk_smb.pl: add support for -k for kerberos authentication
+
+
 2.1.2 2016-08-01
 	SECURITY FIXES
 

+ 3 - 1
plugins-scripts/check_disk_smb.pl

@@ -22,7 +22,7 @@ require 5.004;
 use POSIX;
 use strict;
 use Getopt::Long;
-use vars qw($opt_P $opt_V $opt_h $opt_H $opt_s $opt_W $opt_u $opt_p $opt_w $opt_c $opt_a $verbose);
+use vars qw($opt_P $opt_V $opt_h $opt_H $opt_k $opt_s $opt_W $opt_u $opt_p $opt_w $opt_c $opt_a $verbose);
 use vars qw($PROGNAME);
 use FindBin;
 use lib "$FindBin::Bin";
@@ -44,6 +44,7 @@ GetOptions
 	 "P=s" => \$opt_P, "port=s"     => \$opt_P,
 	 "V"   => \$opt_V, "version"    => \$opt_V,
 	 "h"   => \$opt_h, "help"       => \$opt_h,
+	 "k"   => \$opt_k, "kerberos"   => \$opt_k,
 	 "w=s" => \$opt_w, "warning=s"  => \$opt_w,
 	 "c=s" => \$opt_c, "critical=s" => \$opt_c,
 	 "p=s" => \$opt_p, "password=s" => \$opt_p,
@@ -189,6 +190,7 @@ my @cmd = (
 	defined($workgroup) ? ("-W", $workgroup) : (),
 	defined($address) ? ("-I", $address) : (),
 	defined($opt_P) ? ("-p", $opt_P) : (),
+	defined($opt_k) ? ("-k") : (),
 	"-c", "du"
 );