summaryrefslogtreecommitdiffstats
path: root/web/attachments/344042-39_check_ircd_fix_epn.dpatch
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/344042-39_check_ircd_fix_epn.dpatch
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/344042-39_check_ircd_fix_epn.dpatch')
-rw-r--r--web/attachments/344042-39_check_ircd_fix_epn.dpatch33
1 files changed, 33 insertions, 0 deletions
diff --git a/web/attachments/344042-39_check_ircd_fix_epn.dpatch b/web/attachments/344042-39_check_ircd_fix_epn.dpatch
new file mode 100644
index 0000000..7956a4d
--- /dev/null
+++ b/web/attachments/344042-39_check_ircd_fix_epn.dpatch
@@ -0,0 +1,33 @@
1#! /bin/sh /usr/share/dpatch/dpatch-run
2## 39_check_ircd_fix_epn.dpatch by Alexander Wirt <formorer@formorer.de>
3##
4## DP: Fixes epn in check_ircd (#545940)
5
6@DPATCH@
7
8--- nagios-plugins-1.4.12~/plugins-scripts/check_ircd.pl 2009-08-23 09:40:38.000000000 +0200
9+++ nagios-plugins-1.4.12/plugins-scripts/check_ircd.pl 2009-09-22 23:35:52.000000000 +0200
10@@ -194,19 +194,19 @@
11
12 if ($opt_h) {print_help(); exit $ERRORS{'OK'};}
13
14- ($opt_H) || ($opt_H = shift) || usage("Host name/address not specified\n");
15+ ($opt_H) || usage("Host name/address not specified\n");
16 my $remotehost = $1 if ($opt_H =~ /([-.A-Za-z0-9]+)/);
17 ($remotehost) || usage("Invalid host: $opt_H\n");
18
19- ($opt_w) || ($opt_w = shift) || ($opt_w = 50);
20+ ($opt_w) || ($opt_w = 50);
21 my $warn = $1 if ($opt_w =~ /^([0-9]+)$/);
22 ($warn) || usage("Invalid warning threshold: $opt_w\n");
23
24- ($opt_c) || ($opt_c = shift) || ($opt_c = 100);
25+ ($opt_c) || ($opt_c = 100);
26 my $crit = $1 if ($opt_c =~ /^([0-9]+)$/);
27 ($crit) || usage("Invalid critical threshold: $opt_c\n");
28
29- ($opt_p) || ($opt_p = shift) || ($opt_p = 6667);
30+ ($opt_p) || ($opt_p = 6667);
31 my $remoteport = $1 if ($opt_p =~ /^([0-9]+)$/);
32 ($remoteport) || usage("Invalid port: $opt_p\n");
33