release: v1.0.0 - Zabbix GPON API distribuição cliente
This commit is contained in:
@@ -0,0 +1,714 @@
|
||||
{
|
||||
"annotations": {
|
||||
"list": []
|
||||
},
|
||||
"editable": true,
|
||||
"fiscalYearStartMonth": 0,
|
||||
"graphTooltip": 1,
|
||||
"id": null,
|
||||
"links": [],
|
||||
"liveNow": false,
|
||||
"panels": [
|
||||
{
|
||||
"collapsed": false,
|
||||
"gridPos": {
|
||||
"h": 1,
|
||||
"w": 24,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"id": 100,
|
||||
"title": "\ud83d\udcca Indicadores Operacionais de Rede GPON (NOC)",
|
||||
"type": "row"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "blue",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 4,
|
||||
"w": 4,
|
||||
"x": 0,
|
||||
"y": 1
|
||||
},
|
||||
"id": 1,
|
||||
"options": {
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "center",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"pluginVersion": "10.0.0",
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT COUNT(*) as value FROM onus_atual;",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Total de ONUs",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 4,
|
||||
"w": 4,
|
||||
"x": 4,
|
||||
"y": 1
|
||||
},
|
||||
"id": 2,
|
||||
"options": {
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "center",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT COUNT(*) as value FROM onus_atual WHERE status = 'online';",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "ONUs Online",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 4,
|
||||
"w": 4,
|
||||
"x": 8,
|
||||
"y": 1
|
||||
},
|
||||
"id": 3,
|
||||
"options": {
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "center",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT COUNT(*) as value FROM onus_atual WHERE status IN ('offline', 'los');",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "ONUs Offline / LOS",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "orange",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 10
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 4,
|
||||
"w": 4,
|
||||
"x": 12,
|
||||
"y": 1
|
||||
},
|
||||
"id": 4,
|
||||
"options": {
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "center",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT COUNT(*) as value FROM onus_atual WHERE status = 'online' AND rx_dbm IS NOT NULL AND (rx_dbm < -27.00 OR rx_dbm > -8.00);",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Sinal Cr\u00edtico (< -27 dBm)",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "yellow",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 4,
|
||||
"w": 4,
|
||||
"x": 16,
|
||||
"y": 1
|
||||
},
|
||||
"id": 5,
|
||||
"options": {
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "center",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT COUNT(*) as value FROM onus_atual WHERE status = 'online' AND rx_dbm IS NOT NULL AND rx_dbm BETWEEN -27.00 AND -25.01;",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Sinal Alerta (-25 a -27 dBm)",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "purple",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 4,
|
||||
"w": 4,
|
||||
"x": 20,
|
||||
"y": 1
|
||||
},
|
||||
"id": 6,
|
||||
"options": {
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "center",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT COUNT(*) as value FROM bng_sessoes_atual;",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Sess\u00f5es BNG Ativas",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"collapsed": false,
|
||||
"gridPos": {
|
||||
"h": 1,
|
||||
"w": 24,
|
||||
"x": 0,
|
||||
"y": 5
|
||||
},
|
||||
"id": 101,
|
||||
"title": "\ud83d\udcc8 Distribui\u00e7\u00e3o e Sa\u00fade da Planta \u00d3ptica",
|
||||
"type": "row"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
},
|
||||
"mappings": []
|
||||
}
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 8,
|
||||
"x": 0,
|
||||
"y": 6
|
||||
},
|
||||
"id": 7,
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "table",
|
||||
"placement": "right",
|
||||
"values": [
|
||||
"value",
|
||||
"percent"
|
||||
]
|
||||
},
|
||||
"pieType": "donut",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "single"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT status as metric, COUNT(*) as value FROM onus_atual GROUP BY status;",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Status Operacional das ONUs",
|
||||
"type": "piechart"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
},
|
||||
"mappings": []
|
||||
}
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 16,
|
||||
"x": 8,
|
||||
"y": 6
|
||||
},
|
||||
"id": 8,
|
||||
"options": {
|
||||
"displayLabels": [
|
||||
"value"
|
||||
],
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom"
|
||||
},
|
||||
"orientation": "horizontal",
|
||||
"tooltip": {
|
||||
"mode": "single"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT \n CASE \n WHEN rx_dbm IS NULL OR status != 'online' THEN 'Offline / Sem Leitura'\n WHEN rx_dbm > -15.00 THEN 'Sinal Excessivo (> -15 dBm)'\n WHEN rx_dbm BETWEEN -24.00 AND -15.00 THEN 'Excelente (-15 a -24 dBm)'\n WHEN rx_dbm BETWEEN -27.00 AND -24.01 THEN 'Atenuado / Alerta (-24 a -27 dBm)'\n WHEN rx_dbm < -27.00 THEN 'Cr\u00edtico (< -27 dBm)'\n END as metric,\n COUNT(*) as value\nFROM onus_atual\nGROUP BY metric\nORDER BY value DESC;",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Faixas de Pot\u00eancia \u00d3ptica Rx das ONUs Online",
|
||||
"type": "barchart"
|
||||
},
|
||||
{
|
||||
"collapsed": false,
|
||||
"gridPos": {
|
||||
"h": 1,
|
||||
"w": 24,
|
||||
"x": 0,
|
||||
"y": 14
|
||||
},
|
||||
"id": 102,
|
||||
"title": "\u26a0\ufe0f Fila de Atendimento NOC: ONUs com Sinal Atenuado / Cr\u00edtico",
|
||||
"type": "row"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
},
|
||||
"custom": {
|
||||
"align": "auto",
|
||||
"cellOptions": {
|
||||
"type": "auto"
|
||||
},
|
||||
"inspect": false
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "yellow",
|
||||
"value": -27
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": -24
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": -8
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"matcher": {
|
||||
"id": "byName",
|
||||
"options": "rx_dbm"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"id": "custom.cellOptions",
|
||||
"value": {
|
||||
"mode": "gradient",
|
||||
"type": "color-background"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "unit",
|
||||
"value": "dBm"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": {
|
||||
"id": "byName",
|
||||
"options": "distancia_metros"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"id": "unit",
|
||||
"value": "lengthm"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 10,
|
||||
"w": 24,
|
||||
"x": 0,
|
||||
"y": 15
|
||||
},
|
||||
"id": 9,
|
||||
"options": {
|
||||
"footer": {
|
||||
"countRows": false,
|
||||
"enablePagination": true,
|
||||
"fields": "",
|
||||
"reducer": [
|
||||
"sum"
|
||||
],
|
||||
"show": true
|
||||
},
|
||||
"showHeader": true,
|
||||
"sortBy": [
|
||||
{
|
||||
"desc": false,
|
||||
"displayName": "rx_dbm"
|
||||
}
|
||||
]
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT \n d.nome as olt,\n CONCAT(o.slot, '/', o.pon, ':', o.onu_id) as porta_pon,\n o.serial,\n o.onu_nome as cliente,\n o.modelo,\n o.status,\n o.rx_dbm,\n o.tx_dbm,\n o.distancia_metros,\n o.atualizado_em as ultima_leitura\nFROM onus_atual o\nJOIN dispositivos_rede d ON d.id = o.dispositivo_id\nWHERE o.status = 'online' AND o.rx_dbm IS NOT NULL\nORDER BY o.rx_dbm ASC\nLIMIT 50;",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Top 50 ONUs com Pior Pot\u00eancia \u00d3ptica Rx (Ordem Cr\u00edtica)",
|
||||
"type": "table"
|
||||
},
|
||||
{
|
||||
"collapsed": false,
|
||||
"gridPos": {
|
||||
"h": 1,
|
||||
"w": 24,
|
||||
"x": 0,
|
||||
"y": 25
|
||||
},
|
||||
"id": 103,
|
||||
"title": "\ud83d\udda5\ufe0f Capacidade e Sa\u00fade por OLT",
|
||||
"type": "row"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
},
|
||||
"custom": {
|
||||
"align": "auto",
|
||||
"cellOptions": {
|
||||
"type": "auto"
|
||||
}
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "yellow",
|
||||
"value": 85
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": 95
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"matcher": {
|
||||
"id": "byName",
|
||||
"options": "taxa_online_pct"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"id": "custom.cellOptions",
|
||||
"value": {
|
||||
"mode": "basic",
|
||||
"type": "color-background"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "unit",
|
||||
"value": "percent"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 24,
|
||||
"x": 0,
|
||||
"y": 26
|
||||
},
|
||||
"id": 10,
|
||||
"options": {
|
||||
"footer": {
|
||||
"enablePagination": true,
|
||||
"show": true
|
||||
},
|
||||
"showHeader": true,
|
||||
"sortBy": [
|
||||
{
|
||||
"desc": true,
|
||||
"displayName": "total_onus"
|
||||
}
|
||||
]
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT \n d.nome as olt,\n d.ip,\n d.fabricante,\n d.modelo,\n COUNT(o.id) as total_onus,\n SUM(CASE WHEN o.status = 'online' THEN 1 ELSE 0 END) as online,\n SUM(CASE WHEN o.status != 'online' THEN 1 ELSE 0 END) as offline,\n ROUND(SUM(CASE WHEN o.status = 'online' THEN 1 ELSE 0 END) / NULLIF(COUNT(o.id), 0) * 100, 1) as taxa_online_pct,\n d.ultima_coleta\nFROM dispositivos_rede d\nLEFT JOIN onus_atual o ON o.dispositivo_id = d.id\nWHERE d.tipo = 'OLT'\nGROUP BY d.id, d.nome, d.ip, d.fabricante, d.modelo, d.ultima_coleta\nORDER BY total_onus DESC;",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Vis\u00e3o Geral das OLTs Monitoradas",
|
||||
"type": "table"
|
||||
}
|
||||
],
|
||||
"refresh": "30s",
|
||||
"schemaVersion": 38,
|
||||
"style": "dark",
|
||||
"tags": [
|
||||
"gpon",
|
||||
"noc",
|
||||
"telemetria",
|
||||
"olt"
|
||||
],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-24h",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {
|
||||
"refresh_intervals": [
|
||||
"10s",
|
||||
"30s",
|
||||
"1m",
|
||||
"5m"
|
||||
]
|
||||
},
|
||||
"timezone": "browser",
|
||||
"title": "GPON NOC Overview - Zabbix GPON API",
|
||||
"uid": "gpon-noc-overview",
|
||||
"version": 1
|
||||
}
|
||||
@@ -0,0 +1,509 @@
|
||||
{
|
||||
"annotations": {
|
||||
"list": []
|
||||
},
|
||||
"editable": true,
|
||||
"fiscalYearStartMonth": 0,
|
||||
"graphTooltip": 1,
|
||||
"id": null,
|
||||
"links": [],
|
||||
"liveNow": false,
|
||||
"panels": [
|
||||
{
|
||||
"collapsed": false,
|
||||
"gridPos": {
|
||||
"h": 1,
|
||||
"w": 24,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"id": 200,
|
||||
"title": "\ud83d\udc64 Diagn\u00f3stico 360\u00b0 do Assinante Selecionado",
|
||||
"type": "row"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"options": {
|
||||
"online": {
|
||||
"color": "green",
|
||||
"text": "ONLINE"
|
||||
},
|
||||
"offline": {
|
||||
"color": "red",
|
||||
"text": "OFFLINE"
|
||||
},
|
||||
"los": {
|
||||
"color": "red",
|
||||
"text": "LOS (FIBRA ROMPIDA)"
|
||||
},
|
||||
"power_off": {
|
||||
"color": "orange",
|
||||
"text": "DESLIGADO"
|
||||
}
|
||||
},
|
||||
"type": "value"
|
||||
}
|
||||
],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "blue",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 4,
|
||||
"w": 4,
|
||||
"x": 0,
|
||||
"y": 1
|
||||
},
|
||||
"id": 21,
|
||||
"options": {
|
||||
"colorMode": "background",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "center",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT status as value FROM onus_atual WHERE serial = '$serial' OR onu_nome = '$serial' LIMIT 1;",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Status \u00d3ptico da ONU",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
},
|
||||
"mappings": [],
|
||||
"max": -10,
|
||||
"min": -35,
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "yellow",
|
||||
"value": -27
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": -24
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": -14
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "dBm"
|
||||
}
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 4,
|
||||
"w": 5,
|
||||
"x": 4,
|
||||
"y": 1
|
||||
},
|
||||
"id": 22,
|
||||
"options": {
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"showThresholdLabels": true,
|
||||
"showThresholdMarkers": true
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT rx_dbm as value FROM onus_atual WHERE serial = '$serial' OR onu_nome = '$serial' LIMIT 1;",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Pot\u00eancia \u00d3ptica Rx Atual",
|
||||
"type": "gauge"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "blue",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "dBm"
|
||||
}
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 4,
|
||||
"w": 4,
|
||||
"x": 9,
|
||||
"y": 1
|
||||
},
|
||||
"id": 23,
|
||||
"options": {
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "center",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT tx_dbm as value FROM onus_atual WHERE serial = '$serial' OR onu_nome = '$serial' LIMIT 1;",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Pot\u00eancia \u00d3ptica Tx Atual",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "purple",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "lengthm"
|
||||
}
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 4,
|
||||
"w": 4,
|
||||
"x": 13,
|
||||
"y": 1
|
||||
},
|
||||
"id": 24,
|
||||
"options": {
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "center",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT distancia_metros as value FROM onus_atual WHERE serial = '$serial' OR onu_nome = '$serial' LIMIT 1;",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Dist\u00e2ncia Estimada",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 4,
|
||||
"w": 7,
|
||||
"x": 17,
|
||||
"y": 1
|
||||
},
|
||||
"id": 25,
|
||||
"options": {
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "center",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT \n CONCAT(FLOOR(uptime_segundos / 86400), 'd ', FLOOR(MOD(uptime_segundos, 86400) / 3600), 'h ', FLOOR(MOD(uptime_segundos, 3600) / 60), 'm') as value\nFROM bng_sessoes_atual\nWHERE username = '$serial' OR username = (SELECT onu_nome FROM onus_atual WHERE serial = '$serial' LIMIT 1)\nLIMIT 1;",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Tempo de Conex\u00e3o BNG (Uptime)",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"collapsed": false,
|
||||
"gridPos": {
|
||||
"h": 1,
|
||||
"w": 24,
|
||||
"x": 0,
|
||||
"y": 5
|
||||
},
|
||||
"id": 201,
|
||||
"title": "\ud83d\udd17 Dados Correlacionados OLT & BNG",
|
||||
"type": "row"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {
|
||||
"align": "auto"
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 5,
|
||||
"w": 24,
|
||||
"x": 0,
|
||||
"y": 6
|
||||
},
|
||||
"id": 26,
|
||||
"options": {
|
||||
"showHeader": true
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "table",
|
||||
"rawSql": "SELECT \n d.nome as olt,\n CONCAT(o.slot, '/', o.pon, ':', o.onu_id) as pon,\n o.serial as onu_serial,\n o.onu_nome as login_identificado,\n o.modelo as onu_modelo,\n b.username as pppoe_login,\n b.ip_cliente,\n b.mac_cliente,\n b.vlan_id,\n b.interface as bng_interface,\n b_dev.nome as bng_equipamento\nFROM onus_atual o\nJOIN dispositivos_rede d ON d.id = o.dispositivo_id\nLEFT JOIN bng_sessoes_atual b ON (b.username = o.onu_nome OR b.username = o.serial)\nLEFT JOIN dispositivos_rede b_dev ON b_dev.id = b.bng_id\nWHERE o.serial = '$serial' OR o.onu_nome = '$serial'\nLIMIT 1;",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Vis\u00e3o Correlacionada 360\u00b0 do Assinante",
|
||||
"type": "table"
|
||||
},
|
||||
{
|
||||
"collapsed": false,
|
||||
"gridPos": {
|
||||
"h": 1,
|
||||
"w": 24,
|
||||
"x": 0,
|
||||
"y": 11
|
||||
},
|
||||
"id": 202,
|
||||
"title": "\ud83d\udcc8 Hist\u00f3rico de Estabilidade e Degrada\u00e7\u00e3o de Sinal (60-90 dias)",
|
||||
"type": "row"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
},
|
||||
"custom": {
|
||||
"axisBorderShow": false,
|
||||
"axisCenteredZero": false,
|
||||
"axisColorMode": "text",
|
||||
"axisLabel": "Pot\u00eancia \u00d3ptica (dBm)",
|
||||
"drawStyle": "line",
|
||||
"fillOpacity": 15,
|
||||
"lineInterpolation": "smooth",
|
||||
"lineWidth": 2,
|
||||
"pointSize": 5,
|
||||
"showPoints": "auto",
|
||||
"spanNulls": true,
|
||||
"thresholdsStyle": {
|
||||
"mode": "line+area"
|
||||
}
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "yellow",
|
||||
"value": -27
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": -24
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "dBm"
|
||||
}
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 10,
|
||||
"w": 24,
|
||||
"x": 0,
|
||||
"y": 12
|
||||
},
|
||||
"id": 27,
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom"
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "multi",
|
||||
"sort": "none"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"format": "time_series",
|
||||
"rawSql": "SELECT \n UNIX_TIMESTAMP(coletado_em) as time_sec,\n rx_dbm as value,\n 'Sinal \u00d3ptico Rx' as metric\nFROM onus_historico_sinal\nWHERE (serial_onu = '$serial' OR onu_nome = '$serial')\n AND $__timeFilter(coletado_em)\nORDER BY coletado_em ASC;",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Evolu\u00e7\u00e3o do Sinal \u00d3ptico Rx (dBm) ao Longo do Tempo",
|
||||
"type": "timeseries"
|
||||
}
|
||||
],
|
||||
"refresh": "1m",
|
||||
"schemaVersion": 38,
|
||||
"style": "dark",
|
||||
"tags": [
|
||||
"gpon",
|
||||
"diagnostico",
|
||||
"assinante",
|
||||
"sinal"
|
||||
],
|
||||
"templating": {
|
||||
"list": [
|
||||
{
|
||||
"current": {
|
||||
"selected": false,
|
||||
"value": ""
|
||||
},
|
||||
"datasource": {
|
||||
"type": "mysql",
|
||||
"uid": "zbx-gpon-api"
|
||||
},
|
||||
"definition": "SELECT DISTINCT serial FROM onus_atual ORDER BY serial LIMIT 100;",
|
||||
"hide": 0,
|
||||
"includeAll": false,
|
||||
"label": "Assinante / Serial da ONU",
|
||||
"multi": false,
|
||||
"name": "serial",
|
||||
"options": [],
|
||||
"query": "SELECT DISTINCT serial FROM onus_atual ORDER BY serial LIMIT 100;",
|
||||
"refresh": 1,
|
||||
"regex": "",
|
||||
"skipUrlSync": false,
|
||||
"sort": 1,
|
||||
"type": "query"
|
||||
}
|
||||
]
|
||||
},
|
||||
"time": {
|
||||
"from": "now-7d",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {
|
||||
"refresh_intervals": [
|
||||
"30s",
|
||||
"1m",
|
||||
"5m"
|
||||
]
|
||||
},
|
||||
"timezone": "browser",
|
||||
"title": "Diagn\u00f3stico \u00d3ptico 360\u00b0 do Assinante - Zabbix GPON API",
|
||||
"uid": "gpon-subscriber-360",
|
||||
"version": 1
|
||||
}
|
||||
Reference in New Issue
Block a user