Total InBound and Outbound Traffic in the Graph using Ifcon

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
xerophyte
Posts: 2
Joined: Sun Jun 13, 2004 8:45 am

Total InBound and Outbound Traffic in the Graph using Ifcon

Post by xerophyte »

Hello,
I am using following script to get the Local Traffic from the local Ethernet Card

Code: Select all

#!/usr/bin/perl -w
# linux_trf.pl
$mem = `ifconfig "$ARGV[0]" | grep bytes`;
$mem =~ s/RX bytes:(\d*)(.*)TX bytes:(\d*)(.*)//;

print "input\:$1 output\:$3";
I get the graph and comment for the input and output traffic.

When i try to create data source for Total input and output traffic, then modified the Graph template to include as comment.

I am not getting anything there. Does anybody know how can i get the Total input and output traffic on the same graph as the input and out put.
xerophyte
Posts: 2
Joined: Sun Jun 13, 2004 8:45 am

Post by xerophyte »

To Explain little more

Below you can see my graph and Data center Graph. Mine missing the Total input and putput comment values.

How can i get the Total input and output number in my graph.

thanks in advance
Attachments
my_graph.png
my_graph.png (51.39 KiB) Viewed 1292 times
dc_graph.jpg
dc_graph.jpg (44.74 KiB) Viewed 1292 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests