]>
Commit | Line | Data |
---|---|---|
3bc32d9e IB |
1 | # vim: filetype=nagios |
2 | ||
3 | # System usage | |
4 | define service { | |
5 | service_description Size on root partition | |
6 | use local-service | |
7 | check_command check_local_disk!20%!10%!/ | |
8 | } | |
9 | define command { | |
10 | command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ | |
11 | command_name check_local_disk | |
12 | } | |
13 | ||
14 | define service { | |
15 | service_description Total number of process | |
16 | use local-service | |
17 | check_command check_local_procs!250!400!RSZDT | |
18 | } | |
19 | define command { | |
20 | command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$ | |
21 | command_name check_local_procs | |
22 | } | |
23 | ||
24 | define service { | |
25 | service_description Average load | |
26 | use local-service | |
27 | check_command check_local_load!8.0,8.0,8.0!10.0,10.0,10.0 | |
28 | } | |
29 | define command { | |
30 | command_line $USER1$/check_load -w $ARG1$ -c $ARG2$ | |
31 | command_name check_local_load | |
32 | } | |
33 | ||
34 | define service { | |
35 | service_description Swap usage | |
36 | use local-service | |
37 | check_command check_local_swap!20!10 | |
38 | } | |
39 | define command { | |
40 | command_line $USER1$/check_swap -n ok -w $ARG1$ -c $ARG2$ | |
41 | command_name check_local_swap | |
42 | } | |
43 | ||
44 | define service { | |
45 | service_description Memory usage | |
46 | use local-service | |
47 | check_command check_memory!80!90 | |
48 | } | |
49 | define command { | |
50 | command_line $USER2$/check_mem.sh -w $ARG1$ -c $ARG2$ | |
51 | command_name check_memory | |
52 | } | |
53 | ||
54 | define command { | |
55 | command_line $USER2$/check_command -c "$ARG1$" -s 0 -o "$ARG2$" $ARG3$ | |
56 | command_name check_command_output | |
57 | } | |
58 | ||
59 | # Network dependent local services | |
60 | define service { | |
61 | service_description NTP is activated and working | |
62 | use local-service | |
63 | check_command check_ntp | |
64 | } | |
65 | define command { | |
66 | command_line $USER1$/check_ntp_time -t 30 -q -H 0.arch.pool.ntp.org | |
67 | command_name check_ntp | |
68 | } |