-
Incident report
-
Resolution: Won't fix
-
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.