summaryrefslogtreecommitdiff
path: root/contrib/monitor
diff options
context:
space:
mode:
authorbeatrice <beatrice@dangofactory.net>2026-11-22 20:00:14 +0900
committerbeatrice <beatrice@dangofactory.net>2026-11-22 20:00:14 +0900
commit8f68d02045982da8f00a559835b500caf3a1967d (patch)
treec8d0e92969b92e1b6559a0e032b6aa710a8ae2d9 /contrib/monitor
parentbb5ff95073e5001be7dbf58ffce80d7926deff0b (diff)
downloadmrtg-master.tar.gz
mrtg-master.zip
Release tarball mrtg-2.17.7.tar.gz (dist-generated files / local differences from tag)HEADmaster
Diffstat (limited to 'contrib/monitor')
-rw-r--r--contrib/monitor/Monitor.mdbbin0 -> 110592 bytes
-rw-r--r--contrib/monitor/config.asp274
-rw-r--r--contrib/monitor/default.asp254
-rw-r--r--contrib/monitor/global.asa25
-rw-r--r--contrib/monitor/global/main.css411
-rw-r--r--contrib/monitor/images/mrtg-l.gifbin0 -> 343 bytes
-rw-r--r--contrib/monitor/images/mrtg-m.gifbin0 -> 1144 bytes
-rw-r--r--contrib/monitor/images/mrtg-r.gifbin0 -> 1779 bytes
-rw-r--r--contrib/monitor/images/mrtg-ti.gifbin0 -> 4696 bytes
-rw-r--r--contrib/monitor/images/msie.gifbin0 -> 9132 bytes
-rw-r--r--contrib/monitor/images/msprod.gifbin0 -> 15856 bytes
-rw-r--r--contrib/monitor/images/spacer.gifbin0 -> 43 bytes
-rw-r--r--contrib/monitor/login.asp176
-rw-r--r--contrib/monitor/monitor.html78
-rw-r--r--contrib/monitor/monitor.inc22
-rw-r--r--contrib/monitor/readme.txt139
16 files changed, 1379 insertions, 0 deletions
diff --git a/contrib/monitor/Monitor.mdb b/contrib/monitor/Monitor.mdb
new file mode 100644
index 0000000..43f1fe5
--- /dev/null
+++ b/contrib/monitor/Monitor.mdb
Binary files differ
diff --git a/contrib/monitor/config.asp b/contrib/monitor/config.asp
new file mode 100644
index 0000000..d946463
--- /dev/null
+++ b/contrib/monitor/config.asp
@@ -0,0 +1,274 @@
+<% @LANGUAGE="VBSCRIPT" %>
+<% Response.Expires = 0 %>
+<% Server.ScriptTimeout = 1200 %>
+<!-- #INCLUDE FILE="monitor.inc" -->
+<%
+ If ID = "" Then
+ Response.Redirect(NoAuthURL)
+ End If
+
+ ' We only execute this code if the user actually submitted the configuration form from the page.
+ If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
+
+ ' Get the values that he or she entered at the configuration page.
+ Password = Request.Form("Password") ' The circuit password.
+ NewPassword = Request.Form("NewPassword") ' Change password.
+ NewConfirmedPassword = Request.Form("ConfirmPassword") ' Change password confirmation.
+ EMail = Request.Form("TechEMail") ' Technical E-Mail address.
+ Graph_Daily = Request.Form("Daily_Graph") ' Display Daily Graphs.
+ Graph_Weekly = Request.Form("Weekly_Graph") ' Display Weekly Grahps.
+ Graph_Monthly = Request.Form("Monthly_Graph") ' Dispaly Monthly Graphs.
+ Graph_Yearly = Request.Form("Yearly_Graph") ' Display Yearly Graphs.
+
+ ' Check Graph_Daily
+ If Graph_Daily = "" Then
+ Graph_Daily = 0
+ Else
+ Graph_Daily = 1
+ End If
+
+ ' Check Graph_Weekly
+ If Graph_Weekly = "" Then
+ Graph_Weekly = 0
+ Else
+ Graph_Weekly = 1
+ End If
+
+ ' Check Graph_Monthly
+ If Graph_Monthly = "" Then
+ Graph_Monthly = 0
+ Else
+ Graph_Monthly = 1
+ End If
+
+ ' Check Graph_Yearly
+ If Graph_Yearly = "" Then
+ Graph_Yearly = 0
+ Else
+ Graph_Yearly = 1
+ End If
+
+ ' Did the user enter his or her password?
+ If Password = "" Then ' We dont have a password!
+ Error = "Please Enter Your Password"
+ End If
+
+ ' Now that we have the password, compare in in the database...
+ set rsPassword = DBConn.Execute("SELECT LinePassword FROM Monitor_Authenticate WHERE ID=" & ID)
+
+ TempPass = rsPassword("LinePassword") ' Get the password in the database.
+
+ rsPassword.close ' Close the lookup record.
+ Set rsPassword = Nothing
+
+ If Password <> TempPass Then ' The password did not match the database.
+ Error = "Invalid Password"
+ End If
+
+ If NewPassword <> "" Then ' Compare the NewPassword with the
+ ' ConfirmedPassword...
+ If NewPassword <> NewConfirmedPassword Then ' The two password do not match.
+ Error="Your Passwords Did Not Match"
+ Else
+ Password = NewPassword ' Set the new password to be updated in the
+ ' database.
+ End If
+ End If
+
+
+ If Error = "" Then ' If we do not have a error, everything is
+ ' well, lets update the records.
+
+ If ID <> 1 Then ' ID 1 is the guest account, dont update the
+ ' database.
+ set rsUpdate = DBConn.Execute("UPDATE Monitor_Authenticate SET LinePassword='" & Password & "', " &_
+ "EMail_Address='" & EMail & "', " &_
+ "Graph_Day=" & Graph_Daily & ", " &_
+ "Graph_Week=" & Graph_Weekly & ", " &_
+ "Graph_Month=" & Graph_Monthly & ", " &_
+ "Graph_Year=" & Graph_Yearly &_
+ " WHERE (ID=" & ID & ")")
+
+ Set rsUpdate = nothing ' Database update successfull.
+
+ End If
+
+ ' Update Session information...
+ Session("DBLinePassword") = Password ' Update the password for the session.
+ Session("DBEMail_Address") = EMail ' Update the E-Mail for the session.
+ If Graph_Daily = 1 Then ' Daily Graph
+ Session("DBGraph_Day") = True
+ Else
+ Session("DBGraph_Day") = False
+ End If
+ If Graph_Weekly = 1 Then ' Weekly Graph
+ Session("DBGraph_Week") = True
+ Else
+ Session("DBGraph_Week") = False
+ End If
+ If Graph_Monthly = 1 Then ' Monthly Graph
+ Session("DBGraph_Month") = True
+ Else
+ Session("DBGraph_Month") = False
+ End If
+ If Graph_Yearly = 1 Then ' Yearly Graph
+ Session("DBGraph_Year") = True
+ Else
+ Session("DBGraph_Year") = False
+ End If
+
+ Response.Redirect(MonitorURL) ' Everything is updated, go back to
+ ' monitor.
+ End If
+
+ End If
+%>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
+<meta http-equiv="Cache-Control" content="No Cache">
+<meta http-equiv="Pragma" content="No Cache">
+<meta http-equiv="Expires" content="0">
+<link rel="StyleSheet" href="global/main.css" type="text/css">
+<style type="text/css">
+<!--
+a:link { color: #003399 }
+a:visited { color: #003399 }
+a:hover { color: red }
+-->
+</style>
+</head>
+<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" onload="Clock()">
+<table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td valign="top">
+ <table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td valign="top" align="left"><font size="1"><img src="/images/spacer.gif" width="53" height="22" alt></font></td>
+ <td valign="top" align="left" width="100%">
+ <p class="HEADING"><span class="HEADING">Monitor Configuration For Circuit Number: <%= LineNumber %></span></td>
+ </tr>
+ <tr>
+ <td valign="middle" align="left" colspan="2"><font size="1"><img border="0" src="/images/spacer.gif" width="110" height="19"><a href="default.asp?mode=logout">Logout
+ of Monitor</a><img border="0" src="/images/spacer.gif" width="25" height="19"><a href="login.asp">Bandwidth Details</a></font></td>
+ </tr>
+ </table>
+ <hr>
+ <div align="left">
+ <table border="0" cellpadding="2" cellspacing="0">
+ <tr>
+ <td valign="top" align="left"><font size="1">Circuit Number:</font></td>
+ <td valign="top" align="left"><font size="1"><%= LineNumber %></font></td>
+ <td valign="top" align="left"><font size="1"><img border="0" src="/images/spacer.gif" width="10" height="10"></font></td>
+ <td valign="top" align="left"><font size="1">Circuit Speed:</font></td>
+ <td valign="top" align="left"><font size="1"><%= LineSpeed %> <i>bps</i></font></td>
+ <td valign="top" align="left"><font size="1"><img border="0" src="/images/spacer.gif" width="10" height="10"></font></td>
+ <td valign="top" align="left"><font size="1">Technical Contact:</font></td>
+ <td><a href="mailto:<%= EMail_Address %>"><font size="1"><%= EMail_Address %></font></a></td>
+ </tr>
+ <tr>
+ <td colspan="8" valign="top" align="left"><font size="1">You Last Visited Monitor On: <%= LastVisit %></font></td>
+ </tr>
+ </table>
+ </div>
+ <hr>
+ <%' Do we have a error that the user needs to know about?
+ If Error <> "" Then %>
+ <p class="COLUMNRED"><font size="1"><%= Error %></font></p>
+ <% End If %>
+
+ <p><font size="1">Please take note, for your changes to take affect, you must enter your password in the first password field.&nbsp; If you wish to change your
+ password, you may then also complete the &quot;New Password&quot; and &quot;Confirm Password&quot; fields.</p>
+ <form action="/config.asp" method="POST">
+ <div align="left">
+ <table border="0" cellpadding="2" cellspacing="1" width="822">
+ <tr>
+ <td align="right" valign="top" width="210"><font size="1">Your Password:</font></td>
+ <td valign="top" width="106"><font size="1"><input type="password" name="Password" size="20" class="INPUT"></font></td>
+ </font>
+ <td valign="middle">
+ <p class="COLUMNRED">Required For <b>ANY</b> changes to be made</td>
+ </tr>
+ <font size="1">
+ <tr>
+ <td align="right" valign="top" width="210"><font size="1">Change Your Password:</font></td>
+ <td valign="top" width="106"><font size="1"><input type="password" name="NewPassword" size="20" class="INPUT"></font></td>
+ <td valign="middle"><font size="1">New Password</font></td>
+ </tr>
+ <tr>
+ <td align="right" valign="top" width="210"><font size="1">&nbsp;</font></td>
+ <td valign="top" width="106"><font size="1"><input type="password" name="ConfirmPassword" size="20" class="INPUT"></font></td>
+ <td valign="middle"><font size="1">Confirm Password</font></td>
+ </tr>
+ <tr>
+ <td align="right" valign="top" width="210"><font size="1">Technical Contact E-Mail Address:</font></td>
+ <td valign="top" width="106"><font size="1"><input type="text" name="TechEMail" size="20" value="<%= EMail_Address %>" class="INPUT"></font></td>
+ </tr>
+ <tr>
+ <td align="right" valign="top" width="210"><font size="1">Show The Daily Graph:</font></td>
+ <td valign="top" width="106"><font size="1"><input type="checkbox" name="Daily_Graph" value="1" <% if graph_day = true then%>checked <% end if%>></font></td>
+ <td valign="top"></td>
+ </tr>
+ <tr>
+ <td align="right" valign="top" width="210"><font size="1">Show The Weekly Graph:</font></td>
+ <td valign="top" width="106"><font size="1"><input type="checkbox" name="Weekly_Graph" value="1" <% if graph_week = true then %>checked<% end if %>></font></td>
+ <td valign="top"></td>
+ </tr>
+ <tr>
+ <td align="right" valign="top" width="210"><font size="1">Show The Monthly Graph:</font></td>
+ <td valign="top" width="106"><font size="1"><input type="checkbox" name="Monthly_Graph" value="1" <% if graph_month = true then %>checked<% end if %>></font></td>
+ <td valign="top"></td>
+ </tr>
+ <tr>
+ <td align="right" valign="top" width="210"><font size="1">Show The Yearly Graph:</font></td>
+ <td valign="top" width="106"><font size="1"><input type="checkbox" name="Yearly_Graph" value="1" <% if graph_year = true then %>checked<% end if %>></font></td>
+ <td valign="top"></td>
+ </tr>
+ <tr>
+ <td align="center" valign="top" colspan="2" width="322">
+ <p align="center"><input type="submit" value="Update Configuration" name="UPDATE" class="BUTTON"></td>
+ <td valign="top"></td>
+ </tr>
+ </form>
+ </table>
+ </div>
+ <hr>
+ </font></td>
+ </tr>
+ </table>
+ <table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td>
+ <div align="left">
+ <table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td colspan="2" valign="top" align="center">
+ <p align="center"><font size="1"><b>©2000 <a href="mailto:cgknipe@mweb.co.za">Chris Knipe</a>.&nbsp; All Rights Reserved.</b></font></td>
+ </tr>
+ <tr>
+ <td valign="top" align="right"><br>
+ <img border="0" src="images/msie.gif" width="88" height="31"><img border="0" src="images/msprod.gif" width="88" height="31"><img border="0" src="images/spacer.gif" width="5" height="10"></td>
+ <td width="100%" valign="top" align="left">&nbsp;
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td width="63"><a href="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"><img alt border="0" src="http://monitor.internal.sunnyline.co.za/images/mrtg-l.gif" width="63" height="25"></a></td>
+ <td width="25"><a href="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"><img alt="MRTG" border="0" src="http://monitor.internal.sunnyline.co.za/images/mrtg-m.gif" width="25" height="25"></a></td>
+ <td width="388"><a href="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"><img alt border="0" src="http://monitor.internal.sunnyline.co.za/images/mrtg-r.gif" width="388" height="25"></a></td>
+ </tr>
+ </table>
+ <SPACER TYPE=VERTICAL SIZE=4>
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr valign="top">
+ <td><font face="Arial,Helvetica" size="2"><a href="http://tobi.oetiker.ch">Tobias Oetiker</a> <a href="mailto:tobi@oetiker.ch">&lt;tobi@oetiker.ch&gt;</a>
+ and&nbsp;<a href="http://www.bungi.com">Dave&nbsp;Rand</a>&nbsp;<a href="mailto:dlr@bungi.com">&lt;dlr@bungi.com&gt;</a></font></td>
+ </tr>
+ </table>
+ <p>&nbsp;</td>
+ </tr>
+ </table>
+ </div>
+ </td>
+ </tr>
+ </table>
+</body>
+</html>
diff --git a/contrib/monitor/default.asp b/contrib/monitor/default.asp
new file mode 100644
index 0000000..ef86161
--- /dev/null
+++ b/contrib/monitor/default.asp
@@ -0,0 +1,254 @@
+<% @LANGUAGE="VBSCRIPT" %>
+<% Response.Expires = 0 %>
+<% Server.ScriptTimeout = 1200 %>
+<% On Error Resume Next %>
+<!-- #INCLUDE FILE="monitor.inc" -->
+<%
+ ' Check if we have to log out...
+ If Request.QueryString("mode") = "logout" Then
+ ' Update the circuit access date
+ ' Get the record ID to update
+ LineID = Session("DBID")
+
+ If LineID = "" Then ' The Session Expired
+ Response.Redirect(LogOutURL)
+ End If
+
+ Set rsAuthenticate = DBConn.Execute("UPDATE Monitor_Authenticate SET LastVisit='" &_
+ Month(Date()) & "/" & Day(Date()) & "/" &_
+ Year(Date()) & " " & Time &"' WHERE (ID=" & LineID & ")")
+ Session.Abandon
+ Response.Redirect(LogOutURL)
+ End If
+
+' Status is a universal indicator implemented to show us which part of the authentication process is
+' failing.
+' For now, Status has the following values.
+' 0) No errors, everything was successfull.
+' 1) Circuit number not found in the database.
+' 2) The given password did not match for the circuit number.
+' 3) We are logged out and should redirect back to SunnyLine
+
+' We only execute this code if the user actually submitted the login form from the page.
+If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
+
+ ' Get the values that he or she entered at the login page.
+ Number = Request.Form("Number")
+ Password = Request.Form("Password")
+
+ ' Setup a default error code. We use a incorrect circuit number here.
+ Status = 1
+
+ ' Did The User Enter a circuit number & password?
+ If Number = "" Then
+ Status = 1 ' No circuit number
+ Elseif Password = "" Then
+ Status = 2 ' No password
+ Else
+ Status = 0 ' We have a circuit number & password, lets continue.
+ End If
+
+ ' If we have both circuit number and password, compare it to the database.
+ If Status = 0 Then
+
+ ' Pull the circuit number from the database.
+ Set rsAuthenticate = DBConn.Execute("SELECT * FROM Monitor_Authenticate WHERE LineNumber=" & Number)
+
+ Do While not rsAuthenticate.EOF
+
+ ' We need to give DBPassword an initial value. If for instance, a client enteres a circuit
+ ' number which is not located in the database, the lookup will fail and DBPassword won't have a
+ ' value for us to compare to. The Rnd Function should be secure enough?
+ DBPassword = Rnd(10)
+ DBID = rsAuthenticate("ID")
+ DBLine = rsAuthenticate("LineNumber")
+ DBPassword = rsAuthenticate("LinePassword")
+ DBSpeed = rsAuthenticate("LineSpeed")
+ DBEMail = rsAuthenticate("EMail_Address")
+ DBG_Day = rsAuthenticate("Graph_Day")
+ DBG_Week = rsAuthenticate("Graph_Week")
+ DBG_Month = rsAuthenticate("Graph_Month")
+ DBG_Year = rsAuthenticate("Graph_Year")
+ DBG_EMail = rsAuthenticate("Graph_EMail")
+ DBDate = rsAuthenticate("LastVisit")
+
+ If DBPassword = Password Then
+
+ ' We got what we wanted, close the database connection... Just for incase.
+ rsAuthenticate.close
+ Set rsAuthenticate = nothing
+
+ ' We setup the values inside the session before or after we move into monitor.
+ ' This is just so that we don't have to do the entire lookup process again at displaying the graps to the user, if
+ ' we save the values now, we are able to reference any setting in the DataBase that we would need at any given time.
+ Session("DBID") = DBID
+ Session("DBLineNumber") = DBLine
+ Session("DBLinePassword") = DBPassword
+ Session("DBLineSpeed") = DBSpeed
+ Session("DBEMail_Address") = DBEMail
+ Session("DBGraph_Day") = DBG_Day
+ Session("DBGraph_Week") = DBG_Week
+ Session("DBGraph_Month") = DBG_Month
+ Session("DBGraph_Year") = DBG_Year
+ Session("DBGraph_EMail") = DBG_EMail
+ Session("DBLastVisit") = DBDate
+
+ ' And we redirect !!
+ Response.Redirect(MonitorURL)
+
+ Else
+
+ ' Passwords didnt match. We are not going to worry about incorrect circuit numbers, that
+ ' will just make it easier for someone to maybe guess a line number if he or she has
+ ' nothing better to do!
+ Status = 2
+ End If
+
+ rsAuthenticate.MoveNext
+
+ Loop
+
+ ' If we are here, there was serious error. This means perhaps a incorrect curciut number and or
+ ' incorrect password. In any case, the lookup did fail, and we have no reference what so ever to the given value for
+ ' the circuit number or password. Close the database and send the user back to the login section.
+ rsAuthenticate.close
+ Set rsAuthenticate = nothing
+ End If
+
+End If
+%>
+<html>
+<head>
+<meta http-equiv="Content-Language" content="en-za">
+<meta http-equiv="Cache-Control" content="No Cache">
+<meta http-equiv="Pragma" content="No Cache">
+<meta http-equiv="Expires" content="0">
+<title>Welcome To Monitor!!</title>
+<link rel="StyleSheet" href="global/default.css" type="text/css">
+<link rel="StyleSheet" href="global/additional.css" type="text/css">
+</head>
+
+<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" onload="Clock()">
+<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top">
+
+<table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td valign="top" align="left"><font size="1"><img src="images/spacer.gif" width="53" height="52" alt></font></td>
+ <td valign="top" align="left" width="100%">
+ <h1><span class="HEADING"><font face="Verdana,Arial,Helvetica" size="1">Welcome to Monitor.SunnyLine.co.za</font></span></h1>
+ </td>
+ </tr>
+</table>
+
+<p><font size="1">Congratulations on the purchase of your high-speed permanent connections to the Internet.&nbsp; Please take a moment and log on to our monitoring system
+to see you bandwidth usage.</font></p>
+
+<p><font size="1">Your Circuit number will be the number printed on your Data Unit installed by Telkom (The small black box where your NTU or Modem plugs into).&nbsp; If
+you have any problems locating your Circuit number, or have problems authenticating with this service, please contact us for immediate assistance at <a href="mailto:support@sunnyline.co.za">support@sunnyline.co.za</a></font></p>
+
+<p><font size="1">Wondering what is Monitor! Well, don't worry, read up all about monitor by clicking <a href="/monitor.html">here</a>.</p>
+<form method="POST" action="default.asp">
+ <div align="center">
+ <center>
+ <table border="0" cellpadding="2" cellspacing="1">
+ <tr>
+ <td>
+ <div align="right">
+ <p><font size="1">Circuit Number:</font>
+ </div>
+ </td>
+ <td><font size="1"><input type="text" name="Number" size="20" value="<%= Number %>"></font></td>
+ <td>
+ <div align="left">
+ <p><b><font color="#FF0000" size="1"><% If Status = 1 Then
+ Response.Write ("Invalid Circuit Number!!!")
+ End If %></font></b>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <div align="right">
+ <p><font size="1">Your Password:</font>
+ </div>
+ </td>
+ <td><font size="1"><input type="password" name="Password" size="20" maxlength="8"></font></td>
+ <td>
+ <div align="left">
+
+ <p><b><font color="#FF0000" size="1"><% If Status = 2 Then
+ Response.Write ("Invalid Password!!!")
+ End If %></font></b>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" align="center"><font size="1"><input type="submit" value="Submit" class="BUTTON"></font></td>
+ <td></td>
+ </tr>
+ </table>
+ </center>
+ </div>
+</form>
+
+&nbsp;
+<div align="center">
+ <center>
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td colspan="2">
+ <p class="Greenhead" align="center"><font size="1">Guest Users:</font></td>
+ </tr>
+ <tr>
+ <td align="right"><font size="1">Please log in with Circuit Number:&nbsp;</font></td>
+ <td align="left"><font size="1"><b>1234567890</b></font></td>
+ </tr>
+ <tr>
+ <td align="right"><font size="1">and Password:&nbsp;</font></td>
+ <td align="left"><font size="1"><b>12345678</b></font></td>
+ </tr>
+ <tr>
+ <td align="left" colspan="2">
+ <p align="center"><font size="1">to see a demo of this service right now.</font></td>
+ </tr>
+ </table>
+ </center>
+</div>
+&nbsp;</font>
+
+</td></tr></table>
+<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>
+
+<div align="left">
+ <table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td colspan="2" valign="top" align="center">
+ <p align="center"><font size="1"><b>©2000 SunnyLine Internet Services.&nbsp; All Rights Reserved.</b></font></td>
+ </tr>
+ <tr>
+ <td valign="top" align="right"><br>
+ <img border="0" src="images/msie.gif" width="88" height="31"><img border="0" src="images/msprod.gif" width="88" height="31"><img border="0" src="images/spacer.gif" width="5" height="10"></td>
+ <td width="100%" valign="top" align="left">&nbsp;
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td width="63"><a href="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"><img alt border="0" src="/images/mrtg-l.gif" width="63" height="25"></a></td>
+ <td width="25"><a href="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"><img alt="MRTG" border="0" src="/images/mrtg-m.gif" width="25" height="25"></a></td>
+ <td width="388"><a href="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"><img alt border="0" src="/images/mrtg-r.gif" width="388" height="25"></a></td>
+ </tr>
+ </table>
+ <SPACER TYPE=VERTICAL SIZE=4>
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr valign="top">
+ <td><font face="Arial,Helvetica" size="2"><a href="http://ee-staff.ethz.ch/~oetiker">Tobias Oetiker</a> <a href="mailto:oetiker@ee.ethz.ch">&lt;oetiker@ee.ethz.ch&gt;</a>
+ and&nbsp;<a href="http://www.bungi.com">Dave&nbsp;Rand</a>&nbsp;<a href="mailto:dlr@bungi.com">&lt;dlr@bungi.com&gt;</a></font></td>
+ </tr>
+ </table>
+ <p>&nbsp;</td>
+ </tr>
+ </table>
+</div>
+
+</td></tr>
+</table></body>
+
+</html>
diff --git a/contrib/monitor/global.asa b/contrib/monitor/global.asa
new file mode 100644
index 0000000..a3a1e53
--- /dev/null
+++ b/contrib/monitor/global.asa
@@ -0,0 +1,25 @@
+<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
+Sub Session_OnStart
+ ' Make sure that new users start on the correct page.
+ startPage = "/default.asp"
+ currentPage = Request.ServerVariables("SCRIPT_NAME")
+
+ ' Do a case-insensitive compare, and if they don't match, send the user to the start
+ ' page.
+ If strcomp(currentPage,startPage,1) then
+ Response.Redirect(startPage)
+ End If
+
+End Sub
+
+
+Sub Session_OnEnd
+
+ ' Remove the temp images copied from the mrtg spool directory...
+ Set fs = CreateObject("Scripting.FileSystemObject")
+ fs.DeleteFile "c:\inetpub\monitor.sunnyline.co.za\images\mrtg\" &_
+ Session("DBLINENUMBER") & "-*.gif"
+
+End Sub
+
+</SCRIPT> \ No newline at end of file
diff --git a/contrib/monitor/global/main.css b/contrib/monitor/global/main.css
new file mode 100644
index 0000000..e31c960
--- /dev/null
+++ b/contrib/monitor/global/main.css
@@ -0,0 +1,411 @@
+BODY {
+ font : x-small Verdana, Arial, Helvetica, sans-serif;
+ font-size : 7.5pt;
+ color : 000000;}
+
+.NNBold-MCSP {
+ font : bold x-small Verdana, Arial, Helvetica, sans-serif;
+ font-size : 7.5pt;
+ font-weight : bold;
+ color : 3366CC;
+}
+
+.NNBold-DA {
+ font : bold x-small Verdana, Arial, Helvetica, sans-serif;
+ font-size : 7.5pt;
+ font-weight : bold;
+ color : 003399;
+}
+
+.NNBold-Gen {
+ font : bold x-small Verdana, Arial, Helvetica, sans-serif;
+ font-size : 7.5pt;
+ font-weight : bold;
+ color : 000000;
+}
+
+.Greenhead {
+ font : bold x-small Verdana, Arial, Helvetica, sans-serif;
+ font-size : 7.5pt;
+ font-weight : bold;
+ color : 36B236;
+ text-decoration : underline;
+}
+
+.HEADING {
+ font : x-small Verdana, Arial, Helvetica, sans-serif;
+ color : 000000;
+ font-size : 10pt;
+ font-weight : bold;
+ }
+
+
+.SEARCH {
+ font : x-small Verdana, Arial, Helvetica, sans-serif;
+ color : 003399;
+ font-size : 7.5pt;
+}
+
+.MCSP {
+ font : x-small Verdana, Arial, Helvetica, sans-serif;
+ color : 3366CC;
+ font-size : 7.5pt;
+}
+
+.MSDA {
+ font : x-small Verdana, Arial, Helvetica, sans-serif;
+ color : 003399;
+ font-size : 7.5pt;
+}
+
+.COLUMN {
+ font : x-small Verdana, Arial, Helvetica, sans-serif;
+ color : FFFFFF;
+ font-size : 7.5pt;
+ font-weight : bold;
+}
+
+.COLUMNRED {
+ font : x-small Verdana, Arial, Helvetica, sans-serif;
+ color : FF3300;
+ font-size : 7.5pt;
+ font-weight : bold;
+}
+
+.BUTTON {
+ background : 6699CC;
+ text-align : center;
+ font-weight : bold;
+ color : White;
+ font : 10px;
+ border-left-color : White;
+ border-top-color : White;
+ border-right-color : Black;
+ border-bottom-color : Black;
+}
+
+.INPUT{
+ height : 20px;
+ width : 100px;
+}
+
+
+
+DIV.Jobs {
+ position: relative;
+ width : 310;
+ height : 85;
+ border : 1px solid;
+ background-color:white;
+ padding : 8px;
+ text-align : left;
+ border-bottom-color : 003399;
+ border-color : 003399 003399 003399 003399;
+ border-left-color : 003399;
+ border-right-color : 003399;
+ border-top-color : 003399;
+}
+
+
+A.MCSPLEVEL1 {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:3366cc;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+A.MCSPLEVEL1:VISITED {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:3366cc;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+A.MCSPLEVEL1:ACTIVE {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:3366cc;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+
+A.MCSPLEVEL2 {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:3366cc;
+ cursor:hand;
+ font-weight : bold;
+ text-decoration : underline;
+}
+A.MCSPLEVEL2:VISITED {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:3366cc;
+ cursor:hand;
+ text-decoration:none;}
+A.MCSPLEVEL2:ACTIVE {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:3366cc;
+ cursor:hand;
+ text-decoration:none;}
+A.MCSPLEVEL2:HOVER {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:FF3300;
+ cursor:hand;
+ text-decoration:underline;}
+
+A.DALEVEL1 {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+A.DALEVEL1:VISITED {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+A.DALEVEL1:ACTIVE {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+
+A.DALEVEL2 {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;
+ font-weight : bold;
+ text-decoration : underline;}
+
+A.DALEVEL2:VISITED {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;
+ text-decoration:none;}
+A.DALEVEL2:ACTIVE {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;
+ text-decoration:none;}
+A.DALEVEL2:HOVER {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:FF3300;
+ cursor:hand;
+ text-decoration:underline;}
+
+
+
+.HRRED {
+ color:FF3300;
+ height : 1px;}
+
+DIV.Menu {
+ position:absolute;
+ left:160;
+ top: 200w;
+ width: 150;
+ border : 1px solid;
+ background-color:white;
+ padding : 3px;
+ text-align : left;
+ border-bottom-color : 003399;
+ border-color : 003399 003399 003399 003399;
+ border-left-color : 003399;
+ border-right-color : 003399;
+ border-top-color : 003399;
+ padding-left : 10px;
+ padding-right : 4px;
+ padding-top : 4px;
+ padding-bottom : 4px;
+ }
+
+.STANDARD {
+ font-size:8.5pt;
+ line-height:10pt;
+ color:000000;}
+
+.STANDARDSMALL {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:000000;}
+
+A.DEFAULT {
+ font-size:8.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;}
+A.DEFAULT:VISITED {
+ font-size:8.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;}
+A.DEFAULT:ACTIVE {
+ font-size:8.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;}
+A.DEFAULT:HOVER {
+ font-size:8.5pt;
+ line-height:10pt;
+ color:FF3300;
+ cursor:hand;}
+
+A.DEFAULTSMALL {
+ font-size:7.5pt;
+ line-height:5pt;
+ color:003399;
+ cursor:hand;}
+A.DEFAULTSMALL:VISITED {
+ font-size:7.5pt;
+ line-height:5pt;
+ color:003399;
+ cursor:hand;}
+A.DEFAULTSMALL:ACTIVE {
+ font-size:7.5pt;
+ color:003399;
+ line-height:5pt;
+ cursor:hand;}
+A.DEFAULTSMALL:HOVER {
+ font-size:7.5pt;
+ line-height:5pt;
+ color:FF3300;
+ cursor:hand;}
+
+A.DEFAULTSMALLSUB {
+ font-size:7.5pt;
+ line-height:8pt;
+ color:003399;
+ cursor:hand;}
+A.DEFAULTSMALLSUB:VISITED {
+ font-size:7.5pt;
+ line-height:8pt;
+ color:003399;
+ cursor:hand;}
+A.DEFAULTSMALLSUB:ACTIVE {
+ font-size:7.5pt;
+ color:003399;
+ line-height:8pt;
+ cursor:hand;}
+A.DEFAULTSMALLSUB:HOVER {
+ font-size:7.5pt;
+ line-height:8pt;
+ color:FF3300;
+ cursor:hand;}
+
+
+
+A.BOLD {
+ font-size:8.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+A.BOLD:VISITED {
+ font-size:8.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+A.BOLD:ACTIVE {
+ font-size:8.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+A.BOLD:HOVER {
+ font-size:8.5pt;
+ line-height:10pt;
+ color:FF3300;
+ cursor:hand;
+ text-decoration:underline;
+ font-weight:bold;}
+
+A.RED {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:FF3300;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+A.RED:VISITED {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:FF3300;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+A.RED:ACTIVE {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:FF3300;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+A.RED:HOVER {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;
+ text-decoration:underline;
+ font-weight:bold;}
+
+A.LEVEL1 {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:black;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+A.LEVEL1:VISITED {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:black;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+A.LEVEL1:ACTIVE {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:black;
+ cursor:hand;
+ text-decoration:none;
+ font-weight:bold;}
+
+A.LEVEL2 {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;}
+A.LEVEL2:VISITED {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:003399;
+ cursor:hand;}
+A.LEVEL2:ACTIVE {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:black;
+ cursor:hand;}
+A.LEVEL2:HOVER {
+ font-size:7.5pt;
+ line-height:10pt;
+ color:FF3300;
+ cursor:hand;
+ text-decoration:underline;}
+
+
diff --git a/contrib/monitor/images/mrtg-l.gif b/contrib/monitor/images/mrtg-l.gif
new file mode 100644
index 0000000..11eb3d7
--- /dev/null
+++ b/contrib/monitor/images/mrtg-l.gif
Binary files differ
diff --git a/contrib/monitor/images/mrtg-m.gif b/contrib/monitor/images/mrtg-m.gif
new file mode 100644
index 0000000..ec4ee9a
--- /dev/null
+++ b/contrib/monitor/images/mrtg-m.gif
Binary files differ
diff --git a/contrib/monitor/images/mrtg-r.gif b/contrib/monitor/images/mrtg-r.gif
new file mode 100644
index 0000000..cc19bd6
--- /dev/null
+++ b/contrib/monitor/images/mrtg-r.gif
Binary files differ
diff --git a/contrib/monitor/images/mrtg-ti.gif b/contrib/monitor/images/mrtg-ti.gif
new file mode 100644
index 0000000..b5fdea1
--- /dev/null
+++ b/contrib/monitor/images/mrtg-ti.gif
Binary files differ
diff --git a/contrib/monitor/images/msie.gif b/contrib/monitor/images/msie.gif
new file mode 100644
index 0000000..76b994a
--- /dev/null
+++ b/contrib/monitor/images/msie.gif
Binary files differ
diff --git a/contrib/monitor/images/msprod.gif b/contrib/monitor/images/msprod.gif
new file mode 100644
index 0000000..a7f54a2
--- /dev/null
+++ b/contrib/monitor/images/msprod.gif
Binary files differ
diff --git a/contrib/monitor/images/spacer.gif b/contrib/monitor/images/spacer.gif
new file mode 100644
index 0000000..7ab9a76
--- /dev/null
+++ b/contrib/monitor/images/spacer.gif
Binary files differ
diff --git a/contrib/monitor/login.asp b/contrib/monitor/login.asp
new file mode 100644
index 0000000..64f8d0f
--- /dev/null
+++ b/contrib/monitor/login.asp
@@ -0,0 +1,176 @@
+<% @LANGUAGE="VBSCRIPT" %>
+<% Response.Expires = 0 %>
+<% Server.ScriptTimeout = 1200 %>
+<!-- #INCLUDE FILE="monitor.inc" -->
+<%
+ If ID = "" Then ' The Session Expired
+ Response.Redirect(NoAuthURL)
+ End If
+
+ Set fs = CreateObject("Scripting.FileSystemObject") ' FileSystemObject to copy graphs
+
+ fs.CopyFile "c:\mrtg\targets\" & LineNumber & "-*.gif", "c:\InetPub\monitor.sunnyline.co.za\images\mrtg\"
+%>
+<html>
+
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
+<meta http-equiv="Cache-Control" content="No Cache">
+<meta http-equiv="Pragma" content="No Cache">
+<meta http-equiv="Expires" content="0">
+<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
+<meta name="ProgId" content="FrontPage.Editor.Document">
+<link rel="StyleSheet" href="global/main.css" type="text/css">
+<style type="text/css">
+<!--
+a:link { color: #003399 }
+a:visited { color: #003399 }
+a:hover { color: red }
+-->
+</style>
+</head>
+
+<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" onload="Clock()">
+
+<table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td valign="top">
+ <table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td valign="top" align="left"><font size="1"><img src="images/spacer.gif" width="53" height="22" alt></font></td>
+ <td valign="top" align="left" width="100%">
+ <p class="HEADING"><span class="HEADING">Bandwidth Statistics For Circuit Number: <%= LineNumber %></span></td>
+ </tr>
+ <tr>
+ <td valign="middle" align="left" colspan="2"><font size="1"><img border="0" src="images/spacer.gif" width="110" height="19"><a href="default.asp?mode=logout">Logout
+ of Monitor</a><img border="0" src="images/spacer.gif" width="25" height="19"><a href="/config.asp">Configure Monitor</a></font></td>
+ </tr>
+ </table>
+ <hr>
+ <div align="left">
+ <table border="0" cellpadding="2" cellspacing="0">
+ <tr>
+ <td valign="top" align="left"><font size="1">Circuit Number:</font></td>
+ <td valign="top" align="left"><font size="1"><%= LineNumber %></font></td>
+ <td valign="top" align="left"><font size="1"><img border="0" src="images/spacer.gif" width="10" height="10"></font></td>
+ <td valign="top" align="left"><font size="1">Circuit Speed:</font></td>
+ <td valign="top" align="left"><font size="1"><%= LineSpeed %> <i>bps</i></font></td>
+ <td valign="top" align="left"><font size="1"><img border="0" src="images/spacer.gif" width="10" height="10"></font></td>
+ <td valign="top" align="left"><font size="1">Technical Contact:</font></td>
+ <td><a href="mailto:<%= EMail_Address %>"><font size="1"><%= EMail_Address %></font></a></td>
+ </tr>
+ <tr>
+ <td colspan="8" valign="top" align="left"><font size="1">You Last Visited Monitor On: <%= LastVisit %></font></td>
+ </tr>
+ </table>
+ </div>
+ <hr>
+ <% If Graph_Day = True Then %>
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td valign="top">
+ <p class="SEARCH" align="right"><font size="1"><b>Daily Graph<br>
+ <img border="0" src="images/spacer.gif" height="10" width="100"></b></font></p>
+ </td>
+ <td valign="top"><font size="1"><img src="images/spacer.gif" width="10">Shows Your Bandwidth Usage Over the last&nbsp; 24 Hours</font></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><font size="1"><img src="/images/mrtg/<%= LineNumber%>-day.gif" alt="Daily Bandwidth Graph" width="380" height="130"></font></td>
+ </tr>
+ </table>
+ <p>&nbsp;</p>
+ <hr>
+ <% End If %>
+ <% If Graph_Week = True Then %>
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td valign="top">
+ <p class="SEARCH" align="right"><font size="1"><b>Weekly Graph<br>
+ <img border="0" src="images/spacer.gif" height="10" width="100"></b></font></p>
+ </td>
+ <td valign="top"><font size="1"><img src="images/spacer.gif" width="10">Shows Your Bandwidth Usage Over the Last 7 Days</font></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><font size="1"><img src="/images/mrtg/<%= LineNumber%>-week.gif" alt="Weekly Bandwidth Graph" width="380" height="130"></font></td>
+ </tr>
+ </table>
+ <p><font size="1"><br>
+ </font></p>
+ <hr>
+ <% End If %>
+ <% If Graph_Month = True Then %>
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td valign="top">
+ <p class="SEARCH" align="right"><font size="1"><b>Monthly Graph<br>
+ <img border="0" src="images/spacer.gif" height="10" width="100"></b></font></p>
+ </td>
+ <td valign="top"><font size="1"><img src="images/spacer.gif" width="10">Shows Your Bandwidth Usage Over The Last Month</font></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><font size="1"><img src="/images/mrtg/<%= LineNumber%>-month.gif" alt="Monthly Bandwidth Graph" width="380" height="130"></font></td>
+ </tr>
+ </table>
+ <p>&nbsp;</p>
+ <hr>
+ <% End If %>
+ <% If Graph_Year = True Then %>
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td valign="top">
+ <p class="SEARCH" align="right"><font size="1"><b>Yearly Graph<br>
+ <img border="0" src="images/spacer.gif" height="10" width="100"></b></font></p>
+ </td>
+ <td valign="top"><font size="1"><img src="images/spacer.gif" width="10">Shows Your Bandwidth Usage Over The Last Year</font></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><font size="1"><img src="/images/mrtg/<%= LineNumber%>-year.gif" alt="Yearly Bandwidth Graph" width="380" height="130"></font></td>
+ </tr>
+ </table>
+ <p>&nbsp;</p>
+ <hr>
+ <% End If %>
+ </td>
+ </tr>
+</table>
+<table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td>
+ <div align="left">
+ <table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td colspan="2" valign="top" align="center">
+ <p align="center"><font size="1"><b>©2000 <a href="mailto:cgknipe@mweb.co.za">Chris Knipe</a>.&nbsp; All Rights Reserved.</b></font></td>
+ </tr>
+ <tr>
+ <td valign="top" align="right"><br>
+ <img border="0" src="images/msie.gif" width="88" height="31"><img border="0" src="images/msprod.gif" width="88" height="31"><img border="0" src="images/spacer.gif" width="5" height="10"></td>
+ <td width="100%" valign="top" align="left">&nbsp;
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td width="63"><a href="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"><img alt border="0" src="http://monitor.internal.sunnyline.co.za/images/mrtg-l.gif" width="63" height="25"></a></td>
+ <td width="25"><a href="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"><img alt="MRTG" border="0" src="http://monitor.internal.sunnyline.co.za/images/mrtg-m.gif" width="25" height="25"></a></td>
+ <td width="388"><a href="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"><img alt border="0" src="http://monitor.internal.sunnyline.co.za/images/mrtg-r.gif" width="388" height="25"></a></td>
+ </tr>
+ </table>
+ <SPACER TYPE=VERTICAL SIZE=4>
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr valign="top">
+ <td><font face="Arial,Helvetica" size="2"><a href="http://ee-staff.ethz.ch/~oetiker">Tobias Oetiker</a> <a href="mailto:oetiker@ee.ethz.ch">&lt;oetiker@ee.ethz.ch&gt;</a>
+ and&nbsp;<a href="http://www.bungi.com">Dave&nbsp;Rand</a>&nbsp;<a href="mailto:dlr@bungi.com">&lt;dlr@bungi.com&gt;</a></font></td>
+
+ </tr>
+ </table>
+ <p>&nbsp;</td>
+ </tr>
+ </table>
+ </div>
+ </td>
+ </tr>
+</table>
+</body>
+</html>
diff --git a/contrib/monitor/monitor.html b/contrib/monitor/monitor.html
new file mode 100644
index 0000000..e0e57e1
--- /dev/null
+++ b/contrib/monitor/monitor.html
@@ -0,0 +1,78 @@
+<html>
+<head>
+<meta http-equiv="Content-Language" content="en-za">
+<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
+</head>
+
+<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
+
+<table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td valign="top">
+ <table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td valign="top" align="left"><font size="1"><img src="/images/spacer.gif" width="53" height="52" alt></font></td>
+ <td valign="top" align="left" width="100%">
+ <h1><span class="HEADING"><font face="Verdana,Arial,Helvetica" size="1">What is Monitor.SunnyLine.co.za?</font></span></h1>
+ </td>
+ </tr>
+ </table>
+
+ <p><font size="1">Monitor is a bandwidth monitoring system implemented by SunnyLine Internet Services.</font>
+
+ <p><font size="1">With the use of Monitor! we allow our customers to see real-time statistics about their bandwidth usage.&nbsp; Monitor creates detailed graphs based
+ on a daily, weekly, monthly, and yearly bases, graphing your in- and outgoing bandwidth usage.&nbsp; Monitor also aids in the detection and prevention of Network
+ Congestion (or lag), by allowing Network Administrators to see possible network bottlenecks before they actually happen.</font></p>
+
+ <p><font size="1">Monitor is a value added services from SunnyLine Internet Services for all of their Leased Line clients with permanent connections.&nbsp; Due to the
+ manner in which Network Data is being monitored, we are unable to provide information on dial-up ports.&nbsp; At least for now.</font></p>
+
+ <p><font size="1">MRTG consists of a Perl script which uses SNMP to read the traffic counters of your routers and a fast C program which logs the traffic data and
+ creates beautiful graphs representing the traffic on the monitored network connection. These graphs are embedded into WebPages which can be viewed from any modern
+ Web-browser.&nbsp; In addition to a detailed daily view, MRTG also creates visual representations of the traffic seen during the last seven days, the last four weeks
+ and the last twelve months. This is possible because MRTG keeps a log of all the data it has pulled from the router. This log is automatically consolidated, so that it
+ does not grow over time, but still contains all the relevant data for all the traffic seen over the last two years. This is all performed in an efficient manner.
+ Therefore you can monitor 50 or more network links from any halfway decent UNIX box.</font></p>
+
+ <p><font size="1">MRTG is not limited to monitoring traffic though, it is possible to monitor any SNMP variable you choose. You can even use an external program to
+ gather the data which should be monitored via MRTG. People are using MRTG, to monitor things such as System Load, Login Sessions, Modem availability and more. MRTG even
+ allows you to accumulate two or more data sources into a single graph.</font></p>
+ &nbsp;</td>
+ </tr>
+</table>
+<table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td>
+ <div align="left">
+ <table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td colspan="2" valign="top" align="center">
+ <p align="center"><font size="1"><b>©2000 <a href="mailto:cgknipe@mweb.co.za">Chris Knipe</a>.&nbsp; All Rights Reserved.</b></font></td>
+ </tr>
+ <tr>
+ <td valign="top" align="right"><br>
+ <img border="0" src="images/msie.gif" width="88" height="31"><img border="0" src="images/msprod.gif" width="88" height="31"><img border="0" src="images/spacer.gif" width="5" height="10"></td>
+ <td width="100%" valign="top" align="left">&nbsp;
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td width="63"><a href="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"><img alt border="0" src="http://monitor.internal.sunnyline.co.za/images/mrtg-l.gif" width="63" height="25"></a></td>
+ <td width="25"><a href="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"><img alt="MRTG" border="0" src="http://monitor.internal.sunnyline.co.za/images/mrtg-m.gif" width="25" height="25"></a></td>
+ <td width="388"><a href="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"><img alt border="0" src="http://monitor.internal.sunnyline.co.za/images/mrtg-r.gif" width="388" height="25"></a></td>
+ </tr>
+ </table>
+ <SPACER TYPE=VERTICAL SIZE=4>
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr valign="top">
+ <td><font face="Arial,Helvetica" size="2"><a href="http://ee-staff.ethz.ch/~oetiker">Tobias Oetiker</a> <a href="mailto:oetiker@ee.ethz.ch">&lt;oetiker@ee.ethz.ch&gt;</a>
+ and&nbsp;<a href="http://www.bungi.com">Dave&nbsp;Rand</a>&nbsp;<a href="mailto:dlr@bungi.com">&lt;dlr@bungi.com&gt;</a></font></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </td>
+ </tr>
+</table>
+</body>
+</html> \ No newline at end of file
diff --git a/contrib/monitor/monitor.inc b/contrib/monitor/monitor.inc
new file mode 100644
index 0000000..2418093
--- /dev/null
+++ b/contrib/monitor/monitor.inc
@@ -0,0 +1,22 @@
+<%
+ ' Create ADO connection component to connect with our SQL database.
+ Set DBConn = Server.CreateObject("ADODB.Connection")
+ DBConn.Open "DSN=SunnyLine"
+
+ ' Redirection URLs used.
+ LogOutURL = "/default.asp" ' The URL we redirect to when someone logs out of montior.
+ MonitorURL = "/login.asp" ' The URL we redirect to after a successfull circuit number has been identified.
+ NoAuthURL = "/default.asp" ' The URL we redirect to when we don't have a database ID for the account anymore.
+
+ ' The session Details
+ ID = Session("DBID") ' DataBase Entry ID.
+ LineNumber = Session("DBLINENUMBER") ' Circuit Number.
+ LinePassword = Session("DBLINEPASSWORD") ' Circuit Password.
+ LineSpeed = Session("DBLINESPEED") ' Circuit Speed.
+ EMail_Address = Session("DBEMAIL_ADDRESS") ' Contact E-Mail Address.
+ Graph_Day = Session("DBGRAPH_DAY") ' Daily Graphs.
+ Graph_Week = Session("DBGRAPH_WEEK") ' Weekly Graphs.
+ Graph_Month = Session("DBGRAPH_MONTH") ' Monthly Graphs.
+ Graph_Year = Session("DBGRAPH_YEAR") ' Yearly Graphs.
+ LastVisit = Session("DBLASTVISIT") ' Last Time Visited.
+%> \ No newline at end of file
diff --git a/contrib/monitor/readme.txt b/contrib/monitor/readme.txt
new file mode 100644
index 0000000..877ea3f
--- /dev/null
+++ b/contrib/monitor/readme.txt
@@ -0,0 +1,139 @@
+Monitor v.1.1b
+~~~~~~~~~~~~~~
+Hi, welcome to the world of Monitor. This is my first ASP based contribution towards the Internet community at large, but
+I hope that there will be lots more to come.
+
+Monitor is a system designed by me with the use of MRTG. This application will be of most use to Internet Service Providers
+who may have a range of clients on Lease Lines running from their backbone. The system uses a database which keeps record
+of all the customers who have Leased Lines.
+
+The database holds the following information:
+ LineNumber (Or Circuit Number)
+ LinePassword (A Password Protecting The Circuit On Monitor)
+ EMail_Address (This will be used in a later version)
+ Graph_Day (Enable The Daily Graph)
+ Graph_Week (Enable The Weekly Graph)
+ Graph_Month (Enable The Monthly Graph)
+ Graph_Year (Enable The Yearly Graph)
+ Graph_EMail (This will be used in a later version)
+
+With this information, Monitor provides an easy way for clients to see and monitor their traffic usage after logging into
+the monitoring system. The users are then also provided with the option to customise the layout of their monitoring system,
+allowing them to only see the graphs that they need.
+
+Because this is a ASP application, the system has to be hosted on Windows NT Server, or a Unix based server that supports
+ASP code. For Unix based servers (or if this application is ported to the PHP3 Lanuage), the database routines will need
+to be redone. Unix' clones will almost certainly not support the same database methods as NT (This application is designed
+to work with Microsoft's ADO engine for interest sakes).
+
+
+
+What's Included:
+~~~~~~~~~~~~~~~~
+I've included the following files in the distribution:
+ config.asp - This is the ASP file where clients can customise the output from the Monitoring system.
+ default.asp - This is the ASP file where the authentication process will happen.
+ global.asa - global.asa takes care of the deletation of the graph images when a session is abandoned or
+ expires. We also make sure here that users start on the correct page when entering the
+ web site at any point or file.
+ login.asp - After successfull authentication, this page displays the graphs to the users.
+ monitor.html - A page that you can use to explain the service to your clients.
+ monitor.inc - This file holds reference to the Database connection strings, aswell as Session information.
+ readme.txt - You're reading it.
+ monitor.mdb - The Database provided in Microsoft Access 2000 format. (Please read below for more
+ information.)
+
+
+
+Setup:
+~~~~~~
+Firstly, for the setup of this application on a NT based server, you need to install MRTG on Windows, and have this working.
+If you want for some reason not to run MRTG from Windows NT, then please use Samba file sharing, and MAP THE DRIVE to the
+Windows NT machine that will host the web pages. NT will need PHYSICAL FILE ACCESS to the files (Read Only Access will be
+sufficient).
+
+Next, you can take the database (Monitor.mdb), and place this somewhere on your system. The location of the database does
+not matter that much, seeing that you need to setup a ODBC DataSource Name (DSN), to point the the database file. If you
+do not want to use DSN connections, have a look in Monitor.inc and change the DSN entry there to point to the file path
+(DBQ entry). You will also need to change Monitor.inc to have the correct DSN name in for the DSN you have just created.
+
+Thirdly, you need to setup a bit of file permissions. This is more than likely the trickiest part of the installation.
+
+Because MRTG graphs are updated dynamically, we need to implement a system where the graphs are stored OUTSIDE of the web
+server. We need the graphs outside the web server, so that people can't just link to the images on the monitoring system
+with a simple <img src="...."> tag in ther html on a local web server. This is accomplished with the use of the built in
+ASP objects CopyFile and DeleteFile. After a successfull login occured, the ASP code will copy the images (all four -
+daily, weekly, monthly, and yearly), from a pre determined MRTG "spool" directory. This directory will be a global
+directory where MRTG saves the images from it's targets. It can either be a share that is mapped to the local server, or a
+local path on the Windows NT host. You need to explictly give the Iusr_machinename user (or the user under which the IIS
+process run), READ access on both the directory, aswell as all the files within.
+
+This will allow the ASP code, to read the binary images from the directory, and copy them to inside the web site. Next,
+what you need to do permission wise, is assign READ, WRITE, and DELETE permissions on both the file and directory inside the
+Monitor web site, where the target images will be copied to. In this example package, the images are copied to the
+images/mrtg/ folder.
+
+Once you have your database setup, and the file permissions set up correctly, the site should work. After login, the
+application will copy the files from the MRTG spool directory, into it's target directory. The graphs will then be
+displayed to the user, and will reside on the web server for as long as the session exist. Once the user logs out, or
+when the session expires, the ASP code will automatically issue the DeleteFiles directive which removes the images that
+are copied from the MRTG spool directory after the user has logged in. The images are re-copied at every refresh of the
+page, so this will also ensure that images on the monitor web site will remain up-to-date, for as long as the client is
+logged into the system.
+
+The supplied database is in Access 2000 form. From what I've heard, Access 2000 is not compatible with older versions.
+Should you have troubles using this database, please upgrade to Access 2000. If this is a bit of a harsh thing to ask
+(which I also presume), I have decided to include an SQL Script for the creation of the database. The script is based on
+Microsoft SQL Server 6.5, but will give you a pretty good idea on how the database should look inside Access...
+
+
+
+Microsoft SQL 6.5 Database Script:
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+/****** Object: Table dbo.Monitor_Authenticate Script Date: 00/06/17 07:45:08 ******/
+CREATE TABLE dbo.Monitor_Authenticate (
+ ID int IDENTITY (1, 1) NOT NULL ,
+ LineNumber numeric(18, 0) NOT NULL ,
+ LinePassword varchar (8) NOT NULL ,
+ LineSpeed numeric(18, 0) NOT NULL ,
+ EMail_Address varchar (50) NOT NULL ,
+ Graph_Day bit NOT NULL ,
+ Graph_Week bit NOT NULL ,
+ Graph_Month bit NOT NULL ,
+ Graph_Year bit NOT NULL ,
+ Graph_EMail bit NOT NULL ,
+ LastVisit datetime NULL ,
+ Comment varchar (255) NULL
+)
+GO
+
+
+
+Bugs & Problems:
+~~~~~~~~~~~~~~~~
+Yes, there are a few of them inside the code at the date when I released this. Although they are nothing serious, I feel
+that you should take note of this.
+
+ - Client Authentication: If the web user enteres a Curcuit number and password that do not exist in the database,
+ the Database engine responds with an error. This will be fixed in a next release and
+ is not a serious problem to overcome. Possible solution is to code in a additional
+ if statement to check that the circuit number exist BEFORE the authentication process
+ is initiated.
+ - Client Passwords: The client password is limited in the database to 8 characters. A JavaScript or something
+ similar should be implemented in the config page which will limit the passwords entered to
+ 8 characters to reflect the limitation in the database. As it is now, the entire password
+ is accepected, although only the first 8 are saved.
+ - Date Formating: The 'LastVisit' date that is displayed on the pages needs to be re-formatted so that it is
+ more readable. This change will more than likely be so that the dates will read:
+ Mon, 19 June 2000, 20:13:11
+
+If there is anything else that is 'misbehaving' or that you believe can pose to be a problem, please do not hesitate to
+contact me where I will look into the matter, aswell as issue a update to the code should it be neccessary.
+
+
+
+Contacting me:
+~~~~~~~~~~~~~~
+Please feel free to contact me at any time by sending mail to cgknipe@mweb.co.za, I'm always looking forward to hearing
+from people who uses my code and appreciates the value of implementations done by me.
+