Add templates for the monitor host
authorAndy Witter <awitter@georgialibraries.org>
Tue, 30 Apr 2013 00:35:31 +0000 (20:35 -0400)
committerAndy Witter <awitter@georgialibraries.org>
Tue, 30 Apr 2013 00:35:31 +0000 (20:35 -0400)
templates/monitor/.hostgroups.cfg.swp [new file with mode: 0644]
templates/monitor/contacts.cfg [new file with mode: 0644]
templates/monitor/services.cfg [new file with mode: 0644]

diff --git a/templates/monitor/.hostgroups.cfg.swp b/templates/monitor/.hostgroups.cfg.swp
new file mode 100644 (file)
index 0000000..8074a96
Binary files /dev/null and b/templates/monitor/.hostgroups.cfg.swp differ
diff --git a/templates/monitor/contacts.cfg b/templates/monitor/contacts.cfg
new file mode 100644 (file)
index 0000000..0218f04
--- /dev/null
@@ -0,0 +1,12 @@
+define contact{
+        contact_name                    root
+        alias                           Root
+        service_notification_period     24x7
+        host_notification_period        24x7
+        service_notification_options    w,u,c,r
+        host_notification_options       d,r
+        service_notification_commands   notify-service-by-email,notify-service-by-pipe
+        host_notification_commands      notify-host-by-email,notify-host-by-pipe
+        email                           root@localhost
+}
+
diff --git a/templates/monitor/services.cfg b/templates/monitor/services.cfg
new file mode 100644 (file)
index 0000000..2cd1726
--- /dev/null
@@ -0,0 +1,78 @@
+define service {
+        hostgroup_name                  all
+        service_description             ping
+        check_command                   check_ping!50.0,10%!250.0,25%
+        use                             generic-service
+        notification_interval           1800
+}
+
+define service {
+        hostgroup_name                  all
+        service_description             Root Disk Space
+        check_command                   CHECK_NRPE!check_disk_root_args!20%!10%
+        use                             generic-service
+        notification_interval           0
+}
+
+define service {
+        hostgroup_name                  db-servers
+        service_description             Data Directory Disk Space #TODO  Check this
+        check_command                   CHECK_NRPE!check_data_disk!20%!10%
+        use                             generic-service
+        notification_interval           0
+}
+
+define service {
+        hostgroup_name                  all
+        service_description             SSH
+        check_command                   check_ssh
+        use                             generic-service
+        notification_interval           0 ; set > 0 if you want to be renotified
+}
+
+define service {
+        hostgroup_name                  evergreen-heads
+        service_description             HTTP
+        use                             generic-service
+        notification_interval           240
+        check_command                   check_http
+        normal_check_interval           1
+}
+
+define service {
+        hostgroup_name                  evergreen-heads
+        service_description             ldirectorping.txt test
+        check_command                   check_ldirector
+        use                             generic-service
+        notification_interval           0
+}
+
+define service {
+        hostgroup_name                  opensrf-nodes
+        service_description             Jabber processes
+        use                             generic-service
+        notification_interval           240
+        check_command                   CHECK_NRPE!check_proc!beam!1:2!1:2
+}
+
+define service {
+        hostgroup_name                  reporter-servers
+        service_description             Clark Processes
+        use                             generic-service
+        notification_interval           240
+        check_command                   CHECK_NRPE!check_clark!1:15!1:15
+}
+
+
+#=============#
+#  postgres   #
+#=============#
+
+define service {
+        hostgroup_name                  db-servers
+        service_description             PostgreSQL
+        use                             generic-service
+        notification_interval           240
+        check_command                   check_nrpe_1arg!check_pgsql
+}
+