OSDN Git Service

improve Nagios4 support.
[metasearch/grid-chef-repo.git] / cookbooks / nagios-grid / templates / default / etc / nagios4 / base / hosts-generic.cfg
diff --git a/cookbooks/nagios-grid/templates/default/etc/nagios4/base/hosts-generic.cfg b/cookbooks/nagios-grid/templates/default/etc/nagios4/base/hosts-generic.cfg
new file mode 100644 (file)
index 0000000..d81745c
--- /dev/null
@@ -0,0 +1,18 @@
+# This file was generated by Chef.
+
+define host {
+       name        generic-base-host
+       use         generic-host
+
+       alias                   Base host
+       check_command           check-host-alive
+       max_check_attempts      20
+       notification_interval   60
+       notification_period     24x7
+       notification_options    d,u,r
+<% if node['nagios']['with_pnp4nagios'] then -%>
+       action_url              /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_
+<% end -%>
+       register                0
+}
+