Ad Widget

Collapse

Cannot update trigger.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Override
    Junior Member
    • Apr 2011
    • 3

    #1

    Cannot update trigger.

    Hi,
    I have been breaking my head on this for a while now and I really don't see any logic in this problem.

    I had to change the settings for a pretty standard trigger named "Too many processes running on {HOSTNAME}" but I can not edit it and save it, better yet when I open it, and without changing something, I immediately try to save it it also doesn't work, it only gives me ERROR: Cannot update trigger
    Host key does not exist. Check expression part starting from ' roc.num[,,run].last(0)}>40 '

    This check is in a Template but that's why I'm also editing the trigger in Templates»Configuration of triggers like I learned in the past.

    Nothing is greyed-out so I know I'm on the right place... I also tested this on another template where this check is in and it gave me the same error.
    Then I tested it on another zabbix server also in a template and there it did work. So something is different on this Zabbix Server.... but what?


    Strange thing is, when I manually edit the check and remove the ",,run" part so in stead of "{Template-blah-Linuxroc.num[,,run].last(0)}>40" I use "{Template-blah-Linuxroc.num[].last(0)}>40" then I can save it but then as you probably know it triggers on all the processes instead of the running processes. And that's not what I want..


    If anyone ever had a similar problem (and solved it) please let me know!
    I really want to fix this stuff now that I'm still liking Zabbix...
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    you must have an item before referencing it in a trigger. so either create an item with those parameters, or edit the existing one.
    Zabbix 3.0 Network Monitoring book

    Comment

    • Override
      Junior Member
      • Apr 2011
      • 3

      #3
      Originally posted by richlv
      you must have an item before referencing it in a trigger. so either create an item with those parameters, or edit the existing one.

      Thanx for your answer. But The item is there. The trigger works but I can't change it.

      If I run the check from cli like :
      # zabbix_get -s hostname -k proc.num[,,run].last\(0\)
      or
      # zabbix_get -s hostname -k proc.num[,,run].last

      then it works fine... But if you think I missed something please tell me!
      Last edited by Override; 09-09-2011, 02:26. Reason: Dont want to use real hostnames in here

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        no, zabbix_get does not show you anything about items configured, you do that with the frontend
        Zabbix 3.0 Network Monitoring book

        Comment

        • Override
          Junior Member
          • Apr 2011
          • 3

          #5
          Originally posted by richlv
          no, zabbix_get does not show you anything about items configured, you do that with the frontend
          I'm afraid you don't get my point.

          For testing I just did a mysql dump and imported this on a test server, somehow I can immediately change the trigger without any problems.

          So there must be a problem in the database I think but still it doesn't make sense.

          Comment

          • richlv
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Oct 2005
            • 3112

            #6
            hrm. in that case zabbix_get was not needed at all
            is zabbix frontend at the same version on both systems ? maybe you just need latest version for this to work correctly
            Zabbix 3.0 Network Monitoring book

            Comment

            Working...