aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-nodes
diff options
context:
space:
mode:
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