Disable scom 2019 tracing on Linux

rahaf mousa 21 Reputation points
2021-08-25T08:28:24.22+00:00

Is there a way to disable creating trace files on Linux servers with scom agent? The trace file grows so fast to 4GB and sometimes it creates a backup file of the old trace then we have extra 5GB for example. We are not using the trace files and deleting them does not help because new ones are created.
We have scom 2019 running
The agent version is: scx-1.6.8-0
OS used: Red Hat Enterprise Linux Server release 7.9 (Maipo)
Files in log directory:
ls -lh /var/opt/omi/log/
total 4.0G
-rw-r--r--. 1 root root 42M Jul 15 21:06 omiagent.root.root.log
-rw-r--r--. 1 root root 540K Feb 16 2021 omiserver.log
-rw-r--r--. 1 omi omi 4.0G Aug 24 10:21 omiserver-recv.trc

the file that we would like to disable creating is omiserver-recv.trc

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,499 questions
0 comments No comments
{count} votes

Accepted answer
  1. AlexZhu-MSFT 5,956 Reputation points Microsoft Vendor
    2021-08-26T08:42:11.52+00:00

    Hi,

    Thank you very much for getting back. As far as I know, once the agent is running, the file is generated. About what makes them grow fast, it is based on the application behavior and limited information can be found. Currently, it seems there is no way to disable the logs. And we can either delete the file in a schedule (for example, everyday) or limit its size by log rotation.

    delete the file everyday at 08:40
    40 8 * * * rm -rf /var/opt/omi/log/omiserver-recv.trc

    to limit the size, we can modify the conf file
    vi /etc/logrotate.d/omi

    change the original one (highlight in the below screenshot)
    /var/opt/omi/log/omiserver.log

    to this one or anything equivalent
    /var/opt/omi/log/*.log /var/opt/omi/log/*.trc

    126666-scom-linux-trace-log-03.png

    Alex
    If the response is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. AlexZhu-MSFT 5,956 Reputation points Microsoft Vendor
    2021-08-26T00:54:58.15+00:00

    Hi,

    It seems we are unable to disable the trace log in SCOM agent way (we will try to deliver this information to the product team and hope they can add this feature in future release if it is not available now). However, we can do this in the Linux OS level using cron

    For example, we may delete this file at 8:40 every Thursday.
    crontab -e
    40 8 * * 4 rm -rf /var/opt/omi/log/omiserver-recv.trc

    Here's the lab test screenshot for your reference.

    126571-scom-linux-trace-log-02.png

    Alex
    If the response is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.

  2. Noel Bradley 0 Reputation points
    2024-10-30T20:43:33.4466667+00:00

    I have had this issue too and, for anyone else experiencing it, OMI version 1.7.3-0 disables http tracing.

    https://github.com/microsoft/omi/releases/tag/v1.7.3-0

    Once I upgraded OMI to this version the omiserver-recv.trc was no longer created by the agent.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.