Ad Widget

Collapse

Zabbix trigger discover - bug

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ales Ulrych
    Member
    • Dec 2016
    • 36

    #1

    Zabbix trigger discover - bug

    Hallo,
    I've created a Template to load cores Synology NAS. I recently added a condition that I not display an error in the time of the backup server. The problem is that for some reason my condition will change and I do not know why. -1 Disappears and is therefore invalid, then the trigger. I recently upgraded to version 3.2.4 zabbix. More can be seen in the video here 41eQ84CIcdw in h-t-t-p-s-:-/-/youtu-dot-be+/41eQ84CIcdw

    "Unfortunately I can not give a direct link to my uploaded video with an error and dont know how to contact administrator to make me loosen."

    Ales
    Last edited by Ales Ulrych; 21-03-2017, 10:16.
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by Ales Ulrych
    Hallo,
    I've created a Template to load cores Synology NAS. I recently added a condition that I not display an error in the time of the backup server. The problem is that for some reason my condition will change and I do not know why. -1 Disappears and is therefore invalid, then the trigger. I recently upgraded to version 3.2.4 zabbix. More can be seen in the video here 41eQ84CIcdw in h-t-t-p-s-:-/-/youtu-dot-be+/41eQ84CIcdw

    "Unfortunately I can not give a direct link to my uploaded video with an error and dont know how to contact administrator to make me loosen."

    Ales
    can you post the condition and from what it change to what?
    what do you see in zabbix server logs ?

    Comment

    • Ales Ulrych
      Member
      • Dec 2016
      • 36

      #3
      Originally posted by batchenr
      can you post the condition and from what it change to what?
      what do you see in zabbix server logs ?
      I do not know how to explain this strange behavior. Have you looked at the video?

      Comment

      • batchenr
        Senior Member
        • Sep 2016
        • 440

        #4
        Originally posted by Ales Ulrych
        I do not know how to explain this strange behavior. Have you looked at the video?
        cant reach from what u posted

        Comment

        • Ales Ulrych
          Member
          • Dec 2016
          • 36

          #5
          Originally posted by batchenr
          cant reach from what u posted
          Template Code, Trigger Prototypes: Expression:

          Code:
          {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].avg(300)}>70 and 
          {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].avg(300)}<91 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}<230000 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}>020000
          and {Template_Synology_AU:hrDeviceCore[{#SNMPINDEX}].last(0)}<>-1

          Host trigger:

          Code:
          {fileserver.interflag.local:hrProcessorLoad[196608].avg(300)}>70 and 
          {fileserver.interflag.local:hrProcessorLoad[196608].avg(300)}<91 and {fileserver.interflag.local:hrProcessorLoad[196608].time(0)}<230000 and {fileserver.interflag.local:hrProcessorLoad[196608].time(0)}>020000
          and {fileserver.interflag.local:hrDeviceCore[196608].last(0)}<>
          missing at the end -1


          Error: Cannot evaluate expression: unexpected end of expression.

          Comment

          • batchenr
            Senior Member
            • Sep 2016
            • 440

            #6
            Originally posted by Ales Ulrych
            Template Code, Trigger Prototypes: Expression:

            Code:
            {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].avg(300)}>70 and 
            {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].avg(300)}<91 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}<230000 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}>020000
            and {Template_Synology_AU:hrDeviceCore[{#SNMPINDEX}].last(0)}<>-1

            Host trigger:

            Code:
            {fileserver.interflag.local:hrProcessorLoad[196608].avg(300)}>70 and 
            {fileserver.interflag.local:hrProcessorLoad[196608].avg(300)}<91 and {fileserver.interflag.local:hrProcessorLoad[196608].time(0)}<230000 and {fileserver.interflag.local:hrProcessorLoad[196608].time(0)}>020000
            and {fileserver.interflag.local:hrDeviceCore[196608].last(0)}<>
            missing at the end -1


            Error: Cannot evaluate expression: unexpected end of expression.
            last(0)}<>1 only means not equal
            try doing last(-1)}=1 or last(-1)}<>1 demands on what u need

            Comment

            • Ales Ulrych
              Member
              • Dec 2016
              • 36

              #7
              Originally posted by batchenr
              last(0)}<>1 only means not equal
              try doing last(-1)}=1 or last(-1)}<>1 demands on what u need
              Incorrect trigger function "last(-1)" provided in expression. Invalid first parameter.

              Comment

              • Ales Ulrych
                Member
                • Dec 2016
                • 36

                #8
                Originally posted by Ales Ulrych
                Incorrect trigger function "last(-1)" provided in expression. Invalid first parameter.

                The strange thing is that this code does work:

                Code:
                {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].avg(300)}>90 and {Template_Synology_AU:hrDeviceCore[{#SNMPINDEX}].last(0)}<>-1 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}<230000 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}>020000
                It's bug. When I add a fifth condition, in the last conditions disappear parameter. Example Discovery Template:

                Code:
                {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].avg(300)}>90 and {Template_Synology_AU:hrDeviceCore[{#SNMPINDEX}].last(0)}<>-1 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}<230000 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}>020000 and 
                {Template_Synology_AU:hrDeviceDescr[{#SNMPINDEX}].str("blbost")}<>1
                and Host:

                Code:
                {fileserver.interflag.local:hrProcessorLoad[196608].avg(300)}>90 and {fileserver.interflag.local:hrDeviceCore[196608].last(0)}<>-1 and {fileserver.interflag.local:hrProcessorLoad[196608].time(0)}<230000 and {fileserver.interflag.local:hrProcessorLoad[196608].time(0)}>020000 and 
                {fileserver.interflag.local:hrDeviceDescr[196608].str("blbost")}<>
                again at the end missing 1
                Last edited by Ales Ulrych; 21-03-2017, 13:31.

                Comment

                • batchenr
                  Senior Member
                  • Sep 2016
                  • 440

                  #9
                  then solved ?

                  Comment

                  • Ales Ulrych
                    Member
                    • Dec 2016
                    • 36

                    #10
                    Originally posted by batchenr
                    then solved ?
                    Unfortunately, no:

                    It's bug. When I add a fifth condition, in the last conditions disappear parameter. Example Discovery Template:

                    Code:

                    {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].avg(300)}>90 and {Template_Synology_AU:hrDeviceCore[{#SNMPINDEX}].last(0)}<>-1 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}<230000 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}>020000 and
                    {Template_Synology_AU:hrDeviceDescr[{#SNMPINDEX}].str("blbost")}<>1

                    and Host:

                    Code:

                    {fileserver.interflag.local:hrProcessorLoad[196608].avg(300)}>90 and {fileserver.interflag.local:hrDeviceCore[196608].last(0)}<>-1 and {fileserver.interflag.local:hrProcessorLoad[196608].time(0)}<230000 and {fileserver.interflag.local:hrProcessorLoad[196608].time(0)}>020000 and
                    {fileserver.interflag.local:hrDeviceDescr[196608].str("blbost")}<>

                    again at the end missing 1

                    Comment

                    • batchenr
                      Senior Member
                      • Sep 2016
                      • 440

                      #11
                      Originally posted by Ales Ulrych
                      Unfortunately, no:

                      It's bug. When I add a fifth condition, in the last conditions disappear parameter. Example Discovery Template:

                      Code:

                      {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].avg(300)}>90 and {Template_Synology_AU:hrDeviceCore[{#SNMPINDEX}].last(0)}<>-1 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}<230000 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}>020000 and
                      {Template_Synology_AU:hrDeviceDescr[{#SNMPINDEX}].str("blbost")}<>1

                      and Host:

                      Code:

                      {fileserver.interflag.local:hrProcessorLoad[196608].avg(300)}>90 and {fileserver.interflag.local:hrDeviceCore[196608].last(0)}<>-1 and {fileserver.interflag.local:hrProcessorLoad[196608].time(0)}<230000 and {fileserver.interflag.local:hrProcessorLoad[196608].time(0)}>020000 and
                      {fileserver.interflag.local:hrDeviceDescr[196608].str("blbost")}<>

                      again at the end missing 1
                      maybe like this :

                      Code:
                      ({Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].avg(300)}>90) and
                      ({Template_Synology_AU:hrDeviceCore[{#SNMPINDEX}].last(0)}<>-1) and
                      ({Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}<230000) and
                      ({Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}>020000) and 
                      ({Template_Synology_AU:hrDeviceDescr[{#SNMPINDEX}].str(blbost)}<>1)

                      Comment

                      • Ales Ulrych
                        Member
                        • Dec 2016
                        • 36

                        #12
                        Originally posted by batchenr
                        maybe like this :

                        Code:
                        ({Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].avg(300)}>90) and
                        ({Template_Synology_AU:hrDeviceCore[{#SNMPINDEX}].last(0)}<>-1) and
                        ({Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}<230000) and
                        ({Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}>020000) and 
                        ({Template_Synology_AU:hrDeviceDescr[{#SNMPINDEX}].str(blbost)}<>1)
                        In a Host Trigger missing parenthesis at the end

                        ({fileserver.interflag.local:hrProcessorLoad[196608].avg(300)}>90) and ({fileserver.interflag.local:hrDeviceCore[196608].last(0)}<>-1) and ({fileserver.interflag.local:hrProcessorLoad[196608].time(0)}<230000) and ({fileserver.interflag.local:hrProcessorLoad[196608].time(0)}>020000) and ({fileserver.interflag.local:hrDeviceDescr[196608].str("blbost")}<>1

                        Cannot evaluate expression: unexpected end of expression
                        Last edited by Ales Ulrych; 21-03-2017, 13:47.

                        Comment

                        • batchenr
                          Senior Member
                          • Sep 2016
                          • 440

                          #13
                          Originally posted by Ales Ulrych
                          In a guest missing parenthesis at the end

                          ({fileserver.interflag.local:hrProcessorLoad[196608].avg(300)}>90) and ({fileserver.interflag.local:hrDeviceCore[196608].last(0)}<>-1) and ({fileserver.interflag.local:hrProcessorLoad[196608].time(0)}<230000) and ({fileserver.interflag.local:hrProcessorLoad[196608].time(0)}>020000) and ({fileserver.interflag.local:hrDeviceDescr[196608].str("blbost")}<>1

                          Cannot evaluate expression: unexpected end of expression
                          then like this :

                          Code:
                          ({Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].avg(300)}>90 and
                          {Template_Synology_AU:hrDeviceCore[{#SNMPINDEX}].last(0)}<>-1 and
                          {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}<230000 and
                          {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}>020000 and 
                          {Template_Synology_AU:hrDeviceDescr[{#SNMPINDEX}].str(blbost)}<>1)

                          Comment

                          • Ales Ulrych
                            Member
                            • Dec 2016
                            • 36

                            #14
                            Originally posted by batchenr
                            then like this :

                            Code:
                            ({Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].avg(300)}>90 and
                            {Template_Synology_AU:hrDeviceCore[{#SNMPINDEX}].last(0)}<>-1 and
                            {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}<230000 and
                            {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}>020000 and 
                            {Template_Synology_AU:hrDeviceDescr[{#SNMPINDEX}].str(blbost)}<>1)
                            Same again for me Host Trigger missing parenthesis at the end.

                            Original:

                            Code:
                            ({Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].avg(300)}>90 and {Template_Synology_AU:hrDeviceCore[{#SNMPINDEX}].last(0)}<>-1 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}<230000 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}>020000 and 
                            {Template_Synology_AU:hrDeviceDescr[{#SNMPINDEX}].str("blbost")}<>1)
                            And Trigger in Host.

                            Code:
                            ({fileserver.interflag.local:hrProcessorLoad[196608].avg(300)}>90 and {fileserver.interflag.local:hrDeviceCore[196608].last(0)}<>-1 and {fileserver.interflag.local:hrProcessorLoad[196608].time(0)}<230000 and {fileserver.interflag.local:hrProcessorLoad[196608].time(0)}>020000 and 
                            {fileserver.interflag.local:hrDeviceDescr[196608].str("blbost")}<>1
                            Error: Cannot evaluate expression: unexpected end of expression.

                            Comment

                            • batchenr
                              Senior Member
                              • Sep 2016
                              • 440

                              #15
                              Originally posted by Ales Ulrych
                              Same again for me Host Trigger missing parenthesis at the end.

                              Original:

                              Code:
                              ({Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].avg(300)}>90 and {Template_Synology_AU:hrDeviceCore[{#SNMPINDEX}].last(0)}<>-1 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}<230000 and {Template_Synology_AU:hrProcessorLoad[{#SNMPINDEX}].time(0)}>020000 and 
                              {Template_Synology_AU:hrDeviceDescr[{#SNMPINDEX}].str("blbost")}<>1)
                              And Trigger in Host.

                              Code:
                              ({fileserver.interflag.local:hrProcessorLoad[196608].avg(300)}>90 and {fileserver.interflag.local:hrDeviceCore[196608].last(0)}<>-1 and {fileserver.interflag.local:hrProcessorLoad[196608].time(0)}<230000 and {fileserver.interflag.local:hrProcessorLoad[196608].time(0)}>020000 and 
                              {fileserver.interflag.local:hrDeviceDescr[196608].str("blbost")}<>1
                              Error: Cannot evaluate expression: unexpected end of expression.

                              its all about the -1
                              look at this thred maybe it will help :

                              Comment

                              Working...