Skip to content

False positive detections of !include loops in omi-preexec #7

Open

Description

Environment

I have a default installation of CentOS 7 with MariaDB, with default, unchanged configuration files.

I have deployed a most recent version of SCX (scx-1.6.2-339.x86_64 along with mysql-cimprov-1.0.1-5.x86_64) that is available as default deployment option via SCOM 2016 UR4.

Problem

The omi-preexec returns a following error in /var/opt/microsoft/mysql-cimprov/log/mysqllog.log:

[mysql.omi-preexec:95:4661:139821470123840] Error reading configuration file: /etc/my.cnf is used in !include more than once.

There are no traceable loops in includes, in fact, there is only a default !includedir /etc/my.cnf.d in the /etc/my.cnf, with no custom config in the included files. All files have been attached as reference: cnf.zip

Surprisingly, commenting out the default !includedir prevents error from triggering (but is not a valid workaround for production).

It's either something wrong with loop detection algorithm or something in the algorithm that I did not take into account. I'll be happy to provide you other files if needed.

Activity

  1. iyochai commented on Jan 11, 2018

    @iyochai

    I am also experiencing this issue.

  2. PhilAitman commented on Mar 9, 2018

    @PhilAitman

    Same issue here using 1801 build of SCOM and the OMSAgent 1.4.1-45

  3. msacharewicz commented on Nov 23, 2018

    @msacharewicz
    Author

    Does anybody read this?

  4. Joseluismaxp1 commented on Mar 28, 2019

    @Joseluismaxp1

    Hi msacharewicz,

    is possible monitoring mariadb with scom? for mysql is very easy but when I was trying with mariadb it didnt work.

    I got the same error when I was checking the log [mysql.omi-preexec:95:5204:140355860993856] Error reading configuration file: /etc/my.cnf is used in !include more than once.

    image

  5. msacharewicz commented on Mar 28, 2019

    @msacharewicz
    Author

    Joseluismaxp1: Well, per documentation, "Supports MariaDB Server version 5.5, and 10.0"...

    https://www.microsoft.com/en-us/download/details.aspx?id=46924

  6. Joseluismaxp1 commented on Mar 28, 2019

    @Joseluismaxp1

    Thanks for your answer, so according to the documentation MariaDB 5.5 and 10.0 is supported, no include Mariadb 5.5.63????

  7. msacharewicz commented on Mar 28, 2019

    @msacharewicz
    Author

    I'd assume it means 5.5.*

  8. Joseluismaxp1 commented on Mar 28, 2019

    @Joseluismaxp1

    Ok I understand, sorry to disturb you, so one question more. have you got an environment with SCOM monitoring any Mariadb version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions