Module: check_mk
Branch: master
Commit: b5d63f069fb91681e838ac67608ede3521225a82
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b5d63f069fb916…
Author: Florian Kromer <fk(a)mathias-kettner.de>
Date: Fri Jan 4 15:17:51 2019 +0100
cisco_mem: add generic data reg test
Change-Id: I5c0e5026451de48eea7b9476201ffc3064810f3b
---
tests/unit/checks/generictests/datasets/cisco_mem.py | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/tests/unit/checks/generictests/datasets/cisco_mem.py
b/tests/unit/checks/generictests/datasets/cisco_mem.py
new file mode 100644
index 0000000..e60b3bf
--- /dev/null
+++ b/tests/unit/checks/generictests/datasets/cisco_mem.py
@@ -0,0 +1,17 @@
+checkname = 'cisco_mem'
+
+info = [['Processor', '27086628', '46835412',
'29817596'],
+ ['I/O', '12409052', '2271012', '2086880'],
['Driver text', '40', '1048536', '1048532']]
+
+discovery = {'': [('I/O', {}), ('Processor', {})]}
+
+checks = {
+ '': [('I/O', {
+ 'levels': (80.0, 90.0)
+ }, [(1, '84.5% (11.83 MB) of 14.00 MB used (warning at 80%)',
[('mem_used', 84.52995845249721,
+ 80.0, 90.0, 0,
100)])]),
+ ('Processor', {
+ 'levels': (80.0, 90.0)
+ }, [(0, '36.6% (25.83 MB) of 70.50 MB used', [('mem_used',
36.64215435612978, 80.0, 90.0,
+ 0, 100)])])]
+}