summaryrefslogtreecommitdiffstats
path: root/web/attachments/407004-timeout-lowercase.patch
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/407004-timeout-lowercase.patch
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/407004-timeout-lowercase.patch')
-rw-r--r--web/attachments/407004-timeout-lowercase.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/web/attachments/407004-timeout-lowercase.patch b/web/attachments/407004-timeout-lowercase.patch
new file mode 100644
index 0000000..1cbce5f
--- /dev/null
+++ b/web/attachments/407004-timeout-lowercase.patch
@@ -0,0 +1,13 @@
1diff --git a/plugins-scripts/check_mssql.pl b/plugins-scripts/check_mssql.pl
2index 9a8fc51..17e6d33 100755
3--- a/plugins-scripts/check_mssql.pl
4+++ b/plugins-scripts/check_mssql.pl
5@@ -49,7 +49,7 @@ $SIG{'ALRM'} = sub {
6 print ("SQL UNKNOWN: ERROR connection $server (alarm timeout)\n");
7 exit $ERRORS{"UNKNOWN"};
8 };
9-alarm($TIMEOUT);
10+alarm($timeout);
11
12 unless ($dbh = DBI->connect("dbi:Sybase:server=".uc($server), "$username", "$password")) {
13 printf "SQL CRITICAL: Can't connect to mssql server $DBI::errstr\n";