aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-xplugins-scripts/check_mssql.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/check_mssql.pl b/plugins-scripts/check_mssql.pl
index fb3952d4..bf3a651f 100755
--- a/plugins-scripts/check_mssql.pl
+++ b/plugins-scripts/check_mssql.pl
@@ -54,7 +54,7 @@ $SIG{'ALRM'} = sub {
print ("SQL UNKNOWN: ERROR connection $server (alarm timeout)\n");
exit $ERRORS{"UNKNOWN"};
};
-alarm($TIMEOUT);
+alarm($timeout);
unless ($dbh = DBI->connect("dbi:Sybase:server=".uc($server), "$username", "$password")) {
printf "SQL CRITICAL: Can't connect to mssql server $DBI::errstr\n";