During a recent OpsMgr agent deployment we were failing with a message that “The task cannot be executed against the object(s) because the target of the task does not match any of the classes of the object.”
Microsoft provided a great wiki on troubleshooting deployment of Unix/Linux agents which pointed me to the solution and is available at: http://social.technet.microsoft.com/wiki/contents/articles/4966.aspx
What we found is that we had accidentally installed older versions of the Unix/Linux monitoring packs (version 6.1.7000.269 as shown below) which had likely been downloaded prior to the RTM versions of the crossplatform monitoring management packs. When we attempted to deploy agents to multiple RedHat 5.8 systems they failed with the task error listed above. We upgraded these management packs to the versions available on the OpsMgr RTM media and they upgraded to the correct version (7.3.2026.0). After upgrading the MP’s the RedHat 5.8 systems deployed without an issue.
After we upgraded the MP’s the new versions (7.3.2026.0) appear as shown below.
Summary: Are your OpsMgr agent deployments to Unix/Linux OpsMgr failing with a “The task cannot be executed against the object(s) because the target of the task does not match any of the classes of the object.” message? Check your MP versions and make sure that they are current.
Microsoft has provided a extremely helpful wiki on troubleshooting deployment of Unix/Linux OpsMgr agents which is available at: http://social.technet.microsoft.com/wiki/contents/articles/4966.aspx