aboutsummaryrefslogtreecommitdiff
path: root/modules/private/monitoring/conf/hosts.cfg
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-07-17 11:33:57 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-07-17 11:33:57 +0200
commit3bc32d9ebd9b0900eeef756122ad28f8857f8bfe (patch)
treeff92459e654fde6fe559dfd383d6a76e05a347cf /modules/private/monitoring/conf/hosts.cfg
parente886ea19877fa0d4de32d35939f69e9c18681d59 (diff)
downloadNix-3bc32d9ebd9b0900eeef756122ad28f8857f8bfe.tar.gz
Nix-3bc32d9ebd9b0900eeef756122ad28f8857f8bfe.tar.zst
Nix-3bc32d9ebd9b0900eeef756122ad28f8857f8bfe.zip
Add monitoring modules via naemon
Diffstat (limited to 'modules/private/monitoring/conf/hosts.cfg')
-rw-r--r--modules/private/monitoring/conf/hosts.cfg32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/private/monitoring/conf/hosts.cfg b/modules/private/monitoring/conf/hosts.cfg
new file mode 100644
index 0000000..d903b0a
--- /dev/null
+++ b/modules/private/monitoring/conf/hosts.cfg
@@ -0,0 +1,32 @@
1# vim: filetype=nagios
2
3define 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
15define 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
29define 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}