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