From 289573b33d529d09364d18319235857419c52e22 Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Wed, 20 Apr 2011 13:32:13 -0400 Subject: [PATCH] Watch my machines --- novgorod, olinda --- local.d/adehnert-host.cfg | 36 ++++++++++++++++++++++++++++++++++++ local.d/novgorod.cfg | 5 +++++ local.d/olinda.cfg | 5 +++++ 3 files changed, 46 insertions(+) create mode 100644 local.d/adehnert-host.cfg create mode 100644 local.d/novgorod.cfg create mode 100644 local.d/olinda.cfg diff --git a/local.d/adehnert-host.cfg b/local.d/adehnert-host.cfg new file mode 100644 index 0000000..05c736f --- /dev/null +++ b/local.d/adehnert-host.cfg @@ -0,0 +1,36 @@ +define host{ + name adehnert-host + use generic-host + register 0 +} + +define hostgroup { + hostgroup_name adehnert-hosts + members olinda,novgorod +} + +define service { + name adehnert-service + use generic-service + check_interval 2 + retry_interval 1 + max_check_attempts 2 + contact_groups adehnert-pub + #notification_interval 10 + notification_period 24x7 + notification_options w,u,c,r + register 0 +} + +define service { + use adehnert-service + hostgroup_name adehnert-hosts + service_description PING + check_command check_ping!500.0,30%!3000.0,80% +} +define service { + use adehnert-service + hostgroup_name adehnert-hosts + service_description SSH + check_command check_ssh +} diff --git a/local.d/novgorod.cfg b/local.d/novgorod.cfg new file mode 100644 index 0000000..e559f16 --- /dev/null +++ b/local.d/novgorod.cfg @@ -0,0 +1,5 @@ +define host{ + use adehnert-host ; Name of host template to use + host_name novgorod + address 18.208.0.217 +} diff --git a/local.d/olinda.cfg b/local.d/olinda.cfg new file mode 100644 index 0000000..52b83d8 --- /dev/null +++ b/local.d/olinda.cfg @@ -0,0 +1,5 @@ +define host{ + use adehnert-host ; Name of host template to use + host_name olinda + address 18.208.0.204 +} -- 2.34.1