~ubuntu-branches/ubuntu/natty/ntop/natty

« back to all changes in this revision

Viewing changes to html/dump.html

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2005-01-30 21:59:13 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050130215913-xc3ke963bw49b3k4
Tags: 2:3.0-5
* Updated README.Debian file so users will understand what to do at
  install, closes: #291794, #287802.
* Updated ntop init script to give better output.
* Also changed log directory from /var/lib/ntop to /var/log/ntop,
  closes: #252352.
* Quoted the interface list to allow whitespace, closes: #267248.
* Added a couple of logcheck ignores, closes: #269321, #269319.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<!-- ntop v3.0 release, Burton Strauss, Jan2004 -->
 
3
<html>
 
4
<head>
 
5
<!-- Validates as HTML 4.01 Transitional with the addition of the following tag 
 
6
     AND the removal of the cellspacing/cellpadding option below! -->
 
7
<!-- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> -->
 
8
<meta http-equiv="Pragma" content="no-cache">
 
9
<meta http-equiv="Cache-Control" content="no-cache">
 
10
<link rel=stylesheet HREF="/style.css" type="text/css">
 
11
<script src="/functions.js" type="text/javascript" language="javascript"></script>
 
12
<title>ntop Data Dump</title>
 
13
</head>
 
14
<body background="/white_bg.gif" bgcolor="#FFFFFF" LINK=blue VLINK=blue>
 
15
<center><H1>ntop Data Dump</H1></center>
 
16
<p><b>ntop</b> is able to dump traffic data in various formats (e.g. text, perl,
 
17
php) so that external programs can use this data for further processing, such as
 
18
storage in a database.  This page is the access point for these HTTP data dumps.</p>
 
19
 
 
20
<!-- Note, to overcome w3c limits on form tag placement we nest the table -->
 
21
 
 
22
<center>
 
23
<table border="1" cellspacing=\"0\" cellpadding=\"2\">
 
24
<tr bgcolor="#DDDDDD"><th align="center">Report Type</th>
 
25
<th align="center">Description</th>
 
26
<th align="center">Action</th></tr>
 
27
 
 
28
<tr><th align=left>Hosts</th>
 
29
    <td>Dump information about known hosts</td>
 
30
    <th align="center"><form method="get" action="/dumpData.html">
 
31
      <table border="0" width="100%">
 
32
        <tr><th align="left">Format:</th><td align="left"><select name=language>
 
33
<option value="text">text
 
34
<option value="xml">xml
 
35
<option value="perl">perl
 
36
<option value="php">php
 
37
<option value="python">python</select>
 
38
           </td>
 
39
        </tr>
 
40
        <tr><th align="right">Attributes List:</th><td><select name=view>
 
41
<option value="long">Long
 
42
<option value="short">Short</select>
 
43
            </td>
 
44
        </tr>
 
45
        <tr><td colspan="2" align="center"><input type=submit value="Dump Data"></td></tr>
 
46
      </table>
 
47
    </form></th></tr>
 
48
 
 
49
<tr><th align=left>Hosts Matrix</th>
 
50
    <td>Dump local hosts traffic matrix</td>
 
51
    <th align="center"><form method="get" action="/dumpHostsMatrix.html">
 
52
      <table border="0" width="100%">
 
53
        <tr><th align="left">Format:</th><td align="left"><select name=language>
 
54
<option value="text">text
 
55
<option value="xml">xml
 
56
<option value="perl">perl
 
57
<option value="php">php
 
58
<option value="python">python</select>
 
59
           </td>
 
60
        </tr>
 
61
        <tr><th align="right">Attributes List:</th><td><select name=view>
 
62
<option value="long">Long
 
63
<option value="short">Short</select>
 
64
            </td>
 
65
        </tr>
 
66
        <tr><td colspan="2" align="center"><input type=submit value="Dump Data"></td></tr>
 
67
      </table>
 
68
    </form></th></tr>
 
69
 
 
70
<tr><th align=left>Network Interfaces</th>
 
71
    <td>Dump per-interface information</td>
 
72
    <th align="center"><form method="get" action="/dumpTrafficData.html">
 
73
      <table border="0" width="100%">
 
74
        <tr><th align="left">Format:</th><td align="left"><select name=language>
 
75
<option value="text">text
 
76
<option value="xml">xml
 
77
<option value="perl">perl
 
78
<option value="php">php
 
79
<option value="python">python</select>
 
80
           </td>
 
81
        </tr>
 
82
        <tr><th align="right">Attributes List:</th><td><select name=view>
 
83
<option value="long">Long
 
84
<option value="short">Short</select>
 
85
            </td>
 
86
        </tr>
 
87
        <tr><td colspan="2" align="center"><input type=submit value="Dump Data"></td></tr>
 
88
      </table>
 
89
    </form></th></tr>
 
90
 
 
91
<tr><th align=left>Network Flows</th>
 
92
    <td>Dump traffic information of the configured network flows</td>
 
93
    <th align="center"><form method="get" action="/dumpFlows.html">
 
94
      <table border="0" width="100%">
 
95
        <tr><th align="left">Format:</th><td align="left"><select name=language>
 
96
<option value="text">text
 
97
<option value="xml">xml
 
98
<option value="perl">perl
 
99
<option value="php">php
 
100
<option value="python">python</select>
 
101
           </td>
 
102
        </tr>
 
103
        <tr><th align="right">Attributes List:</th><td><select name=view>
 
104
<option value="long">Long
 
105
<option value="short">Short</select>
 
106
            </td>
 
107
        </tr>
 
108
        <tr><td colspan="2" align="center"><input type=submit value="Dump Data"></td></tr>
 
109
      </table>
 
110
    </form></th></tr>
 
111
 
 
112
</table>
 
113
</center>
 
114
 
 
115
<p>You may also use other tools, such as wget, if you construct the equivalent
 
116
command. For example, to dump key per-host data in php format,</p>
 
117
<pre>wget -O ntop-20040123.php "http://127.0.0.1:3000/dumpData.html?language=php&amp;view=short"</pre>
 
118
 
 
119
<p>which gives:</p>
 
120
<pre>$ntopHash = array(
 
121
'192.168.3.2' =&gt; array(
 
122
        'hostSymIpAddress' =&gt; 'xxx.ntop.org',
 
123
        'pktSent' =&gt; '1031',
 
124
        'pktRcvd' =&gt; '922',
 
125
  ...
 
126
        'icmpRcvd' =&gt; '0',
 
127
),
 
128
...</pre>
 
129
</body>
 
130
</html>