Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-20406

Add an example with parameters for script item

    XMLWordPrintable

Details

    • Documentation task
    • Status: Needs documenting
    • Trivial
    • Resolution: Unresolved
    • 6.0.0alpha7
    • 6.0.0beta2, 6.0 (plan)
    • Documentation (D)
    • None
    • Team A
    • Sprint 84 (Jan 2022)
    • 1

    Description

      This was originally reported via Typo report form. Transforming into ZBX:
      As per documentation "Parameters specify the variables to be passed to the script as the attribute and value pairs.
      Built-in macros {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {ITEM.ID}, {ITEM.KEY}, {ITEM.KEY.ORIG} and user macros are supported."
      User's comment: I give a try in the parameters, but it did not work. Just define a parameter and return it in the code:
      parameter cong 48
      Script return cong
      this give an error saying cong is not defined. Please include an example, may be as simple as this one

      Documentation page
      Source file

      Attachments

        Activity

          People

            mgeneralova Marina Generalova
            mgeneralova Marina Generalova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: