diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2011-11-13 21:14:28 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2011-11-13 21:14:28 +0000 |
commit | 35ad1e3ff48a5dc8f0756a2a50fa226356a9ac80 (patch) | |
tree | 3df3da492bde96211e378d301b4a11661245f2c3 /sitesummary-nodes | |
parent | ed586825a418419a3262fc9b84525fe38d892959 (diff) | |
download | sitesummary-35ad1e3ff48a5dc8f0756a2a50fa226356a9ac80.tar.gz sitesummary-35ad1e3ff48a5dc8f0756a2a50fa226356a9ac80.tar.bz2 sitesummary-35ad1e3ff48a5dc8f0756a2a50fa226356a9ac80.tar.xz |
Make CUPS check more robust. Require both cups and cups-client
packages installed to enable it.
Diffstat (limited to 'sitesummary-nodes')
-rwxr-xr-x | sitesummary-nodes | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes index 4eaeb65..2ff9e37 100755 --- a/sitesummary-nodes +++ b/sitesummary-nodes @@ -347,7 +347,8 @@ sub generate_nagios_config { print_nagios_service_check(0, $hostname, "cups queue", "check_cups_queue") - if (is_pkg_installed($hostid, "cups")); + if (is_pkg_installed($hostid, "cups") && + is_pkg_installed($hostid, "cups-client")); # The rest of the checks only work if NRPE is installed and configured next unless ((!$remote && $nagiosclient) @@ -482,7 +483,8 @@ sub generate_nagios_config { # check hw raid status # check hardware status - # check LDAP and LDAPS using the protocol + # check LDAP and LDAPS using the protocol, module present in + # nagios-plugins-basic # Check Squid web proxy print_nagios_service_check($remote, $hostname, "squid", |