aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-nodes
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2012-01-17 17:58:35 +0000
committerPetter Reinholdtsen <pere@hungry.com>2012-01-17 17:58:35 +0000
commit14c968288879b2f7acae54f6cd49f888e6517fb0 (patch)
tree26e2bc10ca83b9bdccbe38f3aa8ece664c42779d /sitesummary-nodes
parentbf1a220bf17fae91ee1c49b2aab958d9fcd8389c (diff)
downloadsitesummary-14c968288879b2f7acae54f6cd49f888e6517fb0.tar.gz
sitesummary-14c968288879b2f7acae54f6cd49f888e6517fb0.tar.bz2
sitesummary-14c968288879b2f7acae54f6cd49f888e6517fb0.tar.xz
Raise Nagios user (w20,c50 to w150,c200) and process limits
(w500,c1000 to w1500,c2500) on LTSP servers, as these normally will have lots of users and processes.
Diffstat (limited to 'sitesummary-nodes')
-rwxr-xr-xsitesummary-nodes13
1 files changed, 11 insertions, 2 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes
index 13c7594..f52b8c7 100755
--- a/sitesummary-nodes
+++ b/sitesummary-nodes
@@ -436,10 +436,19 @@ sub generate_nagios_config {
print_nagios_service_check($remote, $hostname, "swap",
"check_swap", "10%!5%");
+ my $userlimit = "20!50";
+ my $proclimit = "500!1000";
+ # Raise user and process count limits for thin clients, as
+ # lots of users can log into these machines and run their
+ # desktops from there.
+ if (is_pkg_installed($hostid, "ltsp-server")) {
+ my $userlimit = "150!200";
+ my $proclimit = "1500!2500";
+ }
print_nagios_service_check($remote, $hostname, "current users",
- "check_users", "20!50");
+ "check_users", $userlimit);
print_nagios_service_check($remote, $hostname, "processes total",
- "check_procs", "500!1000");
+ "check_procs", $proclimit);
print_nagios_service_check($remote, $hostname, "processes zombie",
"check_procs_zombie", "20!100");
# Check unix load