Ad Widget

Collapse

Best way to collect 'triggers' from zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • selipe
    Junior Member
    • Oct 2018
    • 1

    #1

    Best way to collect 'triggers' from zabbix

    Wondering whats the best way to collect the inventory of triggers configured in zabbix ? Any suggestions will be of a great help. Thanks in advance.
  • Mike2K
    Member
    • Oct 2018
    • 62

    #2
    What's your use case for this ? You could get them directly from the database (tricky, use at own risk) or through the API (you should use the API)

    Comment

    • Zadralo23
      Member
      • Aug 2014
      • 34

      #3
      Originally posted by selipe
      Wondering whats the best way to collect the inventory of triggers configured in zabbix ? Any suggestions will be of a great help. Thanks in advance.
      Hello.
      You can use Zabbix web console.
      Try this:
      Configurations - Host - Triggers. Set all groups and Set all hosts. You can see all triggers table.
      Select table and insert in to Excell.

      But a more correct sql query method or API requests

      Comment


      • selipe
        selipe commented
        Editing a comment
        Thanks a lot for this. Is there a way to save them in to an Excell ? I have tried but don't seem to see an option in zabbix on triggers window. If theres one that would be really helpful. Thanks again.

      • Zadralo23
        Zadralo23 commented
        Editing a comment
        For save to Excell.
        Select the mouse that you need. Ctrl + C, Insert to Excell with ctrl + V.
        If you can select many triggers, then change in your user profile "refresh" time and "rows per page". But do not set too much value in the field "rows per page", You may not have enough memory in the Apache. Usualy 60s and 200-300 rows will be fine. But for a short time you can set up to 1000 rows.

        For delete radio button in Excell I do this:
        1. Insert data to first page excell
        2. Select data without radio button
        3. Insert data in another page excell
        4. Delete bad page and save file.
    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #4
      Originally posted by selipe
      Wondering whats the best way to collect the inventory of triggers configured in zabbix ? Any suggestions will be of a great help. Thanks in advance.
      Triggers are logical rules about alarms on evaluating monitoring data from items.
      Inventory data are some monitored host description data which can be populated manually or automatically out of contents of the items.
      There is no any connection what so ever between those two things.
      http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
      https://kloczek.wordpress.com/
      zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
      My zabbix templates https://github.com/kloczek/zabbix-templates

      Comment

      Working...