fix: disable optional custom fields by default
Build Windows agent / build (win-arm64) (push) Has been cancelled
Build Windows agent / build (win-x64) (push) Has been cancelled

This commit is contained in:
2026-07-21 13:53:09 +02:00
parent a7b4ac297a
commit dc7554eb41
2 changed files with 2 additions and 7 deletions
+1 -1
View File
@@ -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. 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. 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 ## Konfiguration
+1 -6
View File
@@ -11,10 +11,5 @@
"collect_software": true, "collect_software": true,
"max_software_entries": 250, "max_software_entries": 250,
"tags": ["windows-agent"], "tags": ["windows-agent"],
"custom_fields": { "custom_fields": {}
"agent_version": "netbox_agent_version",
"windows_version": "windows_version",
"device_uuid": "device_uuid",
"last_sync": "agent_last_sync"
}
} }