Module: check_mk
Branch: master
Commit: de84ededb8de2bb7188b269fb7e61fec89e05347
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=de84ededb8de2b…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Wed Jan 13 17:52:04 2016 +0100
fixed: mssql.vbs script didn't print an error if no sql server was recognized
---
agents/windows/plugins/mssql.vbs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/windows/plugins/mssql.vbs b/agents/windows/plugins/mssql.vbs
index a387255..5a1e64d 100644
--- a/agents/windows/plugins/mssql.vbs
+++ b/agents/windows/plugins/mssql.vbs
@@ -117,7 +117,7 @@ If Err.Number <> 0 Then
' try MSSQL < 10
Set WMI =
GetObject("WINMGMTS:\\.\root\Microsoft\SqlServer\ComputerManagement")
If Err.Number <> 0 Then
- addOutput( "Error: " & Err.Number & " " &
Err.Description )
+ WScript.echo "Error: " & Err.Number & " "
& Err.Description
Err.Clear()
wscript.quit()
End If