summaryrefslogtreecommitdiff
path: root/files/pnp4nagios/pnp4nagios-popup-templates.cfg
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-06-13 00:38:22 +0200
committermh <mh@immerda.ch>2013-06-13 00:38:22 +0200
commit2d11bc0ba8a636cee4adeb73689392a077a76006 (patch)
tree5990d356a1f1be9277507b7e51c28ea19ce5ec39 /files/pnp4nagios/pnp4nagios-popup-templates.cfg
parentded0a8765946706262ec3c746864df4d09638292 (diff)
parenta814cdad2b1ff47066df4c8b5d948f22210c0832 (diff)
Merge branch 'master' of git.puppet.immerda.ch:module-nagios
Diffstat (limited to 'files/pnp4nagios/pnp4nagios-popup-templates.cfg')
-rw-r--r--files/pnp4nagios/pnp4nagios-popup-templates.cfg31
1 files changed, 31 insertions, 0 deletions
diff --git a/files/pnp4nagios/pnp4nagios-popup-templates.cfg b/files/pnp4nagios/pnp4nagios-popup-templates.cfg
new file mode 100644
index 0000000..de17d84
--- /dev/null
+++ b/files/pnp4nagios/pnp4nagios-popup-templates.cfg
@@ -0,0 +1,31 @@
+# http://docs.pnp4nagios.org/de/pnp-0.6/webfe
+
+define host {
+ name host-pnp
+ action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=_HOST_
+ register 0
+}
+
+define service {
+ name srv-pnp
+ action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC$' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=$SERVICEDESC$
+ register 0
+}
+
+# templates for explicit use, i.e.
+# use => 'generic-host-pnp'
+
+define host {
+ name generic-host-pnp
+ use generic-host,host-pnp
+# action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_
+ register 0
+}
+
+define service {
+ name generic-service-pnp
+ use generic-service,srv-pnp
+# action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_
+ register 0
+}
+