Item/
Key: icmp_ping[]
when i run this command it dont work.
But If I goto Hosts tab and rename ex. backup storage to an IP address like 192.168.123.123
then my icmp_ping[] start to work (output will be 192.168.123.123)
Soo... how can I parse the IP number and not name: "Backup storage" to my script ?
is ther some kind of key i can use to get the ip address parsed?
ex. icmp_ping[$ip] ??
I cant have a zabbix list with over 200 IP addresses instead of real names.
please help.
This is my script icmp_ping
#!/bin/sh
ping -c10 -i0.20 $1 | tail -n 1 | awk '{print $4}'| cut -d/ -f2
Key: icmp_ping[]
when i run this command it dont work.
But If I goto Hosts tab and rename ex. backup storage to an IP address like 192.168.123.123
then my icmp_ping[] start to work (output will be 192.168.123.123)
Soo... how can I parse the IP number and not name: "Backup storage" to my script ?
is ther some kind of key i can use to get the ip address parsed?
ex. icmp_ping[$ip] ??
I cant have a zabbix list with over 200 IP addresses instead of real names.
please help.
This is my script icmp_ping
#!/bin/sh
ping -c10 -i0.20 $1 | tail -n 1 | awk '{print $4}'| cut -d/ -f2


Comment