Ad Widget

Collapse

MSSQL monitor by Zabbix Agent 2

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • majorbezportek
    Junior Member
    • May 2024
    • 3

    #1

    MSSQL monitor by Zabbix Agent 2

    Hi, i have Zabbix 6.0.29 version and i want to deploy database monitoring in network. I see there is a very fresh MSSQL Zabbix Template for Zabbix Agent 2 but:
    I try to configure on MSSQL 2019, and with documentation MSSQL plugin is already compiled in ZA2 but i don't see ant *.conf file in plugins directory. Do i need put plugin or conf file some ware ?

    When i do it with MySQL was only Login / Pass / Directory to database and finish.


  • Answer selected by majorbezportek at 22-05-2024, 15:46.
    Singularity
    Member
    • Aug 2020
    • 81

    Check this : https://git.zabbix.com/projects/AP/repos/mssql/browse

    Comment

    • Singularity
      Member
      • Aug 2020
      • 81

      #2
      Check this : https://git.zabbix.com/projects/AP/repos/mssql/browse

      Comment

      • lmonasterio
        Member
        • May 2021
        • 34

        #3
        Hi @majorbezportek! Probably you need to install the Zabbix Agent 2 plugin. Please check https://cdn.zabbix.com/zabbix/binari...le/6.0/6.0.29/ for example
        My regards!

        Comment

        • majorbezportek
          Junior Member
          • May 2024
          • 3

          #4
          Thanks: lmonasterio and Singularity

          I already installed and now i have macros:

          $MSSQL.PASSWORD = <Some Pass>
          $MSSQL.URI = sqlserver://<IP Address>:<Port>
          $MSSQL.USER = <Some User>

          I have TCP connection on MSSQL servers disabled. Do I need this communicate with Zabbix Agent 2 and MSSQL ? In Logs i have :

          [MSSQL] Creating new connection to "sqlserver://<IP Address>:<Port>" with user <Some User> to database " ", with CA certificate " " .......

          And still Zabbix not take values from MSSQL.

          Ok, I confirm everything works fine thanks Singularity , what i did (Maybe will be good for someone)

          - Check documentation - CORRECT NOT $MSSQL.URI = sqlserver://localhost:<Port>
          - Increase log level on Agent to 4 -- Wrong password
          - Correct password works better
          Last edited by majorbezportek; 22-05-2024, 15:49.

          Comment

          • lmonasterio
            Member
            • May 2021
            • 34

            #5
            Originally posted by majorbezportek
            Thanks: lmonasterio and Singularity

            I already installed and now i have macros:

            $MSSQL.PASSWORD = <Some Pass>
            $MSSQL.URI = sqlserver://<IP Address>:<Port>
            $MSSQL.USER = <Some User>

            I have TCP connection on MSSQL servers disabled. Do I need this communicate with Zabbix Agent 2 and MSSQL ? In Logs i have :

            [MSSQL] Creating new connection to "sqlserver://<IP Address>:<Port>" with user <Some User> to database " ", with CA certificate " " .......

            And still Zabbix not take values from MSSQL.

            Ok, I confirm everything works fine thanks Singularity , what i did (Maybe will be good for someone)

            - Check documentation - CORRECT NOT $MSSQL.URI = sqlserver://localhost:<Port>
            - Increase log level on Agent to 4 -- Wrong password
            - Correct password works better
            You need MSSQL port open (default 1433). So, the URI is "sqlserver://localhost:1433"

            Comment

            Working...