-
Notifications
You must be signed in to change notification settings - Fork 0
/
sysalarm.conf
57 lines (45 loc) · 895 Bytes
/
sysalarm.conf
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
##
## sysalarm configuration
##
##
action {
type = MAIL
name = mail_to_admin
mail_from = root
mail_to = root
mail_method = smtp
mail_smtp_server = localhost
mail_smtp_port = 25
# mail_smtp_user = user
# mail_smtp_pass = pwd
# mail_smtp_starttls = 1
mail_subject = ALARM!
}
action {
type = CMD
name = warn_user_cvsd
cmd_line = xmessage "CVS daemon not responding!"
}
condition {
type = DISK
name = log_disk_alarm
action = mail_to_admin
disk_file = /var/log/
disk_threshold = 90
}
condition {
type = TCP
name = cvs_daemon_alarm
action = warn_user_cvsd
tcp_host = localhost
tcp_port = 2401
}
condition {
type = CMD
name = ping_test
action = !mail_to_admin, warn_user_cvsd
hold_time = 120
cmd_line = ping -c 2 www.example.com
cmd_timeout = 30
cmd_expected = 0
}