repo.or.cz
/
Samba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ctdb-scripts: New consistent system memory and swap monitoring
[Samba.git]
/
ctdb
/
tests
/
eventscripts
/
05.system.monitor.016.sh
blob
44dddc688a9f62db8874c1f7047c5868635a1c34
1
#!/bin/sh
2
3
.
"
${TEST_SCRIPTS_DIR}
/unit.sh"
4
5
define_test
"Memory check, bad situation, both memory checks, causes warning"
6
7
setup_memcheck
87 0
8
9
CTDB_MONITOR_MEMORY_USAGE
=
"80:90"
10
CTDB_MONITOR_SWAP_USAGE
=
""
11
12
ok
<<EOF
13
WARNING: System memory utilization 87% >= threshold 80%
14
EOF
15
16
simple_test