Ad Widget

Collapse

Monitor MS SQL Server DB size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coling
    Junior Member
    • Dec 2016
    • 2

    #1

    Monitor MS SQL Server DB size

    Hi,

    I am new to Zabbix.

    I have imported the following template and I am monitoring both Standard editions and Express editions of MS SQL Server 2008 R2


    I would like to know how to modify the template so that it can monitor the DB size and trigger an alert if a SQL Express DB reached 9GB or 90% of its size limit.

    Thanks in advance
    Colin
  • coling
    Junior Member
    • Dec 2016
    • 2

    #2
    Hi,

    Anyone have an idea?

    Thanks in advance for any assistance you can provide.
    Colin

    Comment

    • GPegel
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2015
      • 113

      #3
      Is it an idea to add a Perfmon counter to the SQL server? If that's possible, you could create an item in Zabbix that's reading that perfmon counter. And if that works, you could create a trigger based on that item.

      Comment

      • nms_user
        Member
        • Feb 2009
        • 43

        #4
        Perfmon-Counter:

        All Databases Files Size Sum
        Key: perf_counter[\SQLServer: Databases(_Total)\Data File(s) Size (KB)]

        All TransactionLog Files Size Sum
        Key: perf_counter[\SQLServer: Databases(_Total)\Log File(s) Size (KB)]


        There may be more (detailed) counter available. Have a look into perfmon yourself if needed...

        Comment

        • Johan Luna
          Junior Member
          • Mar 2019
          • 2

          #5
          Good day colleagues I'm trying to monitotear a bd sql server, but not the instance for default, a new one with a different name, but I still can not.

          Key item:

          perf_counter ["\ MSSQL $ {$ SQL1}: Databases (_Total) \ Data File (s) Size (KB)"]
          then

          [us77 @ ter] # zabbix_get -s 10.8.0.166 -p 10050 -k perf_counter ["\ MSSQL $ {netluna}: Databases (_Total) \ Data File (s) Size (KB)"]
          ZBX_NOTSUPPORTED: Invalid performance counter format.

          Comment

          Working...