summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2008-04-11 19:59:35 +0000
committerandreas <andreas@immerda.ch>2008-04-11 19:59:35 +0000
commitc0b40856b2a44c1fad50a1215de254bc8a5e144f (patch)
treebe00f564082ad86991aa6969c28c33f725004fac /templates
erster wurf (nicht mehr ganz orig von git.black.co.at)
Diffstat (limited to 'templates')
-rw-r--r--templates/command.erb5
-rw-r--r--templates/host.erb10
-rw-r--r--templates/service.erb7
3 files changed, 22 insertions, 0 deletions
diff --git a/templates/command.erb b/templates/command.erb
new file mode 100644
index 0000000..aeaa8c9
--- /dev/null
+++ b/templates/command.erb
@@ -0,0 +1,5 @@
+define command{
+ command_name <%= name %>
+ command_line <%= command_line %>
+ }
+
diff --git a/templates/host.erb b/templates/host.erb
new file mode 100644
index 0000000..3598576
--- /dev/null
+++ b/templates/host.erb
@@ -0,0 +1,10 @@
+define host{
+ use generic-host ; Name of host template to use
+ hostgroups ping-servers
+ host_name <%= name %>
+ alias <%= short_alias %>
+ address <%= ip %>
+ <% if ! (/^(none|)$/i =~ nagios_parent) then %> parents <%= nagios_parent %> <% end %>
+}
+
+
diff --git a/templates/service.erb b/templates/service.erb
new file mode 100644
index 0000000..5799aca
--- /dev/null
+++ b/templates/service.erb
@@ -0,0 +1,7 @@
+define service {
+ host_name <%= nagios2_host_name %>
+ service_description <%= name %>
+ check_command <%= real_check_command %>
+ use generic-service
+}
+