Zabbix The default network Discovery template does not display IP, I want him to display IP on graph's title, as in the following effect
I. Scripting
[Email protected] ~]# chown-r zabbix.zabbix/etc/zabbix/Script[[email protected]~]# chmod755/etc/zabbix/script/Discovery_dev.sh[[email protected]~]# cat/etc/zabbix/script/discovery_dev.sh #!/bin/bashts=$ (Cat/proc/net/dev|tail-n +3| Awk'{print $}'|cut-d:-F1) Num=$ (Cat/proc/net/dev|tail-n +3| Awk'{print $}'|cut-d:-F1|WC-l) printf"{\ n"printf"\t\ "data\": [" forLineinch$ts; DoIP=$ (ifconfig $line |grep"inet Addr"|awk'{print $}'|cut-d:-F2) printf"\n\t\t{\n\t\t\t\ "{#IFNAME}\": \ "$line \", \ "{#IP}\": \ "$ip \"}"(Num--)) if["$num"==0];then Break;ElsePrintf","; fidoneprintf"]"printf"}"
Two Configuring Client Acquisition Scripts
Three Test
Three Modify the self-brought template
Zabbix Default Network Discovery template modification