I recently was working on some OMS Linux agent testing and sought to test with the 16.04.2 flavor of Ubuntu for the first time. Upon downloading the relevant bundle for my computer as described in my previous article, an attempt to upgrade (–upgrade) the package in the system failed with the dreaded “Errors were encountered while processing” errors, and I saw this across the board on all of the Ubuntu 16.04.2 computers.
Looks like a missing dependency is the culprit. So here’s what I did to address this and onboard this Ubuntu distro to my OMS workspace:
I uninstalled the package and removed all related data, using the –purge bundle operation:sudo sh ./omsagent-1.3.4-127.universal.x64.sh --purge
and then proceeded to address the dependency. You can determine if any packages have unmet dependencies using:sudo apt-get check
Address dependencies using apt-get -f install, and after confirming, answer yes to any prompts:sudo apt-get install -f
And retrying the agent package installation now successfully configures the OMS Agent configuration
and you can now onboard to your OMS workspace.
Navigate to /opt/microsoft/omsagent/bin to see relevant packagescd /opt/microsoft/omsagent/bin
You can now onboard using:sudo ./omsadmin.sh -w <WorkspaceID> -s <Shared Key>
Where WorkspaceID Is the ID for your OMS workspace, and the SharedKey is the relevant key for your OMS workspace.
And you should now see the agent in your workspace, using a OMS Query such as:Type=Heartbeat OSType=Linux OSName=Ubuntu
…And proceed to do what you do best with OMS. Cheers!
Latest posts by Chiyo Odika (see all)
- OMS Linux Agent Installation Errors on Ubuntu 16.04.2 - June 17, 2017
- UPDATE: APM Feature in SCOM 2016 Causes Failures in certain IIS Application Pools - June 9, 2017
- OMS Agent for Linux – v1.3.5-127 - May 26, 2017