Skip to content

Commit

Permalink
ens224 in vsp7
Browse files Browse the repository at this point in the history
  • Loading branch information
rschitz committed Mar 24, 2021
1 parent 98bc9be commit 0a08f74
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion etc/collectd/collectd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ LoadPlugin write_graphite
#</Plugin>

<Plugin interface>
Interface "ens192"
Interface "eth0"
IgnoreSelected false
</Plugin>

Expand Down
10 changes: 5 additions & 5 deletions root/PullGuestInfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ if [[ $GUESTINFO =~ "VMware ESXi" ]]; then

echo "auto lo" > /etc/network/interfaces
echo "iface lo inet loopback" >> /etc/network/interfaces
echo "allow-hotplug ens192" >> /etc/network/interfaces
echo "iface ens192 inet static" >> /etc/network/interfaces
echo "allow-hotplug eth0" >> /etc/network/interfaces
echo "iface eth0 inet static" >> /etc/network/interfaces
echo " address $GUESTIP" >> /etc/network/interfaces
echo " netmask $GUESTMASK" >> /etc/network/interfaces
echo " gateway $GUESTGW" >> /etc/network/interfaces
Expand Down Expand Up @@ -45,9 +45,9 @@ if [[ $GUESTINFO =~ "VMware ESXi" ]]; then
/etc/init.d/resolvconf stop
/etc/init.d/resolvconf start

ifdown ens192
ifup ens192
ifdown eth0
ifup eth0

fi

fi
fi
2 changes: 1 addition & 1 deletion usr/share/grafana/public/dashboards/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@
"targets": [
{
"refId": "A",
"target": "aliasByNode(collectd.sexigraf.interface-ens192.if_octets.*, 4)",
"target": "aliasByNode(collectd.sexigraf.interface-eth0.if_octets.*, 4)",
"textEditor": false
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@
"targets": [
{
"refId": "A",
"target": "aliasByNode(scaleToSeconds(collectd.sexigraf.interface-ens192.if_octets.*, 1), 4)"
"target": "aliasByNode(scaleToSeconds(collectd.sexigraf.interface-eth0.if_octets.*, 1), 4)"
}
],
"thresholds": [],
Expand Down

0 comments on commit 0a08f74

Please sign in to comment.