If possible I would like to be able to have the hosts sub domain shown in the action message.
All of our host names look something like "host1.sub.domain.net"
I do have "Host: {HOST.NAME}" in my message which does give me the entire "host1.sub.domain.net", but I would also like to include the sub domain for better at a glance visibility.
I tried creating a Global macro:
{$HOST_ENV} => {{HOST.NAME}.iregsub("\.(.*?)\.", \1)}
And then included this in the message, "Sub domain: {$HOST_ENV}"
But it literally gave me "{{HOST.NAME}.iregsub("\.(.*?)\.", \1)}" in the message.
All of our host names look something like "host1.sub.domain.net"
I do have "Host: {HOST.NAME}" in my message which does give me the entire "host1.sub.domain.net", but I would also like to include the sub domain for better at a glance visibility.
I tried creating a Global macro:
{$HOST_ENV} => {{HOST.NAME}.iregsub("\.(.*?)\.", \1)}
And then included this in the message, "Sub domain: {$HOST_ENV}"
But it literally gave me "{{HOST.NAME}.iregsub("\.(.*?)\.", \1)}" in the message.
Comment