]> git.immae.eu Git - perso/Immae/Config/Nix.git/blob - modules/private/monitoring/conf/hosts.cfg
Add monitoring modules via naemon
[perso/Immae/Config/Nix.git] / modules / private / monitoring / conf / hosts.cfg
1 # vim: filetype=nagios
2
3 define host {
4 name generic-host
5 event_handler_enabled 1
6 flap_detection_enabled 1
7 notification_period 24x7
8 notifications_enabled 1
9 process_perf_data 1
10 register 0
11 retain_nonstatus_information 1
12 retain_status_information 1
13 }
14
15 define host {
16 name linux-server
17 use generic-host
18 check_command check-host-alive
19 check_interval 5
20 check_period 24x7
21 contact_groups admins
22 max_check_attempts 10
23 notification_interval 120
24 notification_options d,u,r,f
25 register 0
26 retry_interval 1
27 }
28
29 define command {
30 command_name check-host-alive
31 command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
32 }