Hello,
I'll start off by trying to explain my goal. I'm trying to achieve having one host with multiple agents. However to be able to distinguish which server a service supposedly turned off on or the server restarted, I'd like to print the hostname defined in the zabbix agent config.
If I use "Service "" is not running on {system.hostname}" within a trigger, it returns the name of the Zabbix "Host" which in this case is "B3D", not the machine's hostname. even though I can see from Latest Data that "system.hostname" is printing the actual machine hostname which in this example is "SQL001".
I have also tried to print {agent.hostname} since that also appears as an item that seems to be usable within Zabbix, (not documentation but the actual items intergrated into the application) and it just prints it as it's inputted, therefore not being able to fetch the data. While it still fetches it in the "Latest Data" section as again. "SQL001"
I'm not sure how to print it as this point without having multiple hosts and would appreciate any help and can answer any raised questions.
OS: Windows Server 2016 Standard Version 1607
Zabbix: Agent & Server Version: 4.2.6
Edit: I'd like to add that when I use {HOST.IP} it displays the IP correctly, but whenever I do {HOST.ID}, it always prints it raw and doesn't print anything as it can't fetch that data
I'll start off by trying to explain my goal. I'm trying to achieve having one host with multiple agents. However to be able to distinguish which server a service supposedly turned off on or the server restarted, I'd like to print the hostname defined in the zabbix agent config.
If I use "Service "" is not running on {system.hostname}" within a trigger, it returns the name of the Zabbix "Host" which in this case is "B3D", not the machine's hostname. even though I can see from Latest Data that "system.hostname" is printing the actual machine hostname which in this example is "SQL001".
I have also tried to print {agent.hostname} since that also appears as an item that seems to be usable within Zabbix, (not documentation but the actual items intergrated into the application) and it just prints it as it's inputted, therefore not being able to fetch the data. While it still fetches it in the "Latest Data" section as again. "SQL001"
I'm not sure how to print it as this point without having multiple hosts and would appreciate any help and can answer any raised questions.
OS: Windows Server 2016 Standard Version 1607
Zabbix: Agent & Server Version: 4.2.6
Edit: I'd like to add that when I use {HOST.IP} it displays the IP correctly, but whenever I do {HOST.ID}, it always prints it raw and doesn't print anything as it can't fetch that data