Ad Widget

Collapse

odbc installation for low level discovery with proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andrea.g.els
    Junior Member
    • Jan 2018
    • 18

    #1

    odbc installation for low level discovery with proxy

    I'm reading about low level discovery with ODBC, and I need to do LLD on one host monitored through a proxy (No direct monitor , different DC )
    Where i must install the ODBC package ? On the proxy or on the mysql host ?

    checked

    and

    but doesn't shed light
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    I'm pretty sure on the proxy

    Comment

    • Hernandes Martins
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Apr 2011
      • 900

      #3
      Yes, the best practices on the proxy.
      __

      Att.
      Hernandes Martins - Zabbix Trainer

      Zabbix Brazil Partner - www.luniobr.com

      Zabbix Brazil Community - www.zabbixbrasil.org

      Blog: hernandesmartins.blogspot.com.br

      Skype: hernandss
      Telegram: @MrHernandes

      Español
      Facebook: facebook.com/groups/zabbixlatam
      Telegram: https://t.me/ZabbixEspañol

      Português
      Facebook: facebook.com/groups/zabbixbrasil/
      Telegram: https://t.me/ZabbixBrasil

      Comment

      • andrea.g.els
        Junior Member
        • Jan 2018
        • 18

        #4
        ok , done and tested with isql from the proxy :
        Code:
        [root@proxy zabbix]# sudo -u  zabbix  isql -v DSN
        +---------------------------------------+
        | Connected!                            |
        |                                       |
        | sql-statement                         |
        | help [tablename]                      |
        | quit                                  |
        |                                       |
        +---------------------------------------+
        created the template , and assigned to the host (which is managed by the proxy).

        From the server's log I can find those entries :
        Code:
          6695:20180814:105715.947 item "dbhost:db.odbc.discovery[discovery,DSN]" became not supported: Cannot connect to ODBC DSN:[SQL_ERROR]:[HY000][2003][[unixODBC][MySQL][ODBC 5.2(w) Driver]Can't connect to MySQL server on '10.14.100.30' (13)]|
        any clue?
        there is something else needed to put the proxy in charge for the discovery , except the "managed by proxy" in the client ?

        Comment

        • andrea.g.els
          Junior Member
          • Jan 2018
          • 18

          #5
          additional note : despite having interval set to 30s for this rule , I've seen this message only once

          Comment

          • Hernandes Martins
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Apr 2011
            • 900

            #6
            Hi,

            look (13) = permision denied

            run test

            # isql DSN user password

            or

            # query | isql DSN user password


            Follow the examples



            Search commands isql with queries.

            Regards
            __

            Att.
            Hernandes Martins - Zabbix Trainer

            Zabbix Brazil Partner - www.luniobr.com

            Zabbix Brazil Community - www.zabbixbrasil.org

            Blog: hernandesmartins.blogspot.com.br

            Skype: hernandss
            Telegram: @MrHernandes

            Español
            Facebook: facebook.com/groups/zabbixlatam
            Telegram: https://t.me/ZabbixEspañol

            Português
            Facebook: facebook.com/groups/zabbixbrasil/
            Telegram: https://t.me/ZabbixBrasil

            Comment

            • andrea.g.els
              Junior Member
              • Jan 2018
              • 18

              #7
              Hello Hernandes,
              the permission denied hint (also if not 100% accurate) ringed a bell.


              It was a selinux missing permission on the proxy host

              Code:
              zabbix_server.log:  6695:20180814:105715.947 item "HOST:db.odbc.discovery[DISCOVERY,DSN]" became not supported: Cannot connect to ODBC DSN:[SQL_ERROR]:[HY000][2003][[unixODBC][MySQL][ODBC 5.2(w) Driver]Can't connect to MySQL server on 'IP' (13)]|
              zabbix_server.log:  6698:20180814:132513.848 discovery rule "HOST:db.odbc.discovery[DISCOVERY,DSN]" became supported
              Code:
              ausearch -c 'zabbix_proxy' --raw | audit2allow -M my-zabbixproxy
              semodule -i my-zabbixproxy.pp
              setsebool -P zabbix_can_network 1
              fixed the issue


              It's still unclear to me why the discovery run after 2 hrs and half instead of 30 seconds as configured

              Comment

              • Hernandes Martins
                Senior Member
                Zabbix Certified SpecialistZabbix Certified Professional
                • Apr 2011
                • 900

                #8
                Wow

                Great job!!!
                __

                Att.
                Hernandes Martins - Zabbix Trainer

                Zabbix Brazil Partner - www.luniobr.com

                Zabbix Brazil Community - www.zabbixbrasil.org

                Blog: hernandesmartins.blogspot.com.br

                Skype: hernandss
                Telegram: @MrHernandes

                Español
                Facebook: facebook.com/groups/zabbixlatam
                Telegram: https://t.me/ZabbixEspañol

                Português
                Facebook: facebook.com/groups/zabbixbrasil/
                Telegram: https://t.me/ZabbixBrasil

                Comment

                • DmitryL
                  Senior Member
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • May 2016
                  • 278

                  #9
                  Keep in mind that proxy gets fresh configuration from the server only once an hour by default.

                  Comment

                  Working...