Ad Widget

Collapse

how to monitor selected database table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Eric25
    Junior Member
    • Nov 2020
    • 16

    #1

    how to monitor selected database table

    Hi.
    I would like to monitor if a row has been added to a given table during the last hour and I would like to download this row in part. I currently have an MSSQL by ODBC template that contains discovery roles from database discovery. Currently the template collects a large amount of data but needs to check if a row is added to a given table and then a trigger is fired. The question is how can I do it quickly? I will add that I would like to monitor several tables with different names
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    The simplest thing is to create a item with the "select count(*) from youtable" in SQL query (if the table has a key field, then it is better to select count(keyfield) from youtable).
    Then you make a trigger with the diff or change function.



    Comment

    • Eric25
      Junior Member
      • Nov 2020
      • 16

      #3
      @edition
      I was able to add a trigger. A very important question, how can I add monitoring of several tables from different databases to one template? should I create a separate item for monitoring each time? And how can I display the content of a given entry in the trigger?
      Last edited by Eric25; 15-12-2020, 15:03.

      Comment

      • tonyxavierj
        Junior Member
        • Apr 2022
        • 5

        #4
        Eric25 how did you achieve this?
        I am trying to monitor a table and get the count.

        Comment

        Working...