none
Install Operation manager Agent on Linux machines

    Question

  • Hello,

    I am trying to install the Agent on a Linux machine using the Wizard, but I just get errors. 

    I decided to install it manually, I found this: https://technet.microsoft.com/en-us/library/hh212686(v=sc.12).aspx 

    Could anyone tell me where could I find the install files for the installation please?

    Thank you very much in advance.

    Ana

    Monday, March 20, 2017 2:42 PM

Answers

  • You can find the agents on the Management Server Machine in a folder : C:\Program Files\Microsoft System Center 2016\Operations Manager\Server\AgentManagement\UnixAgents\DownloadedKits. Please do make sure you have installed the MPs.
    • Marked as answer by Anntb Wednesday, March 22, 2017 4:38 PM
    Monday, March 20, 2017 2:56 PM
  • Hi,

    The log says : Checking if MySQL is installed ...
      MySQL not found, will not install

    It does not require MYSQL to get installed, it is just checking if MYSQL is installed it will install providers of MYSQL it is not the reason.

    From the logs (This is the problem): ----- Installing packages:  100/scx-1.6.2-338.universal.x64.rpm -----
    error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)

    I believe you do not have permission to install rpm. Please make sure you have sufficient privileges and it should be done. 

    then run : /opt/omi/bin/omicli ei root/scx SCX_Agent

    if you get an output the agent is installed correctly.

    Thanks,

    Nirbhay Singh


    • Edited by Nirbhay Singh [MSFT] Wednesday, March 22, 2017 2:06 PM
    • Marked as answer by Anntb Wednesday, March 22, 2017 4:38 PM
    Wednesday, March 22, 2017 2:05 PM

All replies

  • You can find the agents on the Management Server Machine in a folder : C:\Program Files\Microsoft System Center 2016\Operations Manager\Server\AgentManagement\UnixAgents\DownloadedKits. Please do make sure you have installed the MPs.
    • Marked as answer by Anntb Wednesday, March 22, 2017 4:38 PM
    Monday, March 20, 2017 2:56 PM
  • Thank you so much for the fast response.

    I could find many .sh files in this folder. Do I have to modify these files in order to be able to use them?

    Thanks

    Monday, March 20, 2017 5:29 PM
  • Hi,

    For ubuntu/debian -- universal.sh

    Rhel -- Rhel.sh

    Similarly you might be having few sh files, you can copy the same on linux machine and install using :

    sh ./SH_Agent_File_name.sh --install

    My personal opinion would be to install from Console. https://blogs.technet.microsoft.com/kevinholman/2016/11/11/monitoring-unixlinux-with-opsmgr-2016/

    Thanks,

    Nirbhay Singh


    Monday, March 20, 2017 9:28 PM
  • Hello Nirbhay,

    I tried, but it always gives me errors. This time it shows: 'The target address is unreachable':

        

    WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet. 
       It is possible that:
       1. The destination computer is unreachable (because it is down, or due to a firewall issue).
       2. The destination certificate is signed by another certificate authority not trusted by the management server.
       3. The destination has an invalid certificate, e.g., its common name (CN) does not match the fully qualified domain name (FQDN) used for the connection.
       4. The servers in the resource pool have not been configured to trust certificates signed by other servers in the pool.

    The only option I don't know how to check if it is the second one.

    Tuesday, March 21, 2017 11:00 AM
  • As for the manual installation, when I try to install the file on a Redhat machine, it requires to have MySQL on it. This machine uses mariadb by default. Wouldn't it be possible to install the Agent with this instead?

    Thank you very much again :)

    Ana

    Tuesday, March 21, 2017 11:05 AM
  • Hi,

    I believe you are misinterpreting the logs of the agent install. It looks if the Apache/MYSQL is installed then it install the corresponding Providers, if you don't have these you can still install the agent.

    Once you install the agent run : 

    /opt/omi/bin/omicli ei root/scx SCX_Agent

    on the Linux machine and should get an output like :

    { Caption=SCX Agent meta-information Description=Release_Build - 20160901 InstallDate=20160902085021.000000+000 [Key] Name=scx VersionString=1.6.2-416 MajorVersion=1 MinorVersion=6 RevisionNumber=2 BuildNumber=416 BuildDate=2016-09-01T00:00:00Z Architecture=x64 OSName=CentOS Linux OSType=Linux OSVersion=7.0 KitVersionString=1.6.2-416 Hostname=jeffcof64-cent7x-01.scx.com OSAlias=UniversalR UnameArchitecture=x86_64 MinActiveLogSeverityThreshold=INFO MachineType=Virtual PhysicalProcessors=1 LogicalProcessors=2 }

    If you are getting this congrats you successfully installed the agent on machine :).

    Thanks,

    Nirbhay Singh

    Tuesday, March 21, 2017 2:59 PM
  • Hi,

    I did not understand why I needed to have MySQL, but when I run: sh ./scx-1.6.2-338.rhel.7.x64.sh

    Extracting

    ----- Queuing package for upgrade: omi (omi-1.0.8-7.universal.x64) -----

    ----- Updating packages: ( 100/omi-1.0.8-7.universal.x64.rpm) -----
    error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
    ----- Queuing package: scx (scx-1.6.2-338.universal.x64) for installation -----
    ----- Installing packages:  100/scx-1.6.2-338.universal.x64.rpm -----
    error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
    Checking if Apache is installed ...
      Apache found, Apache agent will be installed
    Extracting...
    Installing Apache agent ...
    ----- Installing package: apache-cimprov (apache-cimprov-1.0.1-7.universal.1.x86_64) -----
    Detected Apache v2.4 ...
    error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
    Checking if MySQL is installed ...
      MySQL not found, will not install

    Tuesday, March 21, 2017 4:30 PM
  • you need root access to install the agent.

    Root user : sh ./<SCX_AGENT>.sh --install

    Other user : sudo sh ./<SCX_AGENT>.sh --install

    Tuesday, March 21, 2017 6:16 PM
  • Hi Nirbhay,

    I used sudo and the root password for running the install. And then, it is when I get the above on the screen, ending with: " MySQL not found, will not install".

    I guess, it is the first time you see this, right?

    Thanks

    Wednesday, March 22, 2017 11:23 AM
  • Hi,

    The log says : Checking if MySQL is installed ...
      MySQL not found, will not install

    It does not require MYSQL to get installed, it is just checking if MYSQL is installed it will install providers of MYSQL it is not the reason.

    From the logs (This is the problem): ----- Installing packages:  100/scx-1.6.2-338.universal.x64.rpm -----
    error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)

    I believe you do not have permission to install rpm. Please make sure you have sufficient privileges and it should be done. 

    then run : /opt/omi/bin/omicli ei root/scx SCX_Agent

    if you get an output the agent is installed correctly.

    Thanks,

    Nirbhay Singh


    • Edited by Nirbhay Singh [MSFT] Wednesday, March 22, 2017 2:06 PM
    • Marked as answer by Anntb Wednesday, March 22, 2017 4:38 PM
    Wednesday, March 22, 2017 2:05 PM
  • Thank you very much for everything.

    I got an output using your suggested command. The service is running too.

    I will try to copy the certificates now 

    Thanks

    Ana


    Wednesday, March 22, 2017 4:38 PM