aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2010-04-06 13:35:24 +0000
committerPetter Reinholdtsen <pere@hungry.com>2010-04-06 13:35:24 +0000
commitbb2af3a10fc9f400be8a1a6fb35629f54ec5a879 (patch)
treef8a7b5c26c240e14957f422793e9469a93659024
parent91886ce1f5d3e1115130b97b13b72241ff54246d (diff)
downloadsitesummary-bb2af3a10fc9f400be8a1a6fb35629f54ec5a879.tar.gz
sitesummary-bb2af3a10fc9f400be8a1a6fb35629f54ec5a879.tar.bz2
sitesummary-bb2af3a10fc9f400be8a1a6fb35629f54ec5a879.tar.xz
Add service definition to dummy nagios configuration generated at
install time to make sure the dummy entry work with Nagios 3.2 too.
-rw-r--r--debian/changelog3
-rw-r--r--debian/sitesummary.postinst7
2 files changed, 10 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index f9e11da..a53be94 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,9 @@ sitesummary (0.0.63) UNRELEASED; urgency=low
* Save some time when collecting cdp information by skipping the
loopback interface. It is unlikely to be connected to a Cisco
switch.
+ * Add service definition to dummy nagios configuration generated at
+ install time to make sure the dummy entry work with Nagios 3.2
+ too.
-- Petter Reinholdtsen <pere@debian.org> Tue, 23 Mar 2010 22:35:46 +0100
diff --git a/debian/sitesummary.postinst b/debian/sitesummary.postinst
index 6362027..c1c82b9 100644
--- a/debian/sitesummary.postinst
+++ b/debian/sitesummary.postinst
@@ -24,6 +24,13 @@ define host {
host_name localhost
address localhost
}
+
+define service {
+ use server-service
+ host_name localhost
+ service_description ping
+ check_command check_ping!100.0,20%!500.0,60%
+}
EOF
fi
fi