aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog1
-rw-r--r--nagios-templates.cfg5
-rwxr-xr-xsitesummary-nodes5
3 files changed, 11 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index f89f35c..de00ee2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ sitesummary (0.0.54) UNRELEASED; urgency=low
* Rewrite how nagios configuration is generated to use a function to
generate each service check.
* Do not generate nagios checks that need nrpe configuration by default.
+ * Add checks for running cron and working dhcp to Nagios configuration.
-- Petter Reinholdtsen <pere@debian.org> Sat, 16 Jan 2010 01:39:35 +0100
diff --git a/nagios-templates.cfg b/nagios-templates.cfg
index 6a72a84..4ddca23 100644
--- a/nagios-templates.cfg
+++ b/nagios-templates.cfg
@@ -108,6 +108,11 @@ define command{
}
define command{
+ command_name check_dhcp
+ command_line /usr/lib/nagios/plugins/check_dhcp
+}
+
+define command{
command_name check_ntp
command_line /usr/lib/nagios/plugins/check_ntp -H $HOSTADDRESS$
}
diff --git a/sitesummary-nodes b/sitesummary-nodes
index 7da45ec..52a41e7 100755
--- a/sitesummary-nodes
+++ b/sitesummary-nodes
@@ -289,5 +289,10 @@ EOF
print_nagios_service_check($remote, $hostname, "process - cron",
"check_procs_command", "1:15!1:25!cron")
if (is_pkg_installed($hostid, "cron"));
+
+ print_nagios_service_check($remote, $hostname, "dhcp",
+ "check_dhcp")
+ if is_pkg_installed($hostid, "dhcp3-server");
+
}
}