Hi,
I am quit new to zabbix. Now running version 3.4.7.
I want to create an item to monitor an host using a external script. I loaded a script called timediff.sh in /usr/lib/zabbix/externalscripts/ with execute permissions for zabbix. This script needs 1 parameter $1 that defines the hostname or host IP address.
In the documentation for older zabbix versions , there is a reference to the use of external scripts. In there it states that zabbix will add the hostname or host ip as $1 when a script is called. I defined the script in the External Check item as:
timediff.sh[]
I can see in zabbix 3.4.7 that the script is executed but without the $1 parameter or $1 is in the wrong format to be accepted. For the script to run properly I need to exec timed.sh <ip or hostname> eg timed.sh 10.1.0.34
Can anybody point me in where to find the right documentation to do this or help me out ?
Thanks,
Rob.
I am quit new to zabbix. Now running version 3.4.7.
I want to create an item to monitor an host using a external script. I loaded a script called timediff.sh in /usr/lib/zabbix/externalscripts/ with execute permissions for zabbix. This script needs 1 parameter $1 that defines the hostname or host IP address.
In the documentation for older zabbix versions , there is a reference to the use of external scripts. In there it states that zabbix will add the hostname or host ip as $1 when a script is called. I defined the script in the External Check item as:
timediff.sh[]
I can see in zabbix 3.4.7 that the script is executed but without the $1 parameter or $1 is in the wrong format to be accepted. For the script to run properly I need to exec timed.sh <ip or hostname> eg timed.sh 10.1.0.34
Can anybody point me in where to find the right documentation to do this or help me out ?
Thanks,
Rob.
Comment