Hi all.
I have two hardware NTP servers defined as hosts. I wrote a script which checks them using ntpdate, the script is run from Zabbix server. I use this script as an item of type "external check". When I define an item to monitor for a host in its "Key" field I write "check_ntp_zabbix.sh[{IPADDRESS}]" and in "Type" field "External check".
When I write the check_ntp_zabbix.sh script in such a way that it doesn't need a parameter the check is performed well by Zabbix. But I would like to make it a part of a template and to give IP address of external NTP server as a parameter (./check_ntp_zabbix.sh 10.0.0.1 for example). So i tried to use macros: "check_ntp_zabbix.sh[{IPADDRESS}]" but it doesn't work.
Could someone help?
How to use the script in a template and give an IP address as a parameter using macro?
Thank you very much,
R.
I have two hardware NTP servers defined as hosts. I wrote a script which checks them using ntpdate, the script is run from Zabbix server. I use this script as an item of type "external check". When I define an item to monitor for a host in its "Key" field I write "check_ntp_zabbix.sh[{IPADDRESS}]" and in "Type" field "External check".
When I write the check_ntp_zabbix.sh script in such a way that it doesn't need a parameter the check is performed well by Zabbix. But I would like to make it a part of a template and to give IP address of external NTP server as a parameter (./check_ntp_zabbix.sh 10.0.0.1 for example). So i tried to use macros: "check_ntp_zabbix.sh[{IPADDRESS}]" but it doesn't work.
Could someone help?
How to use the script in a template and give an IP address as a parameter using macro?
Thank you very much,
R.
Comment