From c97e9f4f270d2d7bc76ef7748f86c08b436ed503 Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Sat, 11 Nov 2023 03:16:20 +0000 Subject: [PATCH] add windows av/update/firewall to columns (#5534) --- views/default.handlebars | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/views/default.handlebars b/views/default.handlebars index 8551e7f0..69ef28c4 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -3969,6 +3969,9 @@ x += '
'; x += '
'; x += '
'; + x += '
'; + x += '
'; + x += '
'; x += '
'; x += '
'; x += '
'; @@ -3989,6 +3992,9 @@ if (Q('d2c8').checked) { cols.push('agtype'); } if (Q('d2c9').checked) { cols.push('agver'); } if (Q('d2c10').checked) { cols.push('tags'); } + if (Q('d2c11').checked) { cols.push('windowsav'); } + if (Q('d2c12').checked) { cols.push('windowsupdate'); } + if (Q('d2c13').checked) { cols.push('windowsfirewall'); } deviceViewSettings.devsCols = cols; putstore('_deviceViewSettings', JSON.stringify(deviceViewSettings)); mainUpdate(4); @@ -4426,6 +4432,9 @@ if (deviceViewSettings.devsCols.indexOf('agver') >= 0) { colums += '' + "Agent Version"; } if (deviceViewSettings.devsCols.indexOf('os') >= 0) { colums += '' + "OS"; } if (deviceViewSettings.devsCols.indexOf('tags') >= 0) { colums += '' + "Tags"; } + if (deviceViewSettings.devsCols.indexOf('windowsav') >= 0) { colums += '' + "Windows AV"; } + if (deviceViewSettings.devsCols.indexOf('windowsupdate') >= 0) { colums += '' + "Windows Update"; } + if (deviceViewSettings.devsCols.indexOf('windowsfirewall') >= 0) { colums += '' + "Windows Firewall"; } if (deviceViewSettings.devsCols.indexOf('links') >= 0) { colums += '' + "Links"; } if (deviceViewSettings.devsCols.indexOf('user') >= 0) { colums += '' + "User"; } if (deviceViewSettings.devsCols.indexOf('ip') >= 0) { colums += '' + "Address"; } @@ -4729,6 +4738,15 @@ } r += '' + groupingTags + ''; } + if (deviceViewSettings.devsCols.indexOf('windowsav') >= 0) { // Windows AV + r += '' + (node.wsc ? (node.wsc.antiVirus == 'OK' ? "OK" : "OK") : ""); + } + if (deviceViewSettings.devsCols.indexOf('windowsupdate') >= 0) {// Windows Update + r += '' + (node.wsc ? (node.wsc.autoUpdate == 'OK' ? "OK" : "OK") : ""); + } + if (deviceViewSettings.devsCols.indexOf('windowsfirewall') >= 0) { // Windows Firewall + r += '' + (node.wsc ? (node.wsc.firewall == 'OK' ? "OK" : "OK") : ""); + } if (deviceViewSettings.devsCols.indexOf('links') >= 0) { r += '' + getShortRouterLinks(node); } // Links if (deviceViewSettings.devsCols.indexOf('user') >= 0) { r += '' + getUserShortStr(node); } // User if (deviceViewSettings.devsCols.indexOf('ip') >= 0) { var ip = ''; if (node.mtype == 3) { ip = node.host; } else if (node.ip) { ip = node.ip; } r += '' + ip; } // IP address