integrated with unifi api
This commit is contained in:
66
config.json
66
config.json
@ -1,32 +1,74 @@
|
||||
{
|
||||
"unifi": {
|
||||
"controller": "https://10.10.10.1",
|
||||
"api_key": "kyPfIsAVie3hwMD4Bc1MjAu8N7HVPIb8",
|
||||
"site_id": "default"
|
||||
},
|
||||
"devices": [
|
||||
{
|
||||
"name": "UniFi Dream Machine Pro",
|
||||
"ip": "192.168.1.1",
|
||||
"ip": "10.10.10.1",
|
||||
"type": "router",
|
||||
"connection_type": "copper",
|
||||
"critical": true,
|
||||
"device_id": "udm-pro-id"
|
||||
},
|
||||
{
|
||||
"name": "USP PDU Pro",
|
||||
"ip": "10.10.10.107",
|
||||
"type": "pdu",
|
||||
"connection_type": "copper",
|
||||
"critical": true
|
||||
},
|
||||
{
|
||||
"name": "USW Aggregation",
|
||||
"ip": "10.10.10.238",
|
||||
"type": "switch",
|
||||
"connection_type": "fiber",
|
||||
"critical": true
|
||||
},
|
||||
{
|
||||
"name": "USW Flex Mini",
|
||||
"ip": "10.10.10.169",
|
||||
"type": "switch",
|
||||
"connection_type": "copper"
|
||||
},
|
||||
{
|
||||
"name": "UniFi Switch 24 PoE",
|
||||
"ip": "192.168.1.2",
|
||||
"name": "USW Pro 24 PoE",
|
||||
"ip": "10.10.10.139",
|
||||
"type": "switch",
|
||||
"connection_type": "fiber"
|
||||
"connection_type": "fiber",
|
||||
"critical": true,
|
||||
"device_id": "usw-24-poe-id"
|
||||
},
|
||||
{
|
||||
"name": "AP Living Room",
|
||||
"ip": "192.168.1.10",
|
||||
"type": "access_point"
|
||||
"name": "U6 Lite",
|
||||
"ip": "10.10.10.154",
|
||||
"type": "access_point",
|
||||
"connection_type": "copper"
|
||||
},
|
||||
{
|
||||
"name": "AP Office",
|
||||
"ip": "192.168.1.11",
|
||||
"type": "access_point"
|
||||
"name": "USP Strip",
|
||||
"ip": "10.10.10.243",
|
||||
"type": "pdu",
|
||||
"connection_type": "copper"
|
||||
}
|
||||
],
|
||||
"check_interval": 30,
|
||||
"webhook_url": "https://your-webhook-url",
|
||||
"alert_thresholds": {
|
||||
"fiber": {
|
||||
"optical_power_min": -10,
|
||||
"optical_power_max": 0,
|
||||
"error_rate_threshold": 0.001
|
||||
},
|
||||
"copper": {
|
||||
"signal_quality_min": 70,
|
||||
"max_cable_length": 100
|
||||
}
|
||||
},
|
||||
"troubleshooting": {
|
||||
"fiber_tests": ["optical_power", "light_levels", "error_rate"],
|
||||
"copper_tests": ["cable_length", "crosstalk", "signal_quality"]
|
||||
"fiber_tests": ["optical_power", "light_levels", "error_rate", "sfp_diagnostics"],
|
||||
"copper_tests": ["cable_length", "crosstalk", "signal_quality", "poe_status"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user