From 8081a3f3c86fb1876de19dd0f0eaf372b6387307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sander=20Blomv=C3=A5gnes?= <110893407+Blinq-SanderBlom@users.noreply.github.com> Date: Wed, 28 Jun 2023 14:24:59 +0200 Subject: [PATCH] Change state value for unplugged linecard (#15126) --- includes/discovery/sensors/state/loop-telecom.inc.php | 2 +- tests/data/loop-telecom_loop-am3440-ccpb-a.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/discovery/sensors/state/loop-telecom.inc.php b/includes/discovery/sensors/state/loop-telecom.inc.php index 1fc6753cf0..1646884575 100644 --- a/includes/discovery/sensors/state/loop-telecom.inc.php +++ b/includes/discovery/sensors/state/loop-telecom.inc.php @@ -9,7 +9,7 @@ if (! empty($oids)) { ['value' => 1, 'generic' => 3, 'graph' => 0, 'descr' => 'Empty'], ['value' => 2, 'generic' => 1, 'graph' => 0, 'descr' => 'Initializing'], ['value' => 3, 'generic' => 0, 'graph' => 0, 'descr' => 'Working'], - ['value' => 4, 'generic' => 0, 'graph' => 0, 'descr' => 'Unplugged'], + ['value' => 4, 'generic' => 1, 'graph' => 0, 'descr' => 'Unplugged'], ['value' => 5, 'generic' => 2, 'graph' => 0, 'descr' => 'Failed'], ['value' => 6, 'generic' => 1, 'graph' => 0, 'descr' => 'UnknownCard'], ['value' => 11, 'generic' => 1, 'graph' => 0, 'descr' => 'BrandMismatch'], diff --git a/tests/data/loop-telecom_loop-am3440-ccpb-a.json b/tests/data/loop-telecom_loop-am3440-ccpb-a.json index dcfcce3aad..9c12389ee9 100644 --- a/tests/data/loop-telecom_loop-am3440-ccpb-a.json +++ b/tests/data/loop-telecom_loop-am3440-ccpb-a.json @@ -1486,7 +1486,7 @@ "state_descr": "Unplugged", "state_draw_graph": 0, "state_value": 4, - "state_generic_value": 0 + "state_generic_value": 1 }, { "state_name": "ccCardState", @@ -2590,7 +2590,7 @@ "state_descr": "Unplugged", "state_draw_graph": 0, "state_value": 4, - "state_generic_value": 0 + "state_generic_value": 1 }, { "state_name": "ccCardState",