Ad Widget

Collapse

mssql monitoring?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dratliff
    Member
    • May 2007
    • 40

    #16
    Joseph,

    Have you tried an older client? I have reverted back to the 1.1.7 agent.

    Just a thought.

    Comment

    • claytronic
      Member
      • Nov 2006
      • 52

      #17
      Joseph,

      I have not tested the SQL commands with the 1.4.x agent series. We are still running 1.1.7 in production. I'll post our results when we begin evaluating on our tier 2 production servers.

      --
      Claytronic

      Comment

      • tronite
        Senior Member
        • Jun 2007
        • 147

        #18
        Well ... I would update my database and search on the host for anything to do with mssql monitoring?

        Sorry if that's not much help!

        Comment

        • tronite
          Senior Member
          • Jun 2007
          • 147

          #19
          I thought I already posted on this list, must have gotten side tracked, but I had wanted to ask what happens if you just locate what you are looking for and grep for the specifics?

          Comment

          • mrogers
            Junior Member
            • Feb 2007
            • 9

            #20
            MS SQL Server Monitoring

            Clay,
            Would you mind kind of explaining the different parts of the query you wrote. I understand the UserParam and the key and a few other pieces however i am not familiar with all the switches. I'm kind of new to DB monitoring and would appreciate the help.

            Thanks,

            Matt

            Comment

            • claytronic
              Member
              • Nov 2006
              • 52

              #21
              Originally posted by mrogers
              Clay,
              Would you mind kind of explaining the different parts of the query you wrote. I understand the UserParam and the key and a few other pieces however i am not familiar with all the switches. I'm kind of new to DB monitoring and would appreciate the help.

              Thanks,

              Matt
              Matt,

              The MS SQL performance counters that I previous posted are the basic gages for monitoring the health of a your SQL server. The are quite a few more that the ones that I use so take some time to identify what is important to your applications.

              Here's a general explanation of each:
              • \SQLServer:Buffer Manager()\Database pages Gages how often the SQL server can perform a transaction without having to perform disk I/O.
              • \SQLServeratabases(DATABASE_NAME)\Data File(s) Size (KB) Measure of how large a particular database is physically growing
              • \SQLServeratabases(DATABASE_NAME)\Log File(s) Size (KB) The physical size of the SQL transaction log. This one is very important since by default a SQL server will not automatically truncate the database log. If someone performs large update or deletes this log file can grow very quickly. Use this in conjunction with your disk space triggers.
              • \SQLServer:General Statistics()\User Connections This shows how many concurrent connections are utilizing the SQL server itself. A sudden rise in these may point to a hung application that isn't properly closing connections. A .Net application SQL connection pool can often spike the connection count when a transaction has caused a large number of table locks.
              • \SQLServer:Memory Manager()\Total Server Memory (KB) How much OS memory the SQL service is using.
              • \Process(sqlservr)\% Processor Time Tracks how hard the SQL process is working. This is a great way to identify performance bottlenecks before they become big pains in your neck.
              • \SQLServer:Locks(_Total)\Number of Deadlocks/sec If you see these happening then check with your DBA or application engineer because deadlocks are a SQL performance killer.
              • \SQLServer:Locks(_Total)\Lock Waits/sec This measures how much time the database is having to wait to deliver its data because of other transactions locking tables.


              Hope this helps.

              --
              Clayton

              Comment

              • clubbing80s
                Senior Member
                • Sep 2005
                • 109

                #22
                Hi
                I'm running zabbix-agent 1.4.2 on windows 2003 server with msql sql server 2005

                I keep getting not supported .. i have tried adding an removing "()" etc .. what is that exact correct syntax for the following ?

                PerfCounter = db_pages,"\SQLServer:Buffer Manager()\Database pages",60

                PerfCounter = db_free_pages,"\SQLServer:Buffer Manager()\Free pages",60

                PerfCounter = db_data_file_size,"\SQLServeratabases(BTD)\Data File(s) Size (KB)",60

                PerfCounter = db_log_file_size,"\SQLServeratabases(BTD)\Log File(s) Size (KB)",60

                PerfCounter = db_userconns,"\SQLServer:General Statistics()\User Connections",60

                PerfCounter = db_server_mem(),"\SQLServer:Memory Manager()\Total Server Memory (KB)",60

                PerfCounter = db_cpu_load(),"\Process(sqlservr)\% Processor Time",60

                Comment

                • swaterhouse
                  Senior Member
                  • Apr 2006
                  • 268

                  #23
                  Since you are on 1.4 you can add perf counters to the web interface without adding them to the config file on the agent.

                  type: Zabbix agent
                  key: perf_counter["\SQLServer:Buffer Manager\Database pages"]
                  Type of information: float



                  I started to put together a template for SQL on Friday. I have a couple of more things to add to it and I will post it to the wiki when complete.

                  Comment

                  • clubbing80s
                    Senior Member
                    • Sep 2005
                    • 109

                    #24
                    Thanks was a quick response .. many thanks, look forward to seeing your template ..
                    G

                    Comment

                    • clubbing80s
                      Senior Member
                      • Sep 2005
                      • 109

                      #25
                      ok winning with most but the following are still not behaving ..

                      perf_counter["\SQLServer:_Databases(WEBCOLTECH\Data File(s) Size (KB)"]
                      perf_counter["\SQLServer:_Databases(WEBCOLTECH)\Log File(s) Size (KB)"]
                      where WEBCOLTECH is the database name (what if i wanted the total foot print of all the databases ?)

                      still getting not supported what have i missed
                      Thanks for you time ..
                      G

                      Comment

                      • claytronic
                        Member
                        • Nov 2006
                        • 52

                        #26
                        Originally posted by swaterhouse
                        Since you are on 1.4 you can add perf counters to the web interface without adding them to the config file on the agent.
                        I like your idea of moving all of the perfmon counters into the database. Having everything in a template would save a bunch of time and centralize the configuration. Is there any 1.4 / 1.6 Win32 Agent differences I should know about between perf_counter keys?

                        --
                        Claytronic

                        Comment

                        • claytronic
                          Member
                          • Nov 2006
                          • 52

                          #27
                          Originally posted by clubbing80s
                          ok winning with most but the following are still not behaving ..

                          perf_counter["\SQLServer:_Databases(WEBCOLTECH\Data File(s) Size (KB)"]
                          perf_counter["\SQLServer:_Databases(WEBCOLTECH)\Log File(s) Size (KB)"]
                          where WEBCOLTECH is the database name (what if i wanted the total foot print of all the databases ?)

                          still getting not supported what have i missed
                          Thanks for you time ..
                          G
                          Try executing this from the Windows command prompt:

                          Code:
                          typeperf -qx | find "WEBCOLTECH"
                          It should echo back all of the performance counters with your database's name. Then just do a good old cut'n paste from the command prompt window. Perhaps you've got a simple whitespace problem. This has happened twice to me while setting up my Zabbix perfmon.

                          --
                          Claytronic

                          Comment

                          • clubbing80s
                            Senior Member
                            • Sep 2005
                            • 109

                            #28
                            thanks for the input .. it also answered my question on getting info on terminal server ..

                            Comment

                            • swaterhouse
                              Senior Member
                              • Apr 2006
                              • 268

                              #29
                              Originally posted by claytronic
                              I like your idea of moving all of the perfmon counters into the database. Having everything in a template would save a bunch of time and centralize the configuration. Is there any 1.4 / 1.6 Win32 Agent differences I should know about between perf_counter keys?

                              --
                              Claytronic
                              Not that I have found - but you need the 1.4.2 version or later because the perf counters were pretty broken in 1.4.0 and 1.4.1.

                              I will upload my template later today. I dont have many triggers defined. I am struggling to figure out where I should set the thresholds. Right now my server has more than enough power so I am really just using the items for trending data.

                              Comment

                              • Jarno
                                Junior Member
                                • Oct 2007
                                • 10

                                #30
                                Hey guys! First of all i'm new to this forum and zabbix, this is my first post . I'm testing with zabbix for a few weeks now and it works great!

                                Currently i'm looking into perf counters. I was wondering where you uploaded this template swaterhouse. I've checked the wiki xml contrib page but didn't find anything. My plan is to make loads of these default templates for various services, and yes, i'm willing to share them

                                --

                                Jarno

                                Comment

                                Working...