<%- include('partials/sidebar', { activePage: activePage || 'radius_settings', company }) %>
<%= t('admin.radius.title', 'Pengaturan RADIUS') %> & Monitoring
<%= company %> <%= (typeof session !== 'undefined' && session && session.isCashier) ? t('admin.role.cashier', 'Kasir') : t('admin.role.admin', 'Admin') %>
<% if (msg) { %>
<%= msg.text %>
<% } %>
Status RADIUS Server
<% if (radiusStatus.running) { %> Running <% } else { %> Stopped <% } %>
UDP Auth: <%= radiusStatus.authPort %> | Acct: <%= radiusStatus.acctPort %>
User RADIUS Online
<%= onlineSessions.length %>
Sesi Aktif Terhubung Saat Ini
NAS Router Client
<%= nasList.length %>
Router NAS Terdaftar di Server
Trafik RADIUS Hari Ini
<%= typeof todayTrafficMB !== 'undefined' ? todayTrafficMB : '0.0' %> MB
<%= typeof todayEvents !== 'undefined' ? todayEvents : 0 %> Log Accounting Hari Ini
Sesi Aktif RADIUS (Active Connections)
<% if (onlineSessions && onlineSessions.length > 0) { %>
<% } %>
<% if (onlineSessions && onlineSessions.length > 0) { %> <% onlineSessions.forEach(s => { %> <% const totalIn = ((s.input_gigawords || 0) * 4294967296) + (s.input_octets || 0); const totalOut = ((s.output_gigawords || 0) * 4294967296) + (s.output_octets || 0); const inMB = totalIn >= 1073741824 ? (totalIn / 1073741824).toFixed(2) + ' GB' : (totalIn / 1048576).toFixed(2) + ' MB'; const outMB = totalOut >= 1073741824 ? (totalOut / 1073741824).toFixed(2) + ' GB' : (totalOut / 1048576).toFixed(2) + ' MB'; const st = s.session_time || 0; const h = Math.floor(st / 3600); const m = Math.floor((st % 3600) / 60); const sec = st % 60; const stStr = `${String(h).padStart(2,'0')}:${String(m).padStart(2,'0')}:${String(sec).padStart(2,'0')}`; %> <% }); %> <% } else { %> <% } %>
Username <%= t('iso.cust_name','Nama Pelanggan') %> Framed IP NAS IP Upload (In) Download (Out) Durasi Sesi Waktu Update <%= t('common.actions','Aksi') %>
<%= s.username %> <%= s.customer_name || '-' %> <%= s.framed_ip || '-' %> <%= s.nas_ip || '-' %> <%= inMB %> <%= outMB %> <%= stStr %> <%= s.updated_at %>
Belum ada sesi online RADIUS yang terhubung.
Tambah NAS Client RADIUS
Edit NAS Client RADIUS