@cryptotaxi247 / netdata-1 / commits / 59e71195b

fix(alarms): treat 0 processors as unknown in load_cpu_number (#14286)

Ilya Mashchenko committed Jan 18, 2023 at 11:36 UTC 59e71195b956fc897abc9e973b1f3b52bb525be9
1 file changed +1 -1
health/health.d/load.conf
+1 -1
@@ -11,7 +11,7 @@
11 component: Load
12 os: linux
13 hosts: *
14 - calc: ($active_processors < 2) ? ( 2 ) : ( $active_processors )
14 + calc: ($active_processors == nan or $active_processors == 0) ? (nan) : ( ($active_processors < 2) ? ( 2 ) : ( $active_processors ) )
15 units: cpus
16 every: 1m
17 info: number of active CPU cores in the system