Ad Widget

Collapse

Bad triggering function "nodata (0)" shared in the expression.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tomek86
    Junior Member
    • Dec 2018
    • 5

    #1

    Bad triggering function "nodata (0)" shared in the expression.

    Hi, a have problem with template Juniper SRX for HA.
    When I try to add a template to a host, I have the same error as in the subject. Does anyone have an idea what's going on?

  • aigars.kadikis
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2018
    • 208

    #2
    Hello tomek86,

    Which Zabbix version exactly you are using to add this template to host? Does the host have other templates too?
    BTW, there should not be a space between nodata and (0). It should be nodata(0).

    Regards,

    Comment

    • tomek86
      Junior Member
      • Dec 2018
      • 5

      #3
      Hi,

      Version: Zabbix 4.0.0rc3
      There is no others templates on host.
      This is orginal expression from template
      <expression>{Template Juniper SRX - Automaty:jnxOperatingUpTime.9.1.0.0.nodata(0)}=1</expression>

      Comment

      • aigars.kadikis
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2018
        • 208

        #4
        I did try to import
        https://share.zabbix.com/network_dev...per-srx-series (Version 3.0)
        on version 4.0.0rc3
        and attached it to host having one SNMP interface. No errors were received.

        Does your host have only one interface? How your scenario differs?

        Comment

        • tomek86
          Junior Member
          • Dec 2018
          • 5

          #5
          I have only one interface and using this template (version 4.0)
          Attached Files

          Comment

          • aigars.kadikis
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Mar 2018
            • 208

            #6
            Very thank you for the template. It helps a lot.

            Apparently, the trigger expression is wrong. We cannot use nodata function together with 0. Practically it checks if there is a gap zero seconds ago.

            Solution: kindly replace nodata(0) with nodata(5m).

            Regards,

            Comment

            • tomek86
              Junior Member
              • Dec 2018
              • 5

              #7
              It works, now I can add template to host. But...

              One more thing, I have this message now:
              item does not have enough data after server start or item creation.

              Any clue?

              Comment

              • aigars.kadikis
                Senior Member
                Zabbix Certified SpecialistZabbix Certified Professional
                • Mar 2018
                • 208

                #8
                It means exactly what it states "item does not have gathered enough data yet". You can make sure nothing has come on the latest data page under Monitoring -> Latest data.

                By the time you are reading this, it probably works

                Comment

                • tomek86
                  Junior Member
                  • Dec 2018
                  • 5

                  #9
                  You were right, everything works fine. Thanks !

                  Comment

                  • HemantBhavsar
                    Junior Member
                    • Oct 2019
                    • 1

                    #10
                    Hi ,
                    Looking for help , I am trying add template for juniper srx1400 & getting this error "
                    Incorrect trigger function "nodata(0)" provided in expression. Invalid first parameter." any ideas any help will be appreciated . Thanks , Hemant

                    Comment

                    Working...