diff options
-rw-r--r-- | nagios-nrpe-commands.cfg | 1 | ||||
-rw-r--r-- | nagios-templates.cfg | 5 | ||||
-rwxr-xr-x | sitesummary-nodes | 2 |
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")); |