summaryrefslogtreecommitdiff
path: root/templates/host.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/host.erb')
-rw-r--r--templates/host.erb10
1 files changed, 10 insertions, 0 deletions
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 %>
+}
+
+