diff options
author | Bernd Apfel <wopfel@gmail.com> | 2015-10-15 11:20:20 +0200 |
---|---|---|
committer | Oliver Skibbe <oliskibbe@gmail.com> | 2015-10-15 11:20:20 +0200 |
commit | 223c59466140d9837233efe79545792e859cb9fa (patch) | |
tree | 5c97b944876ad22ec966e7ba695515a60bb79319 /plugins-scripts/check_mssql.pl | |
parent | 3f17f18416521ee90b8823bab3324188976ac265 (diff) | |
download | monitoring-plugins-223c59466140d9837233efe79545792e859cb9fa.tar.gz |
check_mssql.pl: switched alarm timeout
- alarm() now uses -t option
contributed by Bernd Arnold (wopfel@gmail.com)
closes #991
Diffstat (limited to 'plugins-scripts/check_mssql.pl')
-rwxr-xr-x | plugins-scripts/check_mssql.pl | 2 |
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"; |