Oids hinzugefügt #2

Merged
blaerf merged 5 commits from Snmp-Update into main 2025-11-28 05:49:41 +00:00
Showing only changes of commit 9ea6c7a528 - Show all commits

View File

@ -39,7 +39,7 @@ class SnmpServerStatusService
public function getServerStatus(): array
{
// --- 1. Konfiguration auslesen ---
$host = (string)($this->config['host'] ?? 'itfa-proj-srv.itfa-proj-dom.local');
$host = (string)($this->config['host'] ?? '127.0.0.1');
blaerf marked this conversation as resolved Outdated

Hier sollte man als Fallback vielleicht auch die loopback Adresse angeben. Gab ja Probleme mit der Namensauflösung.

Hier sollte man als Fallback vielleicht auch die loopback Adresse angeben. Gab ja Probleme mit der Namensauflösung.
$community = (string)($this->config['community'] ?? '');
$oids = $this->config['oids'] ?? [];
$timeout = (int)($this->config['timeout'] ?? 1) * 1_000_000; // in Mikrosekunden