diff options
-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%"); |