We've got a few servers which are monitored agentlesslly and this has revealed a flaw in our T-SQL reporting.
You see we can report on the resources targeted by any policy using the following T-SQL,
-- ClassGuid = '0821A65B-5338-464C-824D-9F7CEC48EA56' --Agent based Monitor
-- ClassGuid = 'F4767927-21AF-4875-B1B0-400852689DB1' --Agentless Monitor
SELECT vc.name,
vnonresourceitem.name
FROM vpolicyappliestoresource
JOIN vcomputer vc
ON vpolicyappliestoresource.resourceguid = vc.guid
JOIN vnonresourceitem
ON vnonresourceitem.guid = vpolicyappliestoresource.policyguid
WHERE ( classguid = '0821A65B-5338-464C-824D-9F7CEC48EA56'
OR classguid = 'F4767927-21AF-4875-B1B0-400852689DB1' )
AND enabled = 1
ORDER BY vc.name ASC
This works fine for agent-based monitoring, but for agentless monitoring the resource target is always the SMP. This kinda makes sense in that the SMP needs to do something a bit special for agentless, but I'm stumped as to how to move on from here.
Has anyone got any ideas?
Kind Regards,
Ian./