summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_mssql.pl
diff options
context:
space:
mode:
authorOliver Skibbe <oliskibbe@gmail.com>2016-11-19 16:37:27 +0100
committerGitHub <noreply@github.com>2016-11-19 16:37:27 +0100
commit099bd86f1c949b0db05c5c24b2538c8e3370d290 (patch)
tree2febb2d88ae5e7e1459f4c4282b3e2998fa59d2e /plugins-scripts/check_mssql.pl
parent6026ff5c1899b7b2516f9fb21b8ffb4b73168722 (diff)
parent223c59466140d9837233efe79545792e859cb9fa (diff)
downloadmonitoring-plugins-099bd86f1c949b0db05c5c24b2538c8e3370d290.tar.gz
Merge pull request #1376 from riskersen/check_mssql
check_mssql.pl: switched alarm timeout
Diffstat (limited to 'plugins-scripts/check_mssql.pl')
-rwxr-xr-xplugins-scripts/check_mssql.pl2
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 {
54 print ("SQL UNKNOWN: ERROR connection $server (alarm timeout)\n"); 54 print ("SQL UNKNOWN: ERROR connection $server (alarm timeout)\n");
55 exit $ERRORS{"UNKNOWN"}; 55 exit $ERRORS{"UNKNOWN"};
56}; 56};
57alarm($TIMEOUT); 57alarm($timeout);
58 58
59unless ($dbh = DBI->connect("dbi:Sybase:server=".uc($server), "$username", "$password")) { 59unless ($dbh = DBI->connect("dbi:Sybase:server=".uc($server), "$username", "$password")) {
60 printf "SQL CRITICAL: Can't connect to mssql server $DBI::errstr\n"; 60 printf "SQL CRITICAL: Can't connect to mssql server $DBI::errstr\n";