ctdb-scripts: New consistent system memory and swap monitoring
[Samba.git] / ctdb / tests / eventscripts / 05.system.monitor.016.sh
blob44dddc688a9f62db8874c1f7047c5868635a1c34
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "Memory check, bad situation, both memory checks, causes warning"
7 setup_memcheck 87 0
9 CTDB_MONITOR_MEMORY_USAGE="80:90"
10 CTDB_MONITOR_SWAP_USAGE=""
12 ok <<EOF
13 WARNING: System memory utilization 87% >= threshold 80%
14 EOF
16 simple_test