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 diff --git a/plugins-scripts/check_mssql.pl b/plugins-scripts/check_mssql.pl index fb3952d..bf3a651 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 v0.10-9-g596f