aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/profile/manifests/monitoring/services.pp12
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/profile/manifests/monitoring/services.pp b/modules/profile/manifests/monitoring/services.pp
index 95c6efb..0ecc135 100644
--- a/modules/profile/manifests/monitoring/services.pp
+++ b/modules/profile/manifests/monitoring/services.pp
@@ -1,5 +1,15 @@
1class profile::monitoring::services { 1class profile::monitoring::services {
2 2
3 $warn_1_load = 1.5*$facts["processorcount"]
4 $warn_5_load = $facts["processorcount"]
5 $warn_15_load = $facts["processorcount"]
6 $warn_load = join([$warn_1_load, $warn_5_load, $warn_15_load], ",")
7
8 $max_1_load = 2*$facts["processorcount"]
9 $max_5_load = $facts["processorcount"]
10 $max_15_load = $facts["processorcount"]
11 $max_load = join([$max_1_load, $max_5_load, $max_15_load], ",")
12
3 profile::monitoring::local_service { 13 profile::monitoring::local_service {
4 "Size on root partition": 14 "Size on root partition":
5 local => { 15 local => {
@@ -11,7 +21,7 @@ class profile::monitoring::services {
11 }; 21 };
12 "Average load": 22 "Average load":
13 local => { 23 local => {
14 check_command => "check_local_load!8.0,8.0,8.0!10.0,10.0,10.0", 24 check_command => "check_local_load!$warn_load!$max_load",
15 }; 25 };
16 "Swap usage": 26 "Swap usage":
17 local => { 27 local => {