Debian Codegraph @

www/iptotal_y.cgi.in

raw ◀ ▶
Source reconstructed at patch state 1 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
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="/iptotal/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_year.png
53 --title "Total data throughput (last year)"
54 --imgformat PNG
55 --width 600
56 --height 150
57 --lazy
58 --end 'now-60s'
59 --start 'end-365d'
60 --imginfo '<IMG SRC=/iptotal/images/%s ALT="kB/s">'
61 DEF:in=@datadir@/iptotal.rrd:input:AVERAGE
62 DEF:out=@datadir@/iptotal.rrd:output:AVERAGE
63 AREA:in#009828:"In kByte/s"
64 LINE2:out#ff0000:"Out kByte/s"
65 >
66 </P>
67 <HR>
68 <a href="/">
69 <img border="0" src="/iptotal/images/home.gif" hspace="10" width="42" height="36"></a>
70 <a href="iptotal.cgi">
71 <img border=0 src="/iptotal/images/Daily_Button.gif" hspace=5 alt="Last 24 hr"></a>
72 <a href="iptotal_w.cgi">
73 <img border=0 src="/iptotal/images/Week_Button.gif" hspace=5 alt="Last Week"></a>
74 <a href="iptotal_m.cgi">
75 <img border=0 src="/iptotal/images/Month_Button.gif" hspace=5 alt="Last Month"></a>
76 <a href="archive.cgi">
77 <img border=0 src="/iptotal/images/Archive_Button.gif" hspace=5 alt="Last 30 Days"></a>
78 </BODY>
79 </HTML>