-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-nagios.cfg
65 lines (64 loc) · 3.1 KB
/
example-nagios.cfg
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
58
59
60
61
62
63
64
65
define host {
name no_ping ; The name of this host template
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
max_check_attempts 10
notification_interval 0
notification_period 24x7
notification_options d,u,r
contact_groups admins
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
define command {
command_name check_forceok
command_line /usr/lib/nagios/plugins/check_forceok
}
define host {
use no_ping
host_name fishtank
check_command check_forceok
}
define service {
use st_hi
host_name fishtank
service_description Left-hand temp near powerhead
check_command check_temp!28-000006264ced!20!28!24!26
notification_interval 0 ; set > 0 if you want to be renotified
}
define service {
use st_hi
host_name fishtank
service_description Right-hand temp near back of tank
check_command check_temp!28-00000626149d!20!28!24!26
notification_interval 0 ; set > 0 if you want to be renotified
}
define service {
use st_hi
host_name fishtank
service_description Right-hand temp near powerhead
check_command check_temp!28-000006280eea!20!28!24!26
notification_interval 0 ; set > 0 if you want to be renotified
}
define service {
use st_hi
host_name fishtank
service_description Sump near outlet pump
check_command check_temp!28-00000628796b!20!28!24!26
notification_interval 0 ; set > 0 if you want to be renotified
}
define service {
use st_hi
host_name fishtank
service_description Ambient temperature 5
check_command check_temp!28-0000062c7362!12!30!16!25
notification_interval 0 ; set > 0 if you want to be renotified
}
define command {
command_name check_temp
command_line /usr/lib/nagios/plugins/check_ds18b20.py -t 30 -c $ARG2$ -C $ARG3$ -w $ARG4$ -W $ARG5$ $ARG1$
}