diff options
Diffstat (limited to 'web/attachments/280402-33_fix_emb_check_disk_smb.dpatch')
-rw-r--r-- | web/attachments/280402-33_fix_emb_check_disk_smb.dpatch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/web/attachments/280402-33_fix_emb_check_disk_smb.dpatch b/web/attachments/280402-33_fix_emb_check_disk_smb.dpatch new file mode 100644 index 0000000..2713e64 --- /dev/null +++ b/web/attachments/280402-33_fix_emb_check_disk_smb.dpatch | |||
@@ -0,0 +1,44 @@ | |||
1 | #! /bin/sh /usr/share/dpatch/dpatch-run | ||
2 | ## 32_check_ldap_pointer.dpatch by Jan Wagner <waja@cyconet.org> | ||
3 | ## patch provided by Stephane Chazelas <stephane@artesyncp.com> | ||
4 | ## | ||
5 | ## DP: fix processing vi embedded perl interpreter | ||
6 | |||
7 | @DPATCH@ | ||
8 | diff -urNad nagios-plugins-1.4.12~/plugins-scripts/check_disk_smb.pl nagios-plugins-1.4.12/plugins-scripts/check_disk_smb.pl | ||
9 | --- nagios-plugins-1.4.12~/plugins-scripts/check_disk_smb.pl 2008-06-06 11:57:33.000000000 +0200 | ||
10 | +++ nagios-plugins-1.4.12/plugins-scripts/check_disk_smb.pl 2008-06-06 11:58:03.000000000 +0200 | ||
11 | @@ -65,27 +65,27 @@ | ||
12 | |||
13 | # Options checking | ||
14 | |||
15 | -($opt_H) || ($opt_H = shift) || usage("Host name not specified\n"); | ||
16 | +($opt_H) || ($opt_H = shift @ARGV) || usage("Host name not specified\n"); | ||
17 | my $host = $1 if ($opt_H =~ /^([-_.A-Za-z0-9 ]+\$?)$/); | ||
18 | ($host) || usage("Invalid host: $opt_H\n"); | ||
19 | |||
20 | -($opt_s) || ($opt_s = shift) || usage("Share volume not specified\n"); | ||
21 | +($opt_s) || ($opt_s = shift @ARGV) || usage("Share volume not specified\n"); | ||
22 | my $share = $1 if ($opt_s =~ /^([-_.A-Za-z0-9]+\$?)$/); | ||
23 | ($share) || usage("Invalid share: $opt_s\n"); | ||
24 | |||
25 | -($opt_u) || ($opt_u = shift) || ($opt_u = "guest"); | ||
26 | +($opt_u) || ($opt_u = shift @ARGV) || ($opt_u = "guest"); | ||
27 | my $user = $1 if ($opt_u =~ /^([-_.A-Za-z0-9\\]+)$/); | ||
28 | ($user) || usage("Invalid user: $opt_u\n"); | ||
29 | |||
30 | -($opt_p) || ($opt_p = shift) || ($opt_p = ""); | ||
31 | +($opt_p) || ($opt_p = shift @ARGV) || ($opt_p = ""); | ||
32 | my $pass = $1 if ($opt_p =~ /(.*)/); | ||
33 | $pass = "-N" if ($opt_p eq ""); | ||
34 | |||
35 | -($opt_w) || ($opt_w = shift) || ($opt_w = 85); | ||
36 | +($opt_w) || ($opt_w = shift @ARGV) || ($opt_w = 85); | ||
37 | my $warn = $1 if ($opt_w =~ /^([0-9]{1,2}\%?|100\%?|[0-9]+[kMG])$/); | ||
38 | ($warn) || usage("Invalid warning threshold: $opt_w\n"); | ||
39 | |||
40 | -($opt_c) || ($opt_c = shift) || ($opt_c = 95); | ||
41 | +($opt_c) || ($opt_c = shift @ARGV) || ($opt_c = 95); | ||
42 | my $crit = $1 if ($opt_c =~ /^([0-9]{1,2}\%?|100\%?|[0-9]+[kMG])$/); | ||
43 | ($crit) || usage("Invalid critical threshold: $opt_c\n"); | ||
44 | |||