3 .
"${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test
"Memory check, bad situation, both custom memory checks, causes unhealthy"
9 CTDB_MONITOR_MEMORY_USAGE
="70:80"
10 CTDB_MONITOR_SWAP_USAGE
=""
12 required_result
1 <<EOF
13 ERROR: System memory utilization 87% >= threshold 80%
21 Active(anon): 1917580 kB
22 Inactive(anon): 523080 kB
23 Active(file): 504524 kB
24 Inactive(file): 496848 kB
30 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
31 root 2 0.0 0.0 0 0 ? S Aug28 0:00 [kthreadd]
32 root 3 0.0 0.0 0 0 ? S Aug28 0:43 \_ [ksoftirqd/0]
34 root 1 0.0 0.0 2976 624 ? Ss Aug28 0:07 init [2]
35 root 495 0.0 0.0 3888 1640 ? Ss Aug28 0:00 udevd --daemon