Recently my organization has had some issues with package servers failing to download packages or the packages backing up because of agent throttling. To be more proactive towards these sorts of issues, I've come up with a method to alert the admin if a package server has more than 5 packages in the "not ready" state. Follow the instructions below to set this up.
SELECT DISTINCT UPPER(comp.Name) as [Package Server], ps1.NRPkgCount as [Packages Not Ready] FROM vRM_Package_Item AS pkg join SWDPackageServer ps on ps.PackageId = pkg.Guid and ps.Status != 'Ready' join vComputer comp on comp.Guid = ps.PkgSvrId join (select PkgSvrId, COUNT(*) as NRPkgCount from SWDPackageServer where [Status] != 'Ready' group by PkgSvrId) ps1 on ps1.PkgSvrId = comp.Guid WHERE ps1.NRPkgCount >= 5
Hope this helps someone.
Thank you..