From 59e71195b956fc897abc9e973b1f3b52bb525be9 Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko Date: Wed, 18 Jan 2023 11:36:37 +0200 Subject: fix(alarms): treat 0 processors as unknown in load_cpu_number (#14286) --- health/health.d/load.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3