diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-01-18 12:28:25 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-01-18 12:28:25 +0000 |
commit | 5b0347fe6af79c65e4c3d9478c9f92caaed5c6a1 (patch) | |
tree | 0e8672513f358795834fd4f66c86cd83152a6796 | |
parent | b9d68afea4c00f5379b7285423bdc9eddf254092 (diff) | |
download | sitesummary-5b0347fe6af79c65e4c3d9478c9f92caaed5c6a1.tar.gz sitesummary-5b0347fe6af79c65e4c3d9478c9f92caaed5c6a1.tar.bz2 sitesummary-5b0347fe6af79c65e4c3d9478c9f92caaed5c6a1.tar.xz |
Make sure to generate config for laptops that are nagios clients.
-rwxr-xr-x | sitesummary-nodes | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes index f2e3a13..070aca9 100755 --- a/sitesummary-nodes +++ b/sitesummary-nodes @@ -191,10 +191,11 @@ sub generate_nagios_config { my $address = get_dns_address($hostid); my $redirect = ""; + my $nagiosclient = is_nagios_client($hostid); my $remote = is_remote_nagios_client($hostid); # Only check laptops that have the nagios tools installed - next if is_laptop($hostid) && ! $remote; + next if is_laptop($hostid) && ! $remote && ! $nagiosclient; my $defaultroute = get_dnsnameorip(get_default_route($hostid)); @@ -243,7 +244,7 @@ sub generate_nagios_config { is_pkg_installed($hostid, "apache2")); # The rest of the checks only work if NRPE is installed and configured - next unless (is_nagios_client($hostid)); + next unless ($nagiosclient); print_nagios_service_check($remote, $hostname, "swap", "check_swap", "10%!5%"); |