Hi everyone!
I'm using an external check to retrieve NTP data from a bunch of servers, the key for the external check is like this:
ntp_offset.sh["-t","{HOST.CONN}","-s", "213.209.109.45"]
the script ntp_offset.sh connects to the host specified with -t using ntpq, retrieves the data about the servers and returns the offset specified with the option -s.
I would like to use the values from the External Check in a calculated item, but using the function
last( "ntp_offset.sh["-t","{HOST.CONN}","-s","213.209.109.45"]" )
gives me the following error when Zabbix executes the check
Cannot evaluate function "last()": item "db-01:ntp_offset.sh["-t","{HOST.CONN}","-s","213.209.109.45"]" does not exist.
I tried to replace {HOST.CONN} with the IP of the host, the fqdn of the host and the hostname of the host ....same result as before.
Anyone have succesfully used an External Check or another key containing macros as part of a Calculated Item?
Is there a way to get the real key of the External Check item with macro expanded?
Thanks a lot!
I'm using an external check to retrieve NTP data from a bunch of servers, the key for the external check is like this:
ntp_offset.sh["-t","{HOST.CONN}","-s", "213.209.109.45"]
the script ntp_offset.sh connects to the host specified with -t using ntpq, retrieves the data about the servers and returns the offset specified with the option -s.
I would like to use the values from the External Check in a calculated item, but using the function
last( "ntp_offset.sh["-t","{HOST.CONN}","-s","213.209.109.45"]" )
gives me the following error when Zabbix executes the check
Cannot evaluate function "last()": item "db-01:ntp_offset.sh["-t","{HOST.CONN}","-s","213.209.109.45"]" does not exist.
I tried to replace {HOST.CONN} with the IP of the host, the fqdn of the host and the hostname of the host ....same result as before.
Anyone have succesfully used an External Check or another key containing macros as part of a Calculated Item?
Is there a way to get the real key of the External Check item with macro expanded?
Thanks a lot!
Comment