Hello!
I am trying to monitor the total outgoing traffic from an AWS server over various time ranges using Zabbix. I have figured out how to do this with a manually created item, but want to implement this as a template so I can monitor all interfaces for each server added to Zabbix through my ansible deployment process. I have been digging through the documentation for hours and haven't quite figured out how to do this.
To set it up for a single interface manually, I am using a calculated item and hard-coding the name of the interface in the following formula:
In order for this to be fully templated for use with ansible, I suspect I will need to set this up in the item prototype section under the discovery rules. This is one example of something that I have tried:
However, I am receiving the following error when using the test feature:
If I ignore the error and save anyway, the item does not show up on any of the hosts where the template is applied.
Using Zabbix 5.4.
I'd really appreciate any help, thanks!
I am trying to monitor the total outgoing traffic from an AWS server over various time ranges using Zabbix. I have figured out how to do this with a manually created item, but want to implement this as a template so I can monitor all interfaces for each server added to Zabbix through my ansible deployment process. I have been digging through the documentation for hours and haven't quite figured out how to do this.
To set it up for a single interface manually, I am using a calculated item and hard-coding the name of the interface in the following formula:
Code:
(max(//net.if.out["ens5"],1h)-min(//net.if.out["ens5"],1h))/1024
Code:
(max(//net.if.out["{#IFNAME}"],1h)-min(//net.if.out["{#IFNAME}"],1h))/1024
Cannot evaluate function: item "/Linux server/net.if.out["{#IFNAME}"]" does not exist at "max(//net.if.out["{#IFNAME}"],1h)-min(//net.if.out["{#IFNAME}"],1h))/1024".
Using Zabbix 5.4.
I'd really appreciate any help, thanks!
Comment