Ad Widget

Collapse

MS SQL - datafiles monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mikooo
    Junior Member
    • Feb 2018
    • 3

    #1

    MS SQL - datafiles monitoring

    Hello,

    since few days I'm struggling with mechanism which monitors datafile usage - via ODBC (without creating anything localy on host.. everyting has to be done from Zabbix Server - query etc.).

    So far I invented 3 items which gives me results like:

    Item 1: check if datafile is autogrowth or not
    Item 2: get free space of drive where is datafile, get datafile growth size and divide both values
    Item 3: check whole specified database usage in %

    Triger:
    If Item1 reports that datafile is autogrowing then check if Item2 gives value less than X or if Item1 reports that datafile is fixed size then check if Item3 is below < Y.

    Everything so far went well... but there I met with a biggest problem.

    How to make Zabbix to discover all datafiles for specified database and then force it to run that mechanism for each one?

    It should be somethnig like: get all datafile names, check Item1,2,3 for datafile1, datafile2 .... datafileX.

    Everything should have to be done to be implemented in Template for all MSSQL servers - with the smallest interference into hosts.

    Above 3 items works just when I declarete manualy one datafile.
  • Mikooo
    Junior Member
    • Feb 2018
    • 3

    #2
    Refreshing question

    Comment

    • Mikooo
      Junior Member
      • Feb 2018
      • 3

      #3
      I have created in my Template a Discovery Rule and Discovery Item.
      Discovery rule gets names of datafiles in MSSQL.
      However items from Discovery are not created in hosts assigned to template
      (item with orange link for discovery rule does not appear).

      Queery used in rule and in items works correctly (I have created two items localy on host and they worked).

      Screens:



      Comment

      Working...