diff options
-rwxr-xr-x | sitesummary-nodes | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes index 1240580..98bf860 100755 --- a/sitesummary-nodes +++ b/sitesummary-nodes @@ -197,6 +197,16 @@ EOF "check_tcp", $port); } + # Check SSH server + print_nagios_service_check(0, $hostname, "ssh", + "check_ssh") + if is_pkg_installed($hostid, "openssh-server"); + + print_nagios_service_check(0, $hostname, "http", + "check_http") + if (is_pkg_installed($hostid, "apache") || + is_pkg_installed($hostid, "apache2")); + # The rest of the checks only work if NRPE is installed and configured next unless (is_nagios_client($hostid)); @@ -279,16 +289,6 @@ EOF "check_squid", "3128!http://www") if is_pkg_installed($hostid, "squid"); - # Check SSH server - print_nagios_service_check($remote, $hostname, "ssh", - "check_ssh") - if is_pkg_installed($hostid, "openssh-server"); - - print_nagios_service_check($remote, $hostname, "http", - "check_http") - if (is_pkg_installed($hostid, "apache") || - is_pkg_installed($hostid, "apache2")); - print_nagios_service_check($remote, $hostname, "ntp time server", "check_ntp", "-H!localhost") if (is_pkg_installed($hostid, "ntp") || |