Code

icinga-module.cfg: Provide a sample Icinga module configuration.
authorSebastian Harl <sh@teamix.net>
Thu, 24 Jan 2013 14:20:03 +0000 (15:20 +0100)
committerSebastian Harl <sh@teamix.net>
Thu, 24 Jan 2013 14:20:03 +0000 (15:20 +0100)
Thanks to Christoph Anton Mitterer for providing this!
Closes: #683459
debian/changelog
debian/icinga-module.cfg [new file with mode: 0644]
debian/rules

index 911d15e5146c37445d26eeaa55dd6cfc6ca95b36..9487553d99175ff29a056500943ace650cb7b975 100644 (file)
@@ -19,6 +19,9 @@ pnp4nagios (0.6.19-1) UNRELEASED; urgency=low
     - fix-npcd-path updated for 0.6.19.
   * debian/rules:
     - Manually clean-up auto-generated scripts/rrd_modify.pl.
+  * debian/icinga-module.cfg, debian/rules:
+    - Provide a sample Icinga module configuration; thanks to Christoph Anton
+      Mitterer for providing this (Closes: #683459).
 
  -- Sebastian Harl <tokkee@debian.org>  Thu, 24 Jan 2013 14:50:27 +0100
 
diff --git a/debian/icinga-module.cfg b/debian/icinga-module.cfg
new file mode 100644 (file)
index 0000000..b88f361
--- /dev/null
@@ -0,0 +1,11 @@
+# This is a sample module definition for Icinga.
+#
+# Copy this file to /etc/icinga/modules/ in order to activate it.
+
+define module {
+       module_name     npcdmod
+       module_type     neb
+       path            /usr/lib/pnp4nagios/npcdmod.o
+       args            config_file=/etc/pnp4nagios/npcd.cfg
+}
+
index 67e3ba1169c0672ec875c6e69a0d6c97a7504b42..51098b3304d94da10482a3cbae387f25e3f35158 100755 (executable)
@@ -122,6 +122,9 @@ install: build
        cp -av contrib/ssi debian/tmp/usr/share/doc/pnp4nagios/examples/
        rm -fv debian/tmp/usr/share/doc/pnp4nagios/examples/ssi/*.in
 
+       # Icinga module sample configuration
+       cp debian/icinga-module.cfg debian/tmp/usr/share/doc/pnp4nagios/examples/
+
        # Remove external PHP classes/libraries: FPDF, FPDF-TPL, FPDI
        rm -r debian/tmp/usr/share/pnp4nagios/html/application/vendor/fpdf