[icinga-checkins] icinga.org: icinga2-ansible/master: Better organization for templates

git at icinga.org git at icinga.org
Sat Jun 7 13:16:05 CEST 2014


Module: icinga2-ansible
Branch: master
Commit: c9dc7fb154095d7d551232cc1fbbbe8d490df597
URL:    https://git.icinga.org/?p=icinga2-ansible.git;a=commit;h=c9dc7fb154095d7d551232cc1fbbbe8d490df597

Author: Valentino Gagliardi <valentino.g at servermanaged.it>
Date:   Mon Jun  2 15:31:58 2014 +0200

Better organization for templates

---

 templates/check_nrpe.j2        |    9 ---------
 templates/http_service.j2      |    6 ------
 templates/load_nrpe_service.j2 |    6 ------
 templates/plesk_service.j2     |    5 -----
 templates/smtp_service.j2      |    6 ------
 templates/whm_service.j2       |    5 -----
 6 files changed, 37 deletions(-)

diff --git a/templates/check_nrpe.j2 b/templates/check_nrpe.j2
deleted file mode 100644
index b30b75f..0000000
--- a/templates/check_nrpe.j2
+++ /dev/null
@@ -1,9 +0,0 @@
-object CheckCommand "check_nrpe" {
-  import "plugin-check-command"
-
-  command = [
-    PluginDir + "/check_nrpe",
-    "-H", "$address$",
-    "-c", "$remote_nrpe_command$",
-  ]
-}
diff --git a/templates/http_service.j2 b/templates/http_service.j2
deleted file mode 100644
index 9e6532b..0000000
--- a/templates/http_service.j2
+++ /dev/null
@@ -1,6 +0,0 @@
-apply Service "http" {
-  import "generic-service"
-  check_command = "http"
-  assign where host.vars.http == "yes"
-  ignore where host.vars.http == "no"
-}
diff --git a/templates/load_nrpe_service.j2 b/templates/load_nrpe_service.j2
deleted file mode 100644
index 96433bf..0000000
--- a/templates/load_nrpe_service.j2
+++ /dev/null
@@ -1,6 +0,0 @@
-apply Service "load" {
-  import "generic-service"
-  check_command = "check_nrpe"
-  vars.remote_nrpe_command = "check_load"
-  assign where host.vars.nrpe_load == "yes"
-}
diff --git a/templates/plesk_service.j2 b/templates/plesk_service.j2
deleted file mode 100644
index 7a889b7..0000000
--- a/templates/plesk_service.j2
+++ /dev/null
@@ -1,5 +0,0 @@
-apply Service "plesk" {
-  import "generic-service"
-  check_command = "tcp"
-  assign where host.vars.plesk == "yes"
-}
diff --git a/templates/smtp_service.j2 b/templates/smtp_service.j2
deleted file mode 100644
index 9f12887..0000000
--- a/templates/smtp_service.j2
+++ /dev/null
@@ -1,6 +0,0 @@
-apply Service "smtp" {
-  import "generic-service"
-  check_command = "smtp"
-  assign where host.vars.smtp == "yes"
-  ignore where host.vars.smtp == "no"
-}
diff --git a/templates/whm_service.j2 b/templates/whm_service.j2
deleted file mode 100644
index ec2fa18..0000000
--- a/templates/whm_service.j2
+++ /dev/null
@@ -1,5 +0,0 @@
-apply Service "whm" {
-  import "generic-service"
-  check_command = "tcp"
-  assign where host.vars.whm == "yes"
-}



More information about the icinga-checkins mailing list