diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2012-01-17 17:58:35 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2012-01-17 17:58:35 +0000 |
commit | 14c968288879b2f7acae54f6cd49f888e6517fb0 (patch) | |
tree | 26e2bc10ca83b9bdccbe38f3aa8ece664c42779d /sitesummary-nodes | |
parent | bf1a220bf17fae91ee1c49b2aab958d9fcd8389c (diff) | |
download | sitesummary-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-x | sitesummary-nodes | 13 |
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 |