diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-01-16 10:13:20 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-01-16 10:13:20 +0000 |
commit | 9fb1b7d6ffb10e436aadbb2b1ce1337f74e5e74d (patch) | |
tree | f08b8af12edd0cfb26e28c993cdaab4f77da27e7 | |
parent | 4767c5f3476e2d902b28222c5359075a1491982e (diff) | |
download | sitesummary-9fb1b7d6ffb10e436aadbb2b1ce1337f74e5e74d.tar.gz sitesummary-9fb1b7d6ffb10e436aadbb2b1ce1337f74e5e74d.tar.bz2 sitesummary-9fb1b7d6ffb10e436aadbb2b1ce1337f74e5e74d.tar.xz |
Add checks for running cron and working dhcp to Nagios configuration.
-rw-r--r-- | debian/changelog | 1 | ||||
-rw-r--r-- | nagios-templates.cfg | 5 | ||||
-rwxr-xr-x | sitesummary-nodes | 5 |
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"); + } } |