changed how zabbix syncs

This commit is contained in:
Luca Haid
2025-04-14 13:52:17 +02:00
parent 1dd0c1de3b
commit 7c30a356dc
6 changed files with 21 additions and 166 deletions
@@ -1,41 +0,0 @@
Vue.component('device-monitoring-congestion', {
//language=Vue
template: `
<tt-card>
<!--@formatter:off-->
<div>Letzte Abfragezeit: {{ window.moment.utc(window['TT_CONFIG']['CONGESTION_DATA']['fileCreateTime']).add(1, 'hours').format('DD.MM.YYYY HH:mm:ss') }}</div>
<!--@formatter:on-->
<tt-table :data="window['TT_CONFIG']['CONGESTION_DATA']['interfacesWithCongestion']" :config="DeviceTableConfig" excel-export>
<template v-slot:actions="{ row }">
<a :href="row.zabbixUrl" target="_blank"><i class="fas fa-chart-line" title="Zabbix"></i></a>
<a :href="row.grafanaUrl" target="_blank"><i class="fas fa-chart-bar" title="Grafana"></i></a>
</template>
<template v-slot:highestvaluetime="{ row }">
{{ window.moment.unix(row.highestValueTime).format('DD.MM.YYYY HH:mm:ss') }}
</template>
</tt-table>
</tt-card>
`,
data() {
return {
window: window,
DeviceTableConfig: {
key: 'DeviceMonitoringCongestion',
tableHeader: 'Device Monitoring - Congestion',
defaultPageSize: 25,
headers: [
{text: 'Hostname', key: 'hostname', sortable: true, class: 'text-nowrap'},
{text: 'IP-Adresse', key: 'ip', filter: 'search', class: 'text-center'},
{text: 'Name', key: 'name', filter: 'search', class: 'text-center'},
{text: 'Höchster Wert', key: 'highestValue', filter: 'search', class: 'text-center'},
{text: 'Zeit', key: 'highestValueTime', filter: 'search', class: 'text-center'},
{text: 'Aktionen', key: 'actions', class: 'text-center', sortable: false, filter: false, priority: 9},
],
},
}
}
})