mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-22 14:46:57 -04:00
check_mssql.pl: switched alarm timeout
- alarm() now uses -t option
contributed by Bernd Arnold (wopfel@gmail.com)
closes #991
This commit is contained in:
parent
3f17f18416
commit
223c594661
1 changed files with 1 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue