Ad Widget

Collapse

Set "trigger displaying options" via API or some non-GUI method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ulff
    Junior Member
    • Aug 2014
    • 5

    #1

    Set "trigger displaying options" via API or some non-GUI method

    I need to set "Display OK triggers for" 0 seconds. I can do this in Zabbix GUI by navigating to Zabbix Administration->General->Trigger displaying options.

    But I need to do this either via the API in a script or by editing a static config file (if something like that exists). Is that possible?
  • filipp.sudanov
    Senior Member
    Zabbix Certified Specialist
    • May 2014
    • 137

    #2
    Just a little bit curious - what's the reason for trying to do this via API? Do you need to do this many times?

    Not sure, if this can be done via API. It's probably stored somewhere in the database. You can try setting debug mode on in user group properties and see the debug section when you edit that value in the frontend - is should have some sql update query. So you can try do manipulate this setting directly in the database, also this is no recommended, since database structure changes from version to version.

    Comment

    • ulff
      Junior Member
      • Aug 2014
      • 5

      #3
      Originally posted by filipp.sudanov
      Just a little bit curious - what's the reason for trying to do this via API? Do you need to do this many times?.
      Thanks for answering!

      The reason for why I need this is that I need to set up Zabbix installations without any user interaction. I have a lot of templates, actions and other stuff I configure for each installation by using the API. And there is other things I also would like to configure, but doesn't seem available through the API or config files.

      I will look into the database and see where this info is stored. But it would be cleaner to do it through the API.

      Comment

      Working...