On Hosts/VMs like Linux, Windows, Aix, Solaris, etc. the agent is definitely better than SNMP and SNMP has no advantages, but a lot of disadvantages.
If we are talking about switches, routers, etc. there you have to use SNMP because you can’t install an agent there.