diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-02-03 11:10:29 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-02-03 11:10:29 +0000 |
commit | acd2f5badb50a562eec3ce1a366799a47dcc61d4 (patch) | |
tree | 31d381677779611e51d6660b22166621586b5d71 /sitesummary-nodes | |
parent | 2d09fecaba4a28a66b66fc216ee8bdf1f5fac8e0 (diff) | |
download | sitesummary-acd2f5badb50a562eec3ce1a366799a47dcc61d4.tar.gz sitesummary-acd2f5badb50a562eec3ce1a366799a47dcc61d4.tar.bz2 sitesummary-acd2f5badb50a562eec3ce1a366799a47dcc61d4.tar.xz |
Add three Nagios checks to detect bugs in /etc/resolv.conf, /etc/hosts
and a shutdown in progress.
Diffstat (limited to 'sitesummary-nodes')
-rwxr-xr-x | sitesummary-nodes | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes index 7260c0b..e313388 100755 --- a/sitesummary-nodes +++ b/sitesummary-nodes @@ -360,6 +360,19 @@ sub generate_nagios_config { print_nagios_service_check($remote, $hostname, "kernel status", "check_kernel_status"); + # Detect bad DNS servers + print_nagios_service_check($remote, $hostname, "/etc/resolv.conf", + "check_etc_resolv"); + + # Detect hosts entries not matching DNS entries + print_nagios_service_check($remote, $hostname, "/etc/hosts", + "check_etc_hosts"); + + # Detect a shutdown in progress + print_nagios_service_check($remote, $hostname, "shutdown status", + "check_shutdown"); + + # print_nagios_service_check($remote, $hostname, "dhcp", # "check_dhcp") # if is_pkg_installed($hostid, "dhcp3-server"); |