<%= t('admin.monitoring.system_health', 'Status Kesehatan Sistem') %>
<%= healthStatus.status.toUpperCase() %>
Update terakhir: <%= new Date(healthStatus.timestamp).toLocaleString('id-ID') %>
<% if (healthStatus.issues.length > 0 || healthStatus.warnings.length > 0) { %>
<% if (healthStatus.issues.length > 0) { %>
Issues (<%= healthStatus.issues.length %>)
<% healthStatus.issues.forEach(issue => {
if (issue) { %>
<%= issue %>
<% } }) %>
<% } %>
<% if (healthStatus.warnings.length > 0) { %>
Warnings (<%= healthStatus.warnings.length %>)
<% healthStatus.warnings.forEach(warning => {
if (warning) { %>
<%= warning %>
<% } }) %>
<% } %>
<% } %>
Metrik Sistem
CPU Usage
<%= healthStatus.metrics.system.cpu.usage %>%
<%= healthStatus.metrics.system.cpu.cores %> cores • <%= healthStatus.metrics.system.cpu.model %>
Memory Usage
<%= healthStatus.metrics.system.memory.percentage %>%
<%= healthStatus.metrics.system.memory.used %> / <%= healthStatus.metrics.system.memory.total %>
Load Average (1 min)
<%= healthStatus.metrics.system.loadAverage['1min'] %>
5m: <%= healthStatus.metrics.system.loadAverage['5min'] %> • 15m: <%= healthStatus.metrics.system.loadAverage['15min'] %>
Disk Usage
<%= healthStatus.metrics.disk.percentage %>
Used: <%= healthStatus.metrics.disk.used %> / <%= healthStatus.metrics.disk.total %>
Database Info
| Size |
<%= healthStatus.metrics.database.size %> |
| Tables |
<%= healthStatus.metrics.database.totalTables %> |
| Path |
<%= healthStatus.metrics.database.path %> |
| Table |
Records |
<% if (healthStatus.metrics.database.tables && typeof healthStatus.metrics.database.tables === 'object' && healthStatus.metrics.database.tables !== null) {
Object.keys(healthStatus.metrics.database.tables).forEach(tableName => { %>
| <%= tableName %> |
<%= healthStatus.metrics.database.tables[tableName] %> |
<% }) } else { %>
| No table data available |
<% } %>
Ringkasan Performa (10 Sample Terakhir)
Rata-rata
| CPU |
<%= performanceSummary.averages.cpu %>% |
| Memory |
<%= performanceSummary.averages.memory %>% |
| Load (1m) |
<%= performanceSummary.averages.load1 %> |
Maximum
| CPU |
<%= performanceSummary.maximums.cpu %>% |
| Memory |
<%= performanceSummary.maximums.memory %>% |
| Load (1m) |
<%= performanceSummary.maximums.load1 %> |
<%= t('pwa.field.period','Periode') %>
| Start |
<%= new Date(performanceSummary.period.start).toLocaleString('id-ID') %> |
| End |
<%= new Date(performanceSummary.period.end).toLocaleString('id-ID') %> |
| Samples |
<%= performanceSummary.period.samples %> |
Diagnosa Konektivitas
Dependensi Eksternal
| GenieACS |
<%= dependencies.genieacs.status.toUpperCase() %>
|
| WhatsApp Bot |
<%= dependencies.whatsapp.status.toUpperCase() %>
|
Router MikroTik
<% dependencies.mikrotik.forEach(r => { %>
| <%= r.name %> (<%= r.host %>) |
<%= r.status.toUpperCase() %>
|
<% }) %>
Log Error Terbaru
<% if (recentErrors.length === 0) { %>
Tidak ada log error terbaru
<% } else { %>
<% recentErrors.forEach(err => { %>
<%= err %>
<% }) %>
<% } %>