For on-boarding linux servers to Azure log analytics, just execute the command on the respective server:
wget https://raw.githubusercontent.com/Microsoft/OMS-Agent-for-Linux/master/installer/scripts/onboard_agent.sh && sh onboard_agent.sh -p [protocol://][user:password@]proxyhost[:port] -w -s
In few cases like mine, the servers will not have access to internet and we will need to install the downloaded oms agent package with the proxy information.
sh omsagent-1.6.0-42.universal.x64.sh --install -w -s -p [protocol://][user:password@]proxyhost[:port]
The proxy can have username and password for authentication and even if no proxy authentication is required, we will need to enter a dummy username and password which in the example below is azure and azure.
sh omsagent-1.6.0-42.universal.x64.sh --install -w -s -p http://azure:azure@proxyhost[:port]
If you have SCOM agent already installed then instead of –install we will need to specify –upgrade.
sh omsagent-1.6.0-42.universal.x64.sh --upgrade -w -s -p http://azure:azure@proxyhost[:port]
Leave a reply to Anonymous Cancel reply