aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2012-02-13 10:03:44 +0000
committerPetter Reinholdtsen <pere@hungry.com>2012-02-13 10:03:44 +0000
commiteb6ad3bbd3d12c22deedfcee41d53902e39524fc (patch)
treee9500afb0b6cb29784925e5f80899e202f1760b1
parente8519327081a5af9bd2a319c137581b13eab4f28 (diff)
downloadsitesummary-eb6ad3bbd3d12c22deedfcee41d53902e39524fc.tar.gz
sitesummary-eb6ad3bbd3d12c22deedfcee41d53902e39524fc.tar.bz2
sitesummary-eb6ad3bbd3d12c22deedfcee41d53902e39524fc.tar.xz
More to add dhcp check.
-rw-r--r--nagios-nrpe-commands.cfg1
-rw-r--r--nagios-templates.cfg5
-rwxr-xr-xsitesummary-nodes2
3 files changed, 7 insertions, 1 deletions
diff --git a/nagios-nrpe-commands.cfg b/nagios-nrpe-commands.cfg
index 6a2729f..8f23e73 100644
--- a/nagios-nrpe-commands.cfg
+++ b/nagios-nrpe-commands.cfg
@@ -13,6 +13,7 @@ command[check_nfs]=/usr/lib/nagios/plugins/check_rpc -H localhost -C nfs -c2,3
command[check_ntp]=/usr/lib/nagios/plugins/check_ntp -H localhost
command[check_procs]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$
command[check_procs_cron]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -C cron
+command[check_procs_dhcpd]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -C dhcpd
command[check_procs_zombie]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s Z
command[check_shutdown]=/usr/lib/sitesummary/nagios-plugins/check_shutdown
command[check_smtp]=/usr/lib/nagios/plugins/check_smtp -H localhost
diff --git a/nagios-templates.cfg b/nagios-templates.cfg
index c5d4ad6..dda937c 100644
--- a/nagios-templates.cfg
+++ b/nagios-templates.cfg
@@ -209,6 +209,11 @@ define command{
}
define command{
+ command_name check_procs_dhcpd
+ command_line /usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -C dhcpd
+}
+
+define command{
command_name check_linux_raid
command_line /usr/lib/nagios/plugins/check_linux_raid
}
diff --git a/sitesummary-nodes b/sitesummary-nodes
index e3c1f14..d5016c9 100755
--- a/sitesummary-nodes
+++ b/sitesummary-nodes
@@ -401,7 +401,7 @@ sub generate_nagios_config {
# "check_dhcp")
# if is_pkg_installed($hostid, "dhcp3-server");
print_nagios_service_check($remote, $hostname, "process - dhcpd",
- "check_procs_cron", "1:15!1:25")
+ "check_procs_dhcpd", "1:15!1:25")
if (is_pkg_installed($hostid, "dhcp3-server")
|| is_pkg_installed($hostid, "isc-dhcp-server"));