@cryptotaxi247 / netdata-1 / commits / 3e2924fd4

fix(health): don't assume 2 cores if the number is unknown (#14265)

Ilya Mashchenko committed Jan 13, 2023 at 23:06 UTC 3e2924fd466dbc05338518412f426d34b215ef0b
1 file changed +4 -1
health/health.d/load.conf
+4 -1
@@ -11,7 +11,7 @@
11 component: Load
12 os: linux
13 hosts: *
14 - calc: ($active_processors == nan or $active_processors == inf or $active_processors < 2) ? ( 2 ) : ( $active_processors )
14 + calc: ($active_processors < 2) ? ( 2 ) : ( $active_processors )
15 units: cpus
16 every: 1m
17 info: number of active CPU cores in the system
@@ -28,6 +28,7 @@ component: Load
28 os: linux
29 hosts: *
30 lookup: max -1m unaligned of load15
31 + calc: ($load_cpu_number == nan) ? (nan) : ($this)
32 units: load
33 every: 1m
34 warn: ($this * 100 / $load_cpu_number) > (($status >= $WARNING) ? 175 : 200)
@@ -43,6 +44,7 @@ component: Load
44 os: linux
45 hosts: *
46 lookup: max -1m unaligned of load5
47 + calc: ($load_cpu_number == nan) ? (nan) : ($this)
48 units: load
49 every: 1m
50 warn: ($this * 100 / $load_cpu_number) > (($status >= $WARNING) ? 350 : 400)
@@ -58,6 +60,7 @@ component: Load
60 os: linux
61 hosts: *
62 lookup: max -1m unaligned of load1
63 + calc: ($load_cpu_number == nan) ? (nan) : ($this)
64 units: load
65 every: 1m
66 warn: ($this * 100 / $load_cpu_number) > (($status >= $WARNING) ? 700 : 800)