PHP_AdminTool_Projekt/config/config.php
tg95 f5f2ba5b0f Oids hinzugefügt (#2)
Oids in der Config hinzugefügt und den Snmpcontroller angepasst um die Daten des Servers auszulesen. Jens hat das ganze mit überprüft sollte so stimmen

Co-authored-by: GraegelTh <165781231+GraegelTh@users.noreply.github.com>
Co-authored-by: blaerf <jens.eidecker@tn.eckert-bfw.de>
Co-authored-by: blaerf <blaerf@gmx.de>
Reviewed-on: https://git.eckertplayground.de/taarly/PHP_AdminTool_Projekt/pulls/2
Reviewed-by: blaerf <jens.eidecker@tn.eckert-bfw.de>
Co-authored-by: tg95 <tg95@noreply.localhost>
Co-committed-by: tg95 <tg95@noreply.localhost>
2025-11-28 05:49:40 +00:00

53 lines
1.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/** Typsicherheit aktivieren
* var = "1" != var = 1
*/
declare(strict_types=1);
return [
'ldap' => [
// LDAP-URL des Domain Controllers
'server' => 'itfa-proj-srv.itfa-proj-dom.local',
'port' => 389,
// wird an den Benutzernamen angehängt (z.B. "admin" + "@ITFA-PROJ-DOM.local")
'domain_suffix' => '@ITFA-PROJ-DOM.local',
// Base DN der Domäne
'base_dn' => 'DC=ITFA-PROJ-DOM,DC=local',
// Optional: Timeout in Sekunden
'timeout' => 5,
'bind_dn' => 'CN=Service IIS,OU=WebAppUsers,DC=ITFA-PROJ-DOM,DC=local',
'bind_password' => '$7aE!R$l$D!p1Q9l458K8@O6&',
],
'security' => [
// Session-Key unter dem der eingeloggte Admin gespeichert wird
'session_key_user' => 'admin_user',
],
'snmp' => [
'host' => '127.0.0.1',
'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 pro Kern
'cpu_table' => '1.3.6.1.2.1.25.3.3.1.2',
// Memory
'mem_size' => '1.3.6.1.2.1.25.2.2.0',
'storage_descr' => '1.3.6.1.2.1.25.2.3.1.3',
'storage_units' => '1.3.6.1.2.1.25.2.3.1.4',
'storage_size' => '1.3.6.1.2.1.25.2.3.1.5',
'storage_used' => '1.3.6.1.2.1.25.2.3.1.6',
],
],
];