aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-nodes
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2010-02-20 09:00:26 +0000
committerPetter Reinholdtsen <pere@hungry.com>2010-02-20 09:00:26 +0000
commit259e7b3969d9df9855663adc46ce6199e739bcdf (patch)
treefa02d8fe8d6c84a19ee18ea1e5d901cbf978aa19 /sitesummary-nodes
parentf47a9428dbb4ce52d7ef5320ed6cea292d952d4f (diff)
downloadsitesummary-259e7b3969d9df9855663adc46ce6199e739bcdf.tar.gz
sitesummary-259e7b3969d9df9855663adc46ce6199e739bcdf.tar.bz2
sitesummary-259e7b3969d9df9855663adc46ce6199e739bcdf.tar.xz
Check cups using the check_cups_queue Nagios module from
http://exchange.nagios.org/directory/Plugins/Printing/check_cups_queue/details
Diffstat (limited to 'sitesummary-nodes')
-rwxr-xr-xsitesummary-nodes5
1 files changed, 4 insertions, 1 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes
index 3697b8e..7fd0d25 100755
--- a/sitesummary-nodes
+++ b/sitesummary-nodes
@@ -305,7 +305,6 @@ sub generate_nagios_config {
(
139 => { name => 'samba', package => 'samba' },
389 => { name => 'ldap', package => 'slapd' },
- 631 => { name => 'cups', package => 'cups' },
4949 => { name => 'munin', package => 'munin-node' },
);
@@ -346,6 +345,10 @@ sub generate_nagios_config {
}
}
+ print_nagios_service_check(0, $hostname, "cups queue",
+ "check_cups_queue")
+ if (is_pkg_installed($hostid, "cups"));
+
# The rest of the checks only work if NRPE is installed and configured
next unless ((!$remote && $nagiosclient)
|| ($remote && defined $nrpestatus));