Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post support questions that directly relate to Linux/Unix operating systems.
Moderators: Developers , Moderators
xerophyte
Posts: 2 Joined: Sun Jun 13, 2004 8:45 am
Post
by xerophyte » Sun Jun 13, 2004 8:49 am
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 » Sun Jun 13, 2004 9:37 am
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 (51.39 KiB) Viewed 1292 times
dc_graph.jpg (44.74 KiB) Viewed 1292 times
Users browsing this forum: No registered users and 2 guests