Debian Codegraph @

www/iptotal.cgi.in

raw ◀ ▶
Source reconstructed at patch state 0 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="/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_2hr.png
53 --title "Total data throughput (last two hours)"
54 --imgformat PNG
55 --width 600
56 --height 200
57 --lazy
58 --end 'now-60s'
59 --start 'end-2h'
60 --imginfo '<IMG SRC=/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 <P><RRD::GRAPH @datadir@/images/eth_day.png
69 --title "Total data throughput (last 24 hr)"
70 --imgformat PNG
71 --lazy
72 --width 600
73 --height 150
74 --end 'now-60s'
75 --start 'end-24h'
76 --imginfo '<IMG SRC=/images/%s ALT="kB/s">'
77 DEF:in=@datadir@/iptotal.rrd:input:AVERAGE
78 DEF:out=@datadir@/iptotal.rrd:output:AVERAGE
79 DEF:maxin=@datadir@/iptotal.rrd:input:MAX
80 DEF:maxout=@datadir@/iptotal.rrd:output:MAX
81 AREA:in#009828:"In kByte/s"
82 LINE2:out#ff0000:"Out kByte/s"
83 LINE2:maxin#0030ff:"Max In"
84 LINE2:maxout#ff8040:"Max Out"
85 >
86 </P>
87 <HR>
88 <a href="/">
89 <img border="0" src="/images/home.gif" hspace="10" width="42" height="36"></a>
90 <a href="iptotal_w.cgi">
91 <img border=0 src="/images/Week_Button.gif" hspace=5 alt="Last Week"></a>
92 <a href="iptotal_m.cgi">
93 <img border=0 src="/images/Month_Button.gif" hspace=5 alt="Last Month"></a>
94 <a href="iptotal_y.cgi">
95 <img border=0 src="/images/Year_Button.gif" hspace=5 alt="Last Year"></a>
96 <a href="archive.cgi">
97 <img border=0 src="/images/Archive_Button.gif" hspace=5 alt="Last 30 Days"></a>
98
99 </BODY>
100 </HTML>