summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/00.ctdb.monitor.004.sh
blob: fdf20329e2d90117328b11601ca6c27863dc6b42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "Memory check, bad situation, only memory warning"

setup_memcheck "bad"

CTDB_MONITOR_FREE_MEMORY=""
CTDB_MONITOR_FREE_MEMORY_WARN="500"
CTDB_CHECK_SWAP_IS_NOT_USED="no"

ok <<EOF
WARNING: free memory is low - 468MB free <=  ${CTDB_MONITOR_FREE_MEMORY_WARN}MB (CTDB threshold)
EOF

simple_test