509 lines
12 KiB
JSON
509 lines
12 KiB
JSON
{
|
|
"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
|
|
} |