check_logfiles: 3.7.5.1
[omd.git] / packages / omd / TMPFS.hook
blob350221d23814c25afc6e32247ebe4cf326e71e3d
1 #!/bin/bash
3 # Alias: Use a ramdisk for temporary files
4 # Menu: Basic
5 # This settings decides, wether this site uses a ramdisk for
6 # temporary files. Using a ramdisk reduces disk IO produced
7 # during monitoring dramatically. It is highly recommended to
8 # leave this option enabled. Only disable this if you really
9 # need to.
11 case "$1" in
12 default)
13 echo "on"
15 choices)
16 echo "on: Use a ramdisk for temporary files"
17 echo "off: Do not use a ramdisk within this site"
19 set)
20 # Unmount the tmpfs when it was mounted before
21 if [ "$2" == "off" ]; then
22 omd umount
25 esac