From dc7554eb41d848ef3d26b8c143315c251743d64f Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 21 Jul 2026 13:53:09 +0200 Subject: [PATCH] fix: disable optional custom fields by default --- README.md | 2 +- config.example.json | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f88c0f7..184899a 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Der Agent löscht keine NetBox-Objekte. Site, Location und Device Role müssen b 3. Site/Location existieren, falls sie in `config.json` gesetzt sind. 4. Der API-Token darf Devices, Manufacturers, Device Types und Inventory Assets lesen, anlegen und ändern. -Optionale Custom Fields müssen für `dcim.Device` existieren. Die linke Seite in `custom_fields` ist der Agent-Schlüssel, die rechte Seite der NetBox-Custom-Field-Name. Nicht benötigte Einträge können entfernt werden. +Optionale Custom Fields müssen für `dcim.Device` existieren. Standardmäßig werden keine Custom Fields gesendet. Die linke Seite in `custom_fields` ist der Agent-Schlüssel, die rechte Seite der NetBox-Custom-Field-Name. Unterstützte Agent-Schlüssel sind `agent_version`, `windows_version`, `device_uuid` und `last_sync`. ## Konfiguration diff --git a/config.example.json b/config.example.json index fd3ce84..74cb9e7 100644 --- a/config.example.json +++ b/config.example.json @@ -11,10 +11,5 @@ "collect_software": true, "max_software_entries": 250, "tags": ["windows-agent"], - "custom_fields": { - "agent_version": "netbox_agent_version", - "windows_version": "windows_version", - "device_uuid": "device_uuid", - "last_sync": "agent_last_sync" - } + "custom_fields": {} }