forked from phillcoxon/loadwatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.config.sh
29 lines (23 loc) · 843 Bytes
/
sample.config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# Created by: Liquid Web
# Enhanced by: Phill Coxon, Will Ashworth
######################################################################################################
######################################### BASIC CONFIG FILE ##########################################
######################################################################################################
# Common paths
_path_cp="/bin/cp"
_path_mv="/bin/mv"
_path_ps="/bin/ps"
_path_grep="/bin/grep"
_path_fake="/bin/fake"
# Loadwatch log directory
DIR=/root/loadwatch
COLUMNS=512
SUBJECT="Loadwatch notification for $HOSTNAME at ".`date +%F.%H.%M`
EMAILMESSAGE="/tmp/emailmessage.txt"
# Delete when "X" days old
REMOVE="30"
# Notification Email Address
EMAIL="root@localhost"
# Load Threshold for doing a dump (4 is a good number to start with)
THRESH=4