Refactor Cisco MAC Monitor: Implement HTTPS service and restructure code

- Removed old requirements.txt and test_new_format.py files.
- Added new src/cisco_mac_http_service.py to implement an HTTPS service for MAC monitoring.
- Introduced src/cisco_mac_monitor.py for the main MAC monitoring functionality.
- Created new requirements.txt for dependencies.
- Added example usage documentation in Docs/example.
- Updated test_new_format.py to validate new JSON output format.
This commit is contained in:
Xavier Rodriguez
2026-03-09 15:26:51 +01:00
parent efbfa19904
commit 54ce126e20
8 changed files with 15 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
curl -k -X POST "https://127.0.0.1:8443/mac-monitor" \
-H "Content-Type: application/json" \
-d '{
"host": "10.10.0.1",
"username": "ZabbixROT2c",
"password": "xxxxxxxxxx",
"port": 22,
"timeout": 30
}'