From e3691c35f2935c5247138f85b7fc167d6cee25e0 Mon Sep 17 00:00:00 2001 From: blaerf Date: Mon, 17 Nov 2025 06:34:54 +0100 Subject: [PATCH] =?UTF-8?q?SNMP=20Teil=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/config/config.php b/config/config.php index d0dbd22..3578ba1 100644 --- a/config/config.php +++ b/config/config.php @@ -7,7 +7,7 @@ declare(strict_types=1); return [ 'ldap' => [ // LDAP-URL des Domain Controllers - 'server' => 'ITFA-PROJ-SRV.ITFA-PROJ-DOM.local', + 'server' => 'itfa-proj-srv.itfa-proj-dom.local', 'port' => 389, // wird an den Benutzernamen angehängt (z.B. "admin" + "@ITFA-PROJ-DOM.local") @@ -24,4 +24,19 @@ return [ // Session-Key unter dem der eingeloggte Admin gespeichert wird 'session_key_user' => 'admin_user', ], + + 'snmp' => [ + 'host' => 'itfa-proj-srv.itfa-proj-dom.local', + 'community' => 'public_ro', // später: sinnvoller Community-String + 'timeout' => 2, // Sekunden + 'retries' => 1, // Anzahl Wiederholungen + + // Platzhalter für OIDs – später können wir die auf echte Werte setzen + 'oids' => [ + 'uptime' => '1.3.6.1.2.1.1.3.0', + 'cpu_usage' => '1.3.6.1.4.1.example.cpu.0', + 'memory_usage' => '1.3.6.1.4.1.example.memory.0', + 'disk_c' => '1.3.6.1.4.1.example.diskc.0', + ], + ], ];