Ad Widget

Collapse

It's possible to get historical value in trigger name?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #16
    It is not about thinking but checking the release notes https://www.zabbix.com/rn/rn6.2.3 (https://support.zabbix.com/browse/ZBX-21266)

    Markku

    Comment

    • Freezstyler
      Member
      • Oct 2022
      • 39

      #17
      Okay, so we finally updated our server to 6.2.6 and the issue persist. Still got *UNKNOWN*. I also tried to simplify it for debugging, so I created simple expression for uptime, when it's > 0 (which is always true), but Zabbix instead of printing the value to Problem still giving me *UNKNOWN*

      For what else can I look, or where could be problem?

      Click image for larger version

Name:	image.png
Views:	256
Size:	27.2 KB
ID:	458583

      Click image for larger version

Name:	image.png
Views:	234
Size:	35.3 KB
ID:	458584

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1781

        #18
        Can you check and show zabbix_server.log that you really have started 6.2.6?

        Markku

        Comment

        • Freezstyler
          Member
          • Oct 2022
          • 39

          #19
          Unfortunately I can't, still don't have access to server, but GUI says 6.2.6

          Comment

          • Freezstyler
            Member
            • Oct 2022
            • 39

            #20
            Originally posted by Markku
            Can you check and show zabbix_server.log that you really have started 6.2.6?

            Markku
            So I finally got access to the server and it's up and running 6.2.6

            zabbix /]$ zabbix_server -V
            zabbix_server (Zabbix) 6.2.6
            Revision 6981d8b729a 5 December 2022, compilation time: Dec 5 2022 10:20:52

            Copyright (C) 2022 Zabbix SIA
            License GPLv2+: GNU GPL version 2 or later <https://www.gnu.org/licenses/>.
            This is free software: you are free to change and redistribute it according to
            the license. There is NO WARRANTY, to the extent permitted by law.

            This product includes software developed by the OpenSSL Project
            for use in the OpenSSL Toolkit (http://www.openssl.org/).

            Compiled with OpenSSL 1.1.1k FIPS 25 Mar 2021
            Running with OpenSSL 1.1.1k FIPS 25 Mar 2021

            Comment

            • Markku
              Senior Member
              Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
              • Sep 2018
              • 1781

              #21
              That's not any proof of having Zabbix server version 6.2.6 process actually currently running in the background, you know. Updating the executable files on disk don't affect the running processes, and the default upgrade process doesn't restart the service automatically.

              Please check and show the actual log.

              Markku

              Comment

              • Freezstyler
                Member
                • Oct 2022
                • 39

                #22
                Originally posted by Markku
                That's not any proof of having Zabbix server version 6.2.6 process actually currently running in the background, you know. Updating the executable files on disk don't affect the running processes, and the default upgrade process doesn't restart the service automatically.

                Please check and show the actual log.

                Markku
                I know that and I restared Zabbix server few times today. But as you wish, this is from server log...


                532785:20230208:161654.545 Starting Zabbix Server. Zabbix 6.2.6 (revision 6981d8b729a).
                532785:20230208:161654.545 ****** Enabled features ******
                532785:20230208:161654.545 SNMP monitoring: YES
                532785:20230208:161654.545 IPMI monitoring: YES
                532785:20230208:161654.545 Web monitoring: YES
                532785:20230208:161654.545 VMware monitoring: YES
                532785:20230208:161654.545 SMTP authentication: YES
                532785:20230208:161654.545 ODBC: YES
                532785:20230208:161654.545 SSH support: YES
                532785:20230208:161654.545 IPv6 support: YES
                532785:20230208:161654.545 TLS support: YES
                532785:20230208:161654.545 ******************************​

                Comment

                • Markku
                  Senior Member
                  Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
                  • Sep 2018
                  • 1781

                  #23
                  So now you actually know that your server is running 6.2.6. Does your configuration work now?

                  (Reminder: worked for me with 6.2.4 in November, didn't work for you in 6.2.2)

                  Markku

                  Comment

                  • Freezstyler
                    Member
                    • Oct 2022
                    • 39

                    #24
                    Originally posted by Markku
                    So now you actually know that your server is running 6.2.6. Does your configuration work now?

                    (Reminder: worked for me with 6.2.4 in November, didn't work for you in 6.2.2)

                    Markku
                    Well it does not, if it works I don't be here . I still have *UNKNOWN* in problem like before ...

                    Comment

                    • Markku
                      Senior Member
                      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
                      • Sep 2018
                      • 1781

                      #25
                      I think I'm out of ideas right now. It worked for me on 6.2.4, and works currently on 6.4.0rc1:

                      Click image for larger version  Name:	image.png Views:	0 Size:	5.7 KB ID:	459156

                      Click image for larger version  Name:	image.png Views:	0 Size:	19.4 KB ID:	459154

                      (also tested with Event name = {?last(/Testhost/testitem)}, worked fine, showed just the last value)

                      Click image for larger version  Name:	image.png Views:	0 Size:	11.8 KB ID:	459155

                      Markku

                      Comment

                      • Tristis Oris
                        Member
                        • Sep 2015
                        • 66

                        #26
                        6.4.3 don't work. Any version show *UNKNOWN*
                        {?last(/item)}
                        {?last(/item,#2)}
                        {?last(/item,#5)}
                        {?last(/item,5m)}
                        Last edited by Tristis Oris; 09-06-2023, 09:04.

                        Comment

                        • takenp
                          Junior Member
                          • Sep 2025
                          • 1

                          #27
                          I made it working )
                          According to https://www.zabbix.com/documentation...ression_macros

                          In template.. omit the host altogether for the first host—for example, {?avg(//item1,1h)}—instead of template names, as template names are not replaced with host names during template linking
                          So I put something like:

                          disk state changed from [ {?last(//vfs.file.contents[SOMEPATH],#2)} ] --> [ {?last(//vfs.file.contents[SOMEPATH],#1)} ]
                          into Event Name field​ and got previous and last valuses (!) to be displayed when trigger occurs.


                          *I am working on a template for mdadm raids monitoring so it is in a trigger based on items discovery

                          Comment

                          Working...