According to the documentation:
{HOSTNAME} Hostname of first item of the trigger which caused a notification.
{IPADDRESS} IP address of first item of the trigger which caused a notification.
So that explains why the messages I tried to send on autodiscovery (such as: "new host discovered", or "host removed") reads *UNKNOWN* instead of the value I expected the macros would return.
I think it would be a good idea to extend the usage of this both macros, so that they will be usefull in discovery actions too.
{HOSTNAME} Hostname of first item of the trigger which caused a notification.
{IPADDRESS} IP address of first item of the trigger which caused a notification.
So that explains why the messages I tried to send on autodiscovery (such as: "new host discovered", or "host removed") reads *UNKNOWN* instead of the value I expected the macros would return.
I think it would be a good idea to extend the usage of this both macros, so that they will be usefull in discovery actions too.
Comment