Hi,
I have hosts with two possible IPs with a particular rules between them.
I've created a script.sh that exits 0 if OK and 1 if NOK.
The script takes in parameter the IP of the host.
I want to create an item that uses this script. I think it is with UserParameter but I can't make it work correctly...
I defined it in zabbix_agentd.conf this way:
UserParameter=test.ping,/path/ping-test.sh $1 //here, I don't know what I should put as a key in order that $1 is the IP of the host.
ping-test.sh has 777 permissions.
In Item configuration, I choose zabbix agent as type and {IPADDRESS} as Key.
Could you help me please?
I have hosts with two possible IPs with a particular rules between them.
I've created a script.sh that exits 0 if OK and 1 if NOK.
The script takes in parameter the IP of the host.
I want to create an item that uses this script. I think it is with UserParameter but I can't make it work correctly...
I defined it in zabbix_agentd.conf this way:
UserParameter=test.ping,/path/ping-test.sh $1 //here, I don't know what I should put as a key in order that $1 is the IP of the host.
ping-test.sh has 777 permissions.
In Item configuration, I choose zabbix agent as type and {IPADDRESS} as Key.
Could you help me please?
Comment