diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-01-16 11:11:29 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-01-16 11:11:29 +0000 |
commit | d62ec6362cbd1a9a3910bd136f7b9c279af6ca25 (patch) | |
tree | 7251b11ca237241a8760dfa624ab560d15540803 | |
parent | ddba153b8b92d7d6c443423f667feccd4762ac66 (diff) | |
download | sitesummary-d62ec6362cbd1a9a3910bd136f7b9c279af6ca25.tar.gz sitesummary-d62ec6362cbd1a9a3910bd136f7b9c279af6ca25.tar.bz2 sitesummary-d62ec6362cbd1a9a3910bd136f7b9c279af6ca25.tar.xz |
Check ssh and http from remote.
-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") || |