Ad Widget

Collapse

Unknown metric mssql.perfcounter.get - MSSQL 2019 Windows Server Monitoring

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kamal.patel
    Junior Member
    • Mar 2024
    • 10

    #1

    Unknown metric mssql.perfcounter.get - MSSQL 2019 Windows Server Monitoring

    Hi All,

    I have installed Zabbix Server 6.4.13 and also deployed Agent on windows Server MSSQL 2019 for monitoring.

    but I am getting the error below error on all metrics.

    "Unknown metric mssql.perfcounter.get"

    Kindly please help me if someone done such configuration for monitoring the MSSQL Server 2019 with latest template. i have gone this link https://git.zabbix.com/projects/AP/repos/mssql/browse.

    Click image for larger version

Name:	MSSQL Template error.png
Views:	5106
Size:	178.2 KB
ID:	481630
  • Answer selected by kamal.patel at 10-04-2024, 10:49.
    kamal.patel
    Junior Member
    • Mar 2024
    • 10

    Hi All,

    We have find the Zabbix Agent 2 Plugins for MSSQL Database Server. Find the below link.



    This is Repository where you can find the plugins as per your require version.

    Click image for larger version

Name:	image.png
Views:	5441
Size:	159.7 KB
ID:	482097

    Click image for larger version

Name:	image.png
Views:	5358
Size:	38.5 KB
ID:	482098

    Click image for larger version

Name:	image.png
Views:	5365
Size:	77.1 KB
ID:	482100

    Click image for larger version

Name:	image.png
Views:	5362
Size:	48.7 KB
ID:	482101

    Kindly check this and do the configuration this way, we can able to pull all the Data from SQL Server with Zabbix Agent 2 with Plugins which we installed. ​
    Attached Files

    Comment

    • Hamardaban
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • May 2019
      • 2713

      #2
      There are two different versions of the zabbix agent - the metrics that you are trying to collect are from the agent2, but not from the agentd.


      Comment

      • Ad3t0
        Junior Member
        • Apr 2024
        • 1

        #3
        I also have this same issue. I am using Zabbix Server 6.4.13 with the Zabbix Agent 2 on my MSSQL server. Furthermore, I think it's because I am missing the plugin executable described in the documentation here https://git.zabbix.com/projects/AP/repos/mssql/browse however I cannot find where to download this plugin executable for the Windows agents for MSSQL monitoring. Anyone have any ideas?

        Comment

        • kamal.patel
          Junior Member
          • Mar 2024
          • 10

          #4
          Hi,

          I have checked it, when we do the installation then the plugins show it. find the below screenshot but that is for Linux machine.

          We have windows Server, we need to require plugins for windows machine with Zabbix Agent 2 as per my thinking. as MSSQL also available for Linux as well.

          i have try to copy that MSSQL.conf file in windows and also modify the zabbix Agent 2 file as well but after that the agent service not able to start it.

          require guidance from Zabbix team whether is it supported to windows server or not of MSSQL?

          Click image for larger version

