Install agent and certificate on Linux computers using the command line
This version of Operations Manager has reached the end of support. We recommend you to upgrade to Operations Manager 2022.
This article provides details of the latest version of the Linux agent for System Center Operations Manager 1801 and the process for installing it.
This version of the Linux agent supports Fluentd, an open source data collector for Linux that collects data from a variety of sources. The existing OMI based monitoring for currently supported Linux workloads will continue to work without change.
What's new in version 1801
- A new converter plugin is included that enables customers to use third party plugins for Operations Manager log file monitoring.
- Added support to Server Authentication.
- Added support to additional Linux distros.
The Linux distributions in the following table are supported in this release.
|Linux Operating System||Version Supported|
|Red Hat Enterprise Linux Server||5 (x86/x64)
|Cent OS||5 (x86/x64)
|Ubuntu||12.04 LTS (x86/x64)
14.04 LTS (x86/x64)
16.04 LTS (x86/x64)
|Oracle Linux||5 (x86/x64)
|SUSE Linux Enterprise Server||11 (x86/x64)
Upgrade from the existing Operations Manager/OMS agents isn't currently supported.
Supported deployment configurations
Operations Manager supports the following agent reporting configurations in the management group.
- Linux servers reporting directly to a management server
- Linux server reporting to a Gateway server
- Linux servers reporting to a chained Gateway server
You can choose to install the latest version of the Linux agent for Operations Manager using automatic discovery or manual installation. Automatic discovery hasn't changed since the previous version, and you can follow the same procedure at Discover and install agent on UNIX and Linux.
Use the following procedures to manually install agents to UNIX and Linux computers. The agent packages can be found in the following folder on a management server - %ProgramFiles%\Microsoft System Center\Operations Manager\Server\AgentManagement\UnixAgents\DownloadedKits after you import the required management packs for the specific version of UNIX/Linux you need to monitor. The management packs are available in the Operations Manager installation media in the \ManagementPacks directory.
The agent is provided as a self-extracting, installable shell script bundle. This bundle contains both Debian and RPM packages for each of the agent components and can be installed directly or extracted to retrieve the individual packages. Separate bundles are available for x64 and x86 architectures.
This will require the following steps:
- Install the agent and register Operations Manager as your workspace
- Open TCP port on management server or gateway server
- Configure a server authentication certificate
- Discover the Linux server using the Discovery Wizard
The following sections describe the steps required to manually install the Linux agent.
The agent install bundles will be located in %Program Files%\Microsoft System Center\Operations Manager\Server\AgentManagement\UnixAgents\DownloadedKits. Transfer the appropriate bundle (x86 or x64) to the Linux computer, using scp/sftp.
Install the bundle with the following command. The enable-opsmgr parameter ensures that port 1270 is open for the management server to communicate with the agent.
sudo sh ./omsagent-1.4.0-45.universald.1.x64.sh --install --enable-opsmgr
Run the omsadmin.sh command supplying scom for your workspace ID. This command must be run as root (with sudo elevation). This script will generate a certificate at /etc/opt/microsoft/omsagent/scom/certs/scom-cert.pem, which will need to be signed by the Management Server in a later step.
/opt/microsoft/omsagent/bin/omsadmin.sh -w scom
Create a configuration file called omsadmin.conf in /etc/opt/microsoft/omsagent/scom/conf/ with the following contents. Fill in the name of the machine and use 8886 for the port of the OMED service.
Configure TCP port for OMED service
Operations Manager requires that TCP port 8886 be used to establish inbound communication between the Linux agent and the management server or gateway server to enable data collection.
In the previous version of the Linux agent, the management server accessed each Linux computer with a server authentication certificate. With the new agent, Fluentd acts as the client accessing the management server, so the certificate requires client authentication. You need to obtain a new certificate to work with the new agent. Operations Manager will use the new certificate for Fluentd communications and the old certificate for other communications.
Locate/etc/opt/omi/ssl/omi-host-<hostname>.pem and /etc/opt/microsoft/omsagent/scom/certs/scom-cert.pem on the Linux computer and copy them to any location on the management server.
Open a command prompt on the management server and run the following command to sign your certificate.
scxcertconfig -sign omi-host-<hostname>.pem omi_new.pem and scxcertconfig -sign scom-cert.pem scom-cert_new.pem
Copy the file - omi_new.pem to /etc/opt/omi/ssl/ and scom-cert_new.pem to /etc/opt/microsoft/omsagent/scom/certs/ on the Linux computer. Remove the old certificate files and rename the new certificate files to replace them.
Restart the agent
Restart the agent with the following command.
After you've manually deployed agents to UNIX and Linux computers, they still need to be discovered by Operations Manager using the Discovery Wizard. For the Discovery type, select Discover only computers with the UNIX/Linux agent installed. For more information, see Install Agent on UNIX and Linux using the Discovery Wizard.
- To learn how to configure object discovery rules and disable discovery of a specific object, see Applying Overrides to Object Discoveries.
- To understand how to perform agent maintenance on UNIX and Linux computers, see Upgrading and Uninstalling Agents on UNIX and Linux Computers.
- To understand what options and steps need to be performed to properly uninstall the agent from your UNIX and Linux computers, see Manually Uninstalling Agents from UNIX and Linux Computers.