diff options
-rw-r--r-- | debian/changelog | 3 | ||||
-rwxr-xr-x | sitesummary-nodes | 13 |
2 files changed, 14 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index 200225f..85e4f4a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,9 @@ sitesummary (0.1.1~svn74458) UNRELEASED; urgency=low * Raise Nagios cups queue length limit (w10,c50 to w30,c70) as 10 print jobs in a queue seem to be a regular event on the test environment I see. + * 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. -- Petter Reinholdtsen <pere@debian.org> Tue, 17 Jan 2012 09:53:13 +0100 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 |