- 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.
9 lines
251 B
Plaintext
9 lines
251 B
Plaintext
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
|
|
}' |