Explorar el Código

check_mssql.pl: switched alarm timeout

  - alarm() now uses -t option
    contributed by Bernd Arnold (wopfel@gmail.com)

    closes #991
Bernd Apfel hace 10 años
padre
commit
223c594661
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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";