소스 검색

Merge pull request #1376 from riskersen/check_mssql

check_mssql.pl: switched alarm timeout
Oliver Skibbe 9 년 전
부모
커밋
099bd86f1c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plugins-scripts/check_mssql.pl

+ 1 - 1
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";