diff options
Diffstat (limited to 'web/attachments/407004-timeout-lowercase.patch')
-rw-r--r-- | web/attachments/407004-timeout-lowercase.patch | 13 |
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 @@ | |||
1 | diff --git a/plugins-scripts/check_mssql.pl b/plugins-scripts/check_mssql.pl | ||
2 | index 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"; | ||