1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/eventscripts/05.system.monitor.005.sh
Martin Schwenke 23acbd2f4b ctdb-tests: Add tests for filesystem usage monitoring
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2015-08-29 17:06:25 +02:00

13 lines
260 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "Filesystem use check, warn situation, both checks enabled"
CTDB_MONITOR_FILESYSTEM_USAGE="/var:80:90"
setup_fscheck 85
ok <<EOF
WARNING: Filesystem /var utilization 85% >= threshold 80%
EOF
simple_test