summaryrefslogtreecommitdiff
path: root/ctdb/tests/eventscripts/05.system.monitor.014.sh
blob: 48630c4911eb995c47d031d35ea8c87e7eeaaafe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

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

setup_memcheck 90 10

CTDB_MONITOR_MEMORY_USAGE="85:"
CTDB_MONITOR_SWAP_USAGE=""

ok <<EOF
WARNING: System memory utilization 90% >= threshold 85%
EOF

simple_test