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

« back to all changes in this revision

Viewing changes to python/templates/rrdAlarmStart.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Ludovico Cavedon, Jordan Metzmeier, Ludovico Cavedon
  • Date: 2010-12-15 20:06:19 UTC
  • mfrom: (5.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20101215200619-0ojz3iak95ihibun
Tags: 3:4.0.3+dfsg1-1
[ Jordan Metzmeier ]
* New upstream release (Closes: #522042)
* Move data files to /usr/share/ntop (Closes: #595450).
* Package architecture independent data in a separate ntop-data package.
* Use debhelper 7.
* Update Standards-Version to 3.9.1.
* Depend on python-mako.
* Do not include ntop.txt in binary packages as it is a copy of the man
  page.
* Do not include NEWS, as it is outdated.
* Switch to package source version 3.0 (quilt).
* Add password creation to debconf
* Changed init script to fix localization problems (thanks to Alejandro
  Varas <alej0varas@gmail.com>, LP: #257466)
* Remove manual update-rc.d calls from postrm and postinst. debhelper adds
  this for us.
* Add pre-depends on adduser for postinst script.
* Fix errors in the manpages: fix-manpage-errors.patch.
* Added fixes for matching active interfaces.
* Added a watch file.

[ Ludovico Cavedon ]
* Remove direct changes to upstream tree, and move them into specific patch
  files:
  - fix-manpage-errors.patch: fix typos in ntop.8.
  - dot-path.patch: fix path of /usr/bin/dot executable
* Add patches:
  - reduce-autogen-purged-files.patch: prevent agutogen.sh from reamoving
  too many files during cleanup.
  - Add build-without-ntop-darwin.patch, to fix compilation without
  ntop_darwin.c.
* No longer add faq.html, as it is not distributed in the upstream tarball.
* Use ${source:Version} in control file. Have ntop-data recommend
  ntop.
* Rename dirs to ntop.dirs and keep only empty directories that need
  to be created.
* Remove var/lib from ntop.install file, as it is empty (keeping it in
  ntop.dirs).
* Update po files.
* Breaks and Replaces instead of Conflitcs for ntop-data.
* Use a longer package description.
* Remove useless configure options from debian/rules.
* Move private shared libraries libraries in /usr/lib/ntop.
* Add change-plugin-dir.patch for adjusting plugin directory.
* Remove development files.
* Use system library for MochiKit.js.
* Rewrite DEP5 copyright file.
* Repackage upstream tarball in order to remove non-DFSG-compliant code. Add
  get-orig-source.sh script and get-orig-source target in debian/rules.
* Add explanation to README.Debian why geolocation is no longer working.
* Add avoid-copy-maxmind-db.patch to prevent copying of Geo*.dat
  files.
* Remove old unused patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
<table border="1" align="center" cellpadding="5" cellspacing="0" >
 
3
 
 
4
 
 
5
 
 
6
<tr onMouseOver="this.bgColor = '#EDF3FE'" onMouseOut ="this.bgColor = '#FFFFFF'" >
 
7
 
 
8
        <th bgcolor="#f3f3f3" align="left">Script duration</th>
 
9
 
 
10
        <td >${duration}&nbsp;sec.</td>
 
11
 
 
12
</tr>
 
13
 
 
14
<tr onMouseOver="this.bgColor = '#EDF3FE'" onMouseOut ="this.bgColor = '#FFFFFF'" >
 
15
 
 
16
        <th bgcolor="#f3f3f3" align="left">Number of files checked</th>
 
17
 
 
18
        <td >${checkedFiles}</td>
 
19
 
 
20
  </tr>
 
21
 
 
22
  <tr onMouseOver="this.bgColor = '#EDF3FE'" onMouseOut ="this.bgColor = '#FFFFFF'" >
 
23
 
 
24
        <th bgcolor="#f3f3f3" align="left">Number of alarms fired</th>
 
25
 
 
26
        <td >${alarmsFired}</td>
 
27
 
 
28
  </tr>
 
29
 
 
30
</table>
 
31
 
 
32
        <p>&nbsp;</p>
 
33
 
 
34
        <center>
 
35
<%
 
36
        time=((alarmsFired+checkedFiles)*0.0005)+0.8
 
37
%>\
 
38
      <p><font face="Helvetica, Arial, Sans Serif"><a href="javascript:toggle('results', 'blind',{'duration': 0.8});">Details</a></font></p>
 
39
 
 
40
        </center>
 
41
% if checkedFiles > 0:
 
42
<div id="results">
 
43
         <table border="1" align="center" cellpadding="5" cellspacing="0" id="configuration" >
 
44
 
 
45
            <thead>
 
46
 
 
47
                <tr>
 
48
 
 
49
                    <th nowrap="nowrap" bgcolor="#f3f3f3" align="center" >
 
50
 
 
51
                       ID
 
52
 
 
53
                    </th>
 
54
 
 
55
                                        <th nowrap="nowrap" bgcolor="#f3f3f3" align="center">
 
56
 
 
57
                        File
 
58
 
 
59
                    </th>
 
60
                                        <th nowrap="nowrap" bgcolor="#f3f3f3" align="center">
 
61
                        Value
 
62
                                        </th>
 
63
 
 
64
                    <th nowrap="nowrap" bgcolor="#f3f3f3" align="center">
 
65
 
 
66
                        Type
 
67
 
 
68
                    </th>
 
69
 
 
70
                    <th nowrap="nowrap" bgcolor="#f3f3f3" align="center">
 
71
 
 
72
                        Threshold
 
73
 
 
74
                    </th>
 
75
                                        <th nowrap="nowrap" bgcolor="#f3f3f3" align="center">
 
76
 
 
77
                        Time</th>
 
78
 
 
79
                    <th nowrap="nowrap" bgcolor="#f3f3f3" align="center">
 
80
 
 
81
                        Action
 
82
 
 
83
                    </th>
 
84
                                        <th nowrap="nowrap" bgcolor="#f3f3f3" align="center">
 
85
                                        &nbsp;
 
86
                    </th>
 
87
 
 
88
 
 
89
                </tr>
 
90
 
 
91
            </thead>
 
92
 
 
93
            <tbody id="body">
 
94
% for row in listRows:
 
95
                                
 
96
                                <tr onMouseOver="this.bgColor = '#EDF3FE'" onMouseOut ="this.bgColor = '#FFFFFF'">
 
97
                                <td align="right">${row[0]}</td>
 
98
                                <td align="left">${row[1]}</td>
 
99
                                <td align="right">${row[2]}</td>
 
100
                                <td align="left" nowrap='nowrap'>${row[3]}
 
101
                                % if row[3]== 'above':
 
102
                                        <img class=tooltip src="/arrow_up.png" border="0">
 
103
                                % else:
 
104
                                        <img class=tooltip src="/arrow_down.png" border="0">
 
105
                                % endif
 
106
                                </td>
 
107
                                <td align="right">${row[4]}</td>
 
108
                                <td align="right" title="${row[6]}">${row[5]}</td>
 
109
                                <td align="right">${row[7]}</td>
 
110
                                % if row[8] == 'OK' :
 
111
                                <td bgcolor="#CCFFCC" align="center">${row[8]}</td>
 
112
                                % else:
 
113
                                <td bgcolor="#FFB9B9" align="center">${row[8]}</td>
 
114
                                % endif
 
115
</tr>      
 
116
% endfor
 
117
            </tbody>
 
118
 
 
119
</table>
 
120
<%doc>
 
121
<p>The IDs not present in this table do not refer to a proper rrd filename.
 
122
Check your RRDAlarm configuration!
 
123
</p>
 
124
</%doc>
 
125
</div>
 
126
<script type="text/javascript">
 
127
        setStyle('results', {display: 'none'});
 
128
 
 
129
        </script>
 
130
% endif