From eb6ad3bbd3d12c22deedfcee41d53902e39524fc Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Mon, 13 Feb 2012 10:03:44 +0000 Subject: More to add dhcp check. --- nagios-nrpe-commands.cfg | 1 + nagios-templates.cfg | 5 +++++ sitesummary-nodes | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) 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 @@ -208,6 +208,11 @@ define command{ command_line /usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -C cron } +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")); -- cgit v1.2.3