<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Re: [hobbit] All hosts network traffic graph page</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Okay thanks all of our servers are on eth0 or eth1 so I can graph both and if one isn't active then no big deal<BR>
<BR>
----- Original Message -----<BR>
From: Henrik Stoerner <henrik@hswn.dk><BR>
To: hobbit@hswn.dk <hobbit@hswn.dk><BR>
Sent: Mon Mar 10 05:18:46 2008<BR>
Subject: Re: [hobbit] All hosts network traffic graph page<BR>
<BR>
On Sat, Mar 08, 2008 at 09:35:49PM -0600, Taylor Lewick wrote:<BR>
> Is there a simple way to setup a view via a report or link in hobbit so<BR>
> that I can display all of the hosts network traffic graphs?<BR>
><BR>
> Kind of like an mrtg style view.  That way if we see bandwidth spike on<BR>
> our switch we can pull up this page and get a quick view of which hosts<BR>
> are talking a lot?<BR>
<BR>
Tricky, because network interface names vary from one host to another.<BR>
<BR>
What you can do is to create a multi-graph definition in<BR>
hobbitgraph.cfg that picks out the exact NIC graph you want.<BR>
Copy the existing "ifstat" definition, and make a new "eth0-multi"<BR>
graph where the FNPATTERN refers only to the interface graph<BR>
you want - i.e. instead of the "ifstat.(.+).rrd" pattern you<BR>
refer to the exact "ifstat.INTERFACE.rrd" file matching the name<BR>
of your NIC. E.g. for "eth0":<BR>
<BR>
[eth0-multi]<BR>
        FNPATTERN ifstat.eth0.rrd<BR>
        TITLE Network Traffic<BR>
        YAXIS Bits/second<BR>
        DEF:inbytes@RRDIDX@=@RRDFN@:bytesReceived:AVERAGE<BR>
        CDEF:in@RRDIDX@=inbytes@RRDIDX@,8,*<BR>
        DEF:outbytes@RRDIDX@=@RRDFN@:bytesSent:AVERAGE<BR>
        CDEF:out@RRDIDX@=outbytes@RRDIDX@,8,*<BR>
        LINE2:in@RRDIDX@#@COLOR@:@RRDPARAM@  inbound<BR>
        GPRINT:in@RRDIDX@:LAST: \: %10.1lf (cur)<BR>
        GPRINT:in@RRDIDX@:MAX: \: %10.1lf (max)<BR>
        GPRINT:in@RRDIDX@:MIN: \: %10.1lf (min)<BR>
        GPRINT:in@RRDIDX@:AVERAGE: \: %10.1lf (avg)\n<BR>
        LINE2:out@RRDIDX@#@COLOR@:@RRDPARAM@ outbound<BR>
        GPRINT:out@RRDIDX@:LAST: \: %10.1lf (cur)<BR>
        GPRINT:out@RRDIDX@:MAX: \: %10.1lf (max)<BR>
        GPRINT:out@RRDIDX@:MIN: \: %10.1lf (min)<BR>
        GPRINT:out@RRDIDX@:AVERAGE: \: %10.1lf (avg)\n<BR>
<BR>
Then you can create a new metric on the "Metrics Report" page by adding<BR>
a new "<option>" ... in the ~hobbit/server/web/hostgraphs_form : Find<BR>
the "<SELECT" tag and add an option for the "eth0" graph:<BR>
<BR>
        <SELECT NAME=testname MULTIPLE SIZE=15><BR>
        <option value="ALL" SELECTED>ALL</option><BR>
        ... other current options ...<BR>
        <option value="eth0">Network I/O eth0</option><BR>
<BR>
Note that in hobbitgraph.cfg the name is "eth0-multi", but in the<BR>
hostgraphs_form it is just "eth0". The "-multi" is added automatically.<BR>
<BR>
You should then be able to view the eth0 I/O from the Metrics report<BR>
page.<BR>
<BR>
<BR>
Regards,<BR>
Henrik<BR>
<BR>
<BR>
To unsubscribe from the hobbit list, send an e-mail to<BR>
hobbit-unsubscribe@hswn.dk<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>