blob: 1a882f9249d5ed15d022d5eaaad7cbf07d95df71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- check_mssql.sh.orig 2008-09-10 11:20:25.000000000 -0700
+++ check_mssql.sh 2008-09-10 11:20:48.000000000 -0700
@@ -92,7 +92,7 @@
else
nmbr=`$catcmd $resultfile | $grepcmd -v locale | $grepcmd -v charset|
$grepcmd -v 1\> | $sedcmd '/^$/d' | $sedcmd 's/ //g' | $wccmd -l | sed 's/
//g'`
users=`$catcmd $resultfile | $grepcmd -v locale | $grepcmd -v charset|
$grepcmd -v 1\> | $sedcmd '/^$/d' | $sedcmd 's/ //g' | $uniqcmd -c | $trcmd
\\\n , | $sedcmd 's/,$/./g' | $sedcmd 's/,/, /g' | $sedcmd 's/ //g' | $trcmd
\\\t " " | $sedcmd 's/ \./\./g' | $sedcmd 's/ ,/,/g'`
- $rmcmd -f $tmpfile $resultfile;
+ $rmcmd -f $tmpfile $resultfile $errorfile;
echo "OK - MS SQL Server $srv has $nmbr user(s) connected: $users" |
sed 's/: $/./g';
exit 0;
fi
|