| 1 |
#!@RRDCGI@ |
| 2 |
|
| 3 |
<!-- |
| 4 |
###################################################################### |
| 5 |
# _ _ _ _ |
| 6 |
# (_) | | | | | | |
| 7 |
# _ _ __ | |_ ___ | |_ __ _| | |
| 8 |
# | | '_ \| __/ _ \| __/ _` | | |
| 9 |
# | | |_) | || (_) | || (_| | | |
| 10 |
# |_| .__/ \__\___/ \__\__,_|_| |
| 11 |
# | | |
| 12 |
# |_| V0.3 Dec. 17, 2001 |
| 13 |
# By Antoine Megens |
| 14 |
# [email protected] |
| 15 |
# |
| 16 |
# RRD CGI script to display graphs of total IP bandwidth usage |
| 17 |
# without the need for an SNMP daemon |
| 18 |
# |
| 19 |
# part of iptotal package for FREESCO |
| 20 |
# |
| 21 |
###################################################################### |
| 22 |
--> |
| 23 |
|
| 24 |
<HTML> |
| 25 |
<HEAD> |
| 26 |
<TITLE>Network usage</TITLE> |
| 27 |
|
| 28 |
<META HTTP-EQUIV="REFRESH" CONTENT="300"> |
| 29 |
<META HTTP-EQUIV="EXPIRES" CONTENT="Thu, 06 Dec 2001 09:54:52 GMT"> |
| 30 |
<META HTTP-EQUIV="pragma" CONTENT="no-cache"> |
| 31 |
|
| 32 |
</HEAD> |
| 33 |
<BODY bgColor=#000000 leftMargin=20 link=#00ff00 text=#ffff00 topMargin=20 |
| 34 |
vLink=#008000 background="/images/zertxtr.gif" bgproperties="fixed"> |
| 35 |
|
| 36 |
<H1>Network usage</H1> |
| 37 |
|
| 38 |
<table> |
| 39 |
<tr><td align=right> |
| 40 |
Database last updated: </td> |
| 41 |
<td><FONT COLOR=#FF7733> |
| 42 |
<RRD::TIME::LAST @datadir@/iptotal.rrd %c> |
| 43 |
</FONT><BR></tr> |
| 44 |
<tr><td align=right> |
| 45 |
Server Time: </td> |
| 46 |
<td> |
| 47 |
<FONT COLOR=#FF7733><RRD::TIME::NOW %c></FONT> |
| 48 |
</td> |
| 49 |
</table> |
| 50 |
<h2><p><RRD::INCLUDE @datadir@/result.txt></p></h2> |
| 51 |
<HR> |
| 52 |
<P><RRD::GRAPH @datadir@/images/eth_month.png |
| 53 |
--title "Total data throughput (last month)" |
| 54 |
--imgformat PNG |
| 55 |
--width 600 |
| 56 |
--height 150 |
| 57 |
--lazy |
| 58 |
--end 'now-60s' |
| 59 |
--start 'end-744h' |
| 60 |
--imginfo '<IMG SRC=/images/%s ALT="kB/s">' |
| 61 |
DEF:in=@datadir@/iptotal.rrd:input:AVERAGE |
| 62 |
DEF:inmax=@datadir@/iptotal.rrd:input:MAX |
| 63 |
DEF:out=@datadir@/iptotal.rrd:output:AVERAGE |
| 64 |
AREA:inmax#009828:"In kByte/s" |
| 65 |
LINE2:out#ff0000:"Out kByte/s" |
| 66 |
LINE2:in#0000ff:"In Avg." |
| 67 |
> |
| 68 |
</P> |
| 69 |
<HR> |
| 70 |
<a href="/"> |
| 71 |
<img border="0" src="/images/home.gif" hspace="10" width="42" height="36"></a> |
| 72 |
<a href="iptotal.cgi"> |
| 73 |
<img border=0 src="/images/Daily_Button.gif" hspace=5 alt="Last 24 hr"></a> |
| 74 |
<a href="iptotal_w.cgi"> |
| 75 |
<img border=0 src="/images/Week_Button.gif" hspace=5 alt="Last Week"></a> |
| 76 |
<a href="iptotal_y.cgi"> |
| 77 |
<img border=0 src="/images/Year_Button.gif" hspace=5 alt="Last Year"></a> |
| 78 |
<a href="archive.cgi"> |
| 79 |
<img border=0 src="/images/Archive_Button.gif" hspace=5 alt="Last 30 Days"></a> |
| 80 |
</BODY> |
| 81 |
</HTML> |