Ad Widget

Collapse

Zabbix 1.8.3 : Cannot edit trigger threshold

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kh3ops
    Junior Member
    • Nov 2010
    • 1

    #1

    Zabbix 1.8.3 : Cannot edit trigger threshold

    Hi,

    I've just installed Zabbix 1.8.3 and everything's going pretty well.

    The only problem is that I cannot edit triggers threshold. Let's take, for example, cpu load for one of my servers. Triggers is enabled when load > 5.

    When I try to edit trigger settings, I change value to 7 or 8, then save. But when page reload, trigger comes back to 5


    Any idea what I did wrong?

    Thanks,

    Kh3ops
  • dovka
    Junior Member
    • Nov 2010
    • 6

    #2
    RE: Zabbix 1.8.3 : Cannot edit trigger threshold

    I'm having the same issue - interface allows to change the threshold but doesn't save it.

    Comment

    • dovka
      Junior Member
      • Nov 2010
      • 6

      #3
      RE: Zabbix 1.8.3 : update trigger threshold in the database

      Here is a quick workaround for the bug:

      See the URL for the update action:




      here you see triggerid=13032
      login to the zabbix DB and run:

      select expression from triggers where triggerid=13032;

      I get:

      EXPRESSION
      -------------------------
      {12550}>10


      So update threshold to 20 is basic:

      update triggers
      set expression='{12550}>20'
      where triggerid=13032;

      Comment

      • catswhiskers
        Junior Member
        • Nov 2010
        • 2

        #4
        RE: Zabbix 1.8.3 : update trigger threshold in the database

        Unfortunately your url is private, but thanks for the clue. You don't explain how to work out what triggerid refers to which host.
        eg
        select triggerid,description,expression from triggers where description like 'Too many processes%';
        .... many lines.....
        13546 | Too many processes on {HOSTNAME} | {12703}>300

        I tried hunting it down from the original schema but it was taking too long. Lucky for me I only needed to change the latest, got to be a problem if it's not. Some kind of entity map would be nice

        Comment

        • dovka
          Junior Member
          • Nov 2010
          • 6

          #5
          You can see the UI and get that URL from Zabbix UI:
          zabbix/triggers.php?form=update&triggerid=13032&sid=e5b59 6e5942c2170

          triggerid=13032 is the part you care about - it gives you the exact trigger id.

          Comment

          • catswhiskers
            Junior Member
            • Nov 2010
            • 2

            #6
            RE: Zabbix 1.8.3 : update trigger threshold in the database

            Excellent. Much obliged.

            Comment

            • dovka
              Junior Member
              • Nov 2010
              • 6

              #7
              Triggers don't save but can be re-created

              The problem in 1.8.3 I have is not only thresholds cannot be update (saved),
              but any trigger change doesn't get persisted.

              I tried to change the trigger expression, everything works properly until you hit the "save" button:

              I get "Trigger updated" green message but in reality nothing changes.

              I was able to work it around by creating a new trigger with the expressions I wanted though.

              Comment

              Working...