summaryrefslogtreecommitdiff
path: root/manifests/pnp4nagios.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2010-10-23 02:55:17 +0200
committerLeap devs <sysdev@leap.se>2012-09-19 16:04:45 +0000
commit124754b2fe6cfcc88b4f4c02ca690f141511bae2 (patch)
tree9f08f2722555d496c4c2edaedaa92400d8a43303 /manifests/pnp4nagios.pp
parent66257f3c425fea5fcea2acb999854aae5e7cf9f1 (diff)
basic pnp4nagios grapher integration
Diffstat (limited to 'manifests/pnp4nagios.pp')
-rw-r--r--manifests/pnp4nagios.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/pnp4nagios.pp b/manifests/pnp4nagios.pp
new file mode 100644
index 0000000..051bad8
--- /dev/null
+++ b/manifests/pnp4nagios.pp
@@ -0,0 +1,17 @@
+class nagios::pnp4nagios {
+ include nagios::defaults::pnp4nagios
+
+ package { [php5, php5-gd, rrdcollect, rrdtool, librrdp-perl, librrds-perl ]:
+ ensure => installed }
+
+
+ # unfortunatly i didn't find a way to use nagios_host and nagios_service definition, because
+ # imho puppet can't handle the "name" variable needed in these 2 definitions
+ # so we need to copy a file here.
+
+ file { 'pnp4nagios-templates.cfg':
+ path => "$nagios::nagios_cfgdir/conf.d/pnp4nagios-templates.cfg",
+ source => [ "puppet:///modules/site-nagios/pnp4nagios/pnp4nagios-templates.cfg",
+ "puppet:///modules/nagios/pnp4nagios/pnp4nagios-templates.cfg" ]
+ }
+}