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

Script parameters in Media types

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • None
    • None
    • None
    • centos7

      i create a script in media types with 4 script parameters,

      {ALERT.SENDTO} {ALERT.SUBJECT} {ALERT.MESSAGE} {HOST.NAME}

      the first 3 parameter ALERT.XXX are no problem. (with code sys.arg[1],sys.arg[2],sys.arg[3])

      but i cannot get the hostname value.(with code sys.arg[4]). what i get is not the real server name but the original string '{HOST.NAME}'

      how can i get the hostname so i can pass the hostname into my script.

      Many thanks.

            Unassigned Unassigned
            molian Cloud Yao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: