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.001.sh
Martin Schwenke 4164d7bf31 ctdb-scripts: Add default filesystem usage warnings
Always check filesystem usage for the database directories.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Sat Aug 29 20:08:48 CEST 2015 on sn-devel-104
2015-08-29 20:08:47 +02:00

15 lines
276 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "Filesystem use check, error situation, no checks enabled"
setup_memcheck
CTDB_MONITOR_FILESYSTEM_USAGE=""
setup_fscheck 100
ok <<EOF
WARNING: Filesystem ${CTDB_DBDIR} utilization 100% >= threshold 90%
EOF
simple_test