Here is the sql query for the stats for LT11 Native patching, copy and paste into sqlyog and lets see what it says.
Code: Select all
SELECT c.computerid as ID,IF(c.LastContact > date_add(now(),interval -5 minute),'Yes','No') As `Online`,c.NAME AS Name,l.NAME AS Location,b.NAME AS Client,IFNULL(s1.installed, 0) AS installed,IFNULL(s2.missing, 0) AS missing ,IFNULL(s3.total, 0) AS total ,IFNULL(s1.installed / s3.total * 100, 0) AS percent_installed, c.OS FROM computers c JOIN clients b ON c.clientid = b.clientid JOIN locations l ON c.locationid = l.locationid LEFT JOIN (SELECT COUNT(hotfix.computerid) AS installed,hotfix.computerid FROM hotfix WHERE hotfix.approved = 2 AND hotfix.installed = 1 GROUP BY hotfix.computerid) AS s1 ON c.computerid = s1.computerid LEFT JOIN (SELECT COUNT(hotfix.computerid) AS missing,hotfix.computerid FROM hotfix WHERE hotfix.approved = 2 AND hotfix.installed = 0 GROUP BY hotfix.computerid ) AS s2 ON c.computerid = s2.computerid LEFT JOIN (SELECT COUNT(hotfix.computerid) AS total,hotfix.computerid FROM hotfix WHERE hotfix.approved = 2 GROUP BY hotfix.computerid) AS s3 ON c.computerid = s3.computerid Where b.ClientID IN (Select ClientID FROM `plugin_sw_patch_remedy_config` Where MasterSwitch = 1) AND c.ComputerID NOT IN (SELECT ComputerID FROM `plugin_sw_patch_remedy_client_exclude`) and c.OS LIKE '%windows%' HAVING 1 ORDER BY `Client` DESC LIMIT 0,5000