Name:	image.png
Views:	4957
Size:	166.5 KB
ID:	481716

          Comment

          • pulpet90
            Junior Member
            • Apr 2024
            • 2

            #5
            Hi,
            I have same issue.
            Agent version 6.4.13, same as server version.
            I have added mssql.conf to plugins on my windows agent folder but still have same error: Unknown metric mssql.perfcounter.get
            mssqlconf have 3 lines unhashed in config:
            Code:
            [B]Plugins.MSSQL.Default.Uri=sqlserver://...
            Plugins.MSSQL.Default.User=zbx_monitor
            Plugins.MSSQL.Default.Password=...[/B]
            Agent is running but still no MSSQL data.

            Comment

            • pulpet90
              Junior Member
              • Apr 2024
              • 2

              #6
              URL to Windows MSSQL Plugin - https://cdn.zabbix.com/zabbix/binari...le/6.4/6.4.13/

              Comment

              • rburns
                Junior Member
                • May 2022
                • 16

                #7
                I had the same problem. I am not sure of the mechanism involved, but the end result is that plugin isn't present or at least functional in the Windows MSI. The template works great on Linux, but as most MSSQL is on Windows it's not that helpful. But I appreciate the efforts of the Zabbix Team and assume it will be working soon.
                Last edited by rburns; 02-04-2024, 15:46.

                Comment

                • espenta
                  Junior Member
                  • Oct 2022
                  • 2

                  #8
                  Thank you pulpet90!
                  Downloading Agent 2 and the plugin msi-file from you repo URL solved the problem for me. We were unable to get the already installed Zabbix Agent 2 version 6.4.13 package to work with the plugin, but reinstalling the Zabbix Agent 2 made it work out of the box.

                  Zabbix proxy log showed some info, but it did not lead us on the right path. I tried all sorts of macro variations without success, still same event logged:
                  Code:
                  Zabbix agent item "mssql.local.db.get["{$MSSQL.URI}","{$MSSQL.USER}","{$MSSQL.PASSWORD}"]" on host MYSERVER failed: another network error, wait for 15 seconds
                  When the plugin was accepted by the Agent, the data became almost instantly accessible and the proxy log showed this line:
                  Code:
                  enabling Zabbix agent checks on host "MYSERVER": interface became available

                  Comment

                  • cyber
                    Senior Member
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Dec 2006
                    • 4807

                    #9
                    Seems like since appearance of the plugin (with version 6.4.12), docs have not been updated correctly about obtaining the plugin etc..
                    Or... you can probably guess they way it works from Plugins page https://www.zabbix.com/documentation...nsions/plugins but its not that easy to put everything together easily...

                    Comment

                    • kamal.patel
                      Junior Member
                      • Mar 2024
                      • 10

                      #10
                      Hi All,

                      I have just configured the MSSQL by ODBC of SQL 2019 which is working fine of all metrics now of Zabbix Server 6.4.13.

                      Find the below screenshot.

                      Click image for larger version

Name:	image.png
Views:	4908
Size:	86.0 KB
ID:	481897

                      Click image for larger version

Name:	image.png
Views:	4859
Size:	168.8 KB
ID:	481898

                      Click image for larger version

Name:	image.png
Views:	4869
Size:	181.7 KB
ID:	481899

                      Click image for larger version

Name:	image.png
Views:	4857
Size:	96.0 KB
ID:	481900

                      Click image for larger version

Name:	image.png
Views:	4840
Size:	240.2 KB
ID:	481901


                      ​​

                      Comment

                      • kamal.patel
                        Junior Member
                        • Mar 2024
                        • 10

                        #11
                        Hi All,

                        We have find the Zabbix Agent 2 Plugins for MSSQL Database Server. Find the below link.



                        This is Repository where you can find the plugins as per your require version.

                        Click image for larger version

Name:	image.png
Views:	5441
Size:	159.7 KB
ID:	482097

                        Click image for larger version

Name:	image.png
Views:	5358
Size:	38.5 KB
ID:	482098

                        Click image for larger version

Name:	image.png
Views:	5365
Size:	77.1 KB
ID:	482100

                        Click image for larger version

Name:	image.png
Views:	5362
Size:	48.7 KB
ID:	482101

                        Kindly check this and do the configuration this way, we can able to pull all the Data from SQL Server with Zabbix Agent 2 with Plugins which we installed. ​
                        Attached Files

                        Comment

                        • Murilo Ribeiro
                          Junior Member
                          • Sep 2023
                          • 14

                          #12
                          Hi, my Zabbix is giving the following error:

                          Failed to execute handler: failed to execute handler: failed to get conn: failed to create conn: failed to ping: TLS Handshake failed: tls: server selected unsupported protocol version 301.

                          Someone can help me?

                          Comment

                          Working...