diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-01-18 11:36:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 11:36:37 +0200 |
commit | 59e71195b956fc897abc9e973b1f3b52bb525be9 (patch) | |
tree | ee1f9a006325a68e661b632a5e7bbefe6d125e5e /health/health.d/load.conf | |
parent | 3d5f9e64a012b8d0f66ccf483e0e0e6eb3186787 (diff) |
fix(alarms): treat 0 processors as unknown in load_cpu_number (#14286)
Diffstat (limited to 'health/health.d/load.conf')
-rw-r--r-- | health/health.d/load.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/health/health.d/load.conf b/health/health.d/load.conf index ccfa97b3bd..75989c57f8 100644 --- a/health/health.d/load.conf +++ b/health/health.d/load.conf @@ -11,7 +11,7 @@ component: Load os: linux hosts: * - calc: ($active_processors < 2) ? ( 2 ) : ( $active_processors ) + calc: ($active_processors == nan or $active_processors == 0) ? (nan) : ( ($active_processors < 2) ? ( 2 ) : ( $active_processors ) ) units: cpus every: 1m info: number of active CPU cores in the system |