Fix iface variable name on create_graphs.sh loop
Change-Id: I875992df58e3f46c5ba72b9a00832a2d48642177
This commit is contained in:
parent
321e74aca4
commit
f4ff45fdc5
@ -67,7 +67,7 @@ add_ds_graph "Host MIB - Available Disk Space" "Available Disk Space" \
|
|||||||
SNMP_QUERY_ID=`php -q add_graphs.php --host-id=$HOST_ID --list-snmp-queries | \
|
SNMP_QUERY_ID=`php -q add_graphs.php --host-id=$HOST_ID --list-snmp-queries | \
|
||||||
grep "SNMP - Interface Statistics"|cut -f 1`
|
grep "SNMP - Interface Statistics"|cut -f 1`
|
||||||
|
|
||||||
for $iface in $(php -q /usr/share/cacti/cli/add_graphs.php --host-id=$HOST_ID --snmp-field=ifName --list-snmp-values | grep -v tap| grep -v brq) ; do
|
for iface in $(php -q /usr/share/cacti/cli/add_graphs.php --host-id=$HOST_ID --snmp-field=ifName --list-snmp-values | grep -v tap| grep -v brq) ; do
|
||||||
add_ds_graph "Interface - Traffic (bits/sec)" "In/Out Bits (64-bit Counters)" \
|
add_ds_graph "Interface - Traffic (bits/sec)" "In/Out Bits (64-bit Counters)" \
|
||||||
"ifName" "$iface"
|
"ifName" "$iface"
|
||||||
add_ds_graph "Interface - Errors/Discards" "In/Out Errors/Discarded Packets" \
|
add_ds_graph "Interface - Errors/Discards" "In/Out Errors/Discarded Packets" \
|
||||||
|
Loading…
Reference in New Issue
Block a user