Monitoring network performance

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

How to do it…

Now, one last time, we'll look at how we can create a text and graphical representation of data. Perform the following steps:

  1. Display live data for the preceding metrics; run the following command:
    ~]# 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
    
    How to do it…
  2. Create a configuration file for 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"
    
  3. Next, use pmchart to plot a live chart for guest.example.com via this command line:
    ~]# pmchart -h guest.example.com -c network.conf
    
    How to do it…
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset