Script parameters in Media types

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      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.

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

              Created:
              Updated:
              Resolved: