3.0.28, 4.0.9, 4.2.3, 4.4.0alpha1
Steps to reproduce:
- From the problems list or latest data or similar, choose a host on IPv6
- Click the host and choose ping
Ping fails, script error
Ping should work on both protocols.
Replace the ping script with something checking for protocol on machines with older iputils. I resorted to using an external script, since writing the script in the script editor in zabbix didn't allow for expanding variables. This is perhaps another bug I should report. The script I wrote, was simply this:
if $( echo $1 | grep -q ':' )
- echo $1 | grep -q ':' && OPTS='-6'
ping $OPTS -c 3 $1
case $? in