Module: check_mk
Branch: master
Commit: 2da9930a0c97efac966d841606d53345ff445395
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2da9930a0c97ef…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Fri Feb 22 15:58:42 2019 +0100
mssql_datafiles, mssql_transactionlogs: skip error messages
CMK-1570
Change-Id: Id92de3c412db3d2dcb10700abfe11efecf5c34d3
---
checks/mssql.include | 2 ++
1 file changed, 2 insertions(+)
diff --git a/checks/mssql.include b/checks/mssql.include
index f5094eb..4002c97 100644
--- a/checks/mssql.include
+++ b/checks/mssql.include
@@ -112,6 +112,8 @@ mssql_transactionlogs_discovery = []
def parse_mssql_datafiles(info):
parsed = {}
for line in info:
+ if line[-1].startswith("ERROR: "):
+ continue
if len(line) == 8:
inst, database, file_name, _physical_name, max_size, allocated_size,
used_size, unlimited = line
unlimited = unlimited == '1'