In this recipe, we'll look at the following network metrics:
network.interface.collisions
network.interface.in.bytes
network.interface.in.packets
network.interface.in.errors
network.interface.in.drops
network.interface.out.bytes
network.interface.out.packets
network.interface.out.errors
network.interface.out.drops
Now, one last time, we'll look at how we can create a text and graphical representation of data. Perform the following steps:
~]# pmdumptext -H -t 1 -i -l network.interface.collisions network.interface.in.bytes network.interface.in.packets network.interface.in.errors network.interface.in.drops network.interface.out.bytes network.interface.out.packets network.interface.out.errors network.interface.out.drops -h guest.example.com
pmchart
to display live data called network.conf
with the following contents:#kmchart version 1 chart style plot antialiasing off plot color #ff0000 metric network.interface.collisions instance "eth0" chart style plot antialiasing off plot color #00ff00 metric network.interface.in.bytes instance "eth0" plot color #ff0000 metric network.interface.out.bytes instance "eth0" chart style plot antialiasing off plot color #00ff00 metric network.interface.in.packets instance "eth0" plot color #ff0000 metric network.interface.out.packets instance "eth0" chart style plot antialiasing off plot color #00ff00 metric network.interface.in.errors instance "eth0" plot color #ff0000 metric network.interface.out.errors instance "eth0" chart style plot antialiasing off plot color #00ff00 metric network.interface.in.drops instance "eth0" plot color #ff0000 metric network.interface.out.drops instance "eth0"
pmchart
to plot a live chart for guest.example.com
via this command line:~]# pmchart -h guest.example.com -c network.conf