From 223c59466140d9837233efe79545792e859cb9fa Mon Sep 17 00:00:00 2001 From: Bernd Apfel Date: Thu, 15 Oct 2015 11:20:20 +0200 Subject: check_mssql.pl: switched alarm timeout - alarm() now uses -t option contributed by Bernd Arnold (wopfel@gmail.com) closes #991 --- plugins-scripts/check_mssql.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins-scripts') 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"; -- cgit v1.2.3