repo.or.cz
/
Samba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ctdb-scripts: Add default system memory usage warnings
[Samba.git]
/
ctdb
/
tests
/
eventscripts
/
05.system.monitor.005.sh
blob
9b45be3fae1d6cac5fa3fdb5b1e90657d91fe422
1
#!/bin/sh
2
3
.
"
${TEST_SCRIPTS_DIR}
/unit.sh"
4
5
define_test
"Filesystem use check, warn situation, both checks enabled"
6
7
setup_memcheck
8
9
CTDB_MONITOR_FILESYSTEM_USAGE
=
"/var:80:90"
10
setup_fscheck
85
11
ok
<<EOF
12
WARNING: Filesystem /var utilization 85% >= threshold 80%
13
EOF
14
simple_test