From bab19af527a21d689324a95aa9a0134c9aadb863 Mon Sep 17 00:00:00 2001 From: varac Date: Sat, 23 Oct 2010 02:55:17 +0200 Subject: basic pnp4nagios grapher integration --- files/pnp4nagios/pnp4nagios-popup-templates.cfg | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 files/pnp4nagios/pnp4nagios-popup-templates.cfg (limited to 'files/pnp4nagios/pnp4nagios-popup-templates.cfg') diff --git a/files/pnp4nagios/pnp4nagios-popup-templates.cfg b/files/pnp4nagios/pnp4nagios-popup-templates.cfg new file mode 100644 index 0000000..0035c63 --- /dev/null +++ b/files/pnp4nagios/pnp4nagios-popup-templates.cfg @@ -0,0 +1,14 @@ +# 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 +} + -- cgit v1.2.3 From dc61b5b838a2835be4f2b89d585f7daef980e6ea Mon Sep 17 00:00:00 2001 From: nadir Date: Sun, 12 Dec 2010 18:32:41 +0100 Subject: added pnp-grapher templates for explicit use --- files/pnp4nagios/pnp4nagios-popup-templates.cfg | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'files/pnp4nagios/pnp4nagios-popup-templates.cfg') diff --git a/files/pnp4nagios/pnp4nagios-popup-templates.cfg b/files/pnp4nagios/pnp4nagios-popup-templates.cfg index 0035c63..de17d84 100644 --- a/files/pnp4nagios/pnp4nagios-popup-templates.cfg +++ b/files/pnp4nagios/pnp4nagios-popup-templates.cfg @@ -12,3 +12,20 @@ define service { 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 +} + -- cgit v1.2.3