Commit d191f4fd authored by 's avatar

Files moved to another repository


git-svn-id: file:///home/svn/mapi/trunk@1437 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent cc813853
[global]
# at least for now, all fields are mandatory; set them, but do not comment them out
packetloss_rrd_filename = packetloss.rrd
packetloss_packets_rrd_filename = packetloss_packets.rrd
packetloss_flows_rrd_filename = packetloss_flows.rrd
packetloss_status_filename = packetloss_status.csv
packetloss_starts_filename = packetloss_starts.csv
packetloss_startlog_filename = packetloss_start.log
bpf_filter = greater 0
#cpu = 1
# number of flows than packetloss application can receive in one life-cycle (10s)
# there is a limitation of 49998 flows per device becouse DIMAPI_DATA_SIZE = 2000000 in mapiipc.h
# flows_max will be limited automatically in case it would exceeded 49998 * number_of_all_devices
flows_max = 250000
# tolerate this timestamp difference among hosts (in NTP, so in_seconds = this_value / 2^32)
#timestamp_tolerance = 2147483648 // NTP, 0.5 seconds
timestamp_tolerance = 429496729 // NTP, 0.1 seconds
# set 1 if you want to reconnect every loop (may be too much time consuming)
# set 0 if you want to reconnect just on SIGUSR1
still_reconnect = 0
# specify subjects:
#
# [subject]
# lable = SUBJ1
# host_id_in = 0
# host_id_out = 1
# enabled = true
#
# [subject]
# label = SUBJ2
# host_id_in = 2
# host_id_out = 2
# enabled = true
#
#
# specify hosts:
#
# [host]
# hostname = host1.example.net
# interface = /dev/dag0
# interface = /dev/dag1
# label = host1
# description =
# direction = in
# enabled = true
#
# [host]
# hostname = host2.example.net
# interface = eth0
# interface = eth1
# label = host2
# description =
# direction = out
# enabled = true
#
# [host]
# hostname = host3.example.net
# interface = eth0
# label = host3
# description =
# direction = inout
# enabled = true
#
# end of config
/* This is alternate stylesheet */
@import url(packetloss.css);
/* Sven rulez */
body { background-color: #D0D0D0;
/* font-family: sans-serif;*/
/* font-size: x-small;*/ }
/*
td { font-size: x-small; }
input { font-size: x-small; }
*/
img#logo { margin-right: 25px }
/* */
html {
background-color: #D0D0D0;
}
body {
margin-left: 10px;
}
h2 {
font-size: 1em;
}
h4 {
font-size: 1em;
margin: 0em 0em 0.5em 0em;
}
.steps .step {
margin-top: 0em;
padding: 0.5em 0.5em 0.5em 0em;
/*border: 5px solid #E0E0E0;*/
}
.steps .step .substep {
margin-top: 0.5em;
}
input.submit {
margin-top: 1em;
}
.steps .tbl label {
border-bottom: none;
}
.steps .tbl {
width: 20.2em;
display: table;
border-collapse: separate;
/*background-color: white;*/
border-color: #E0E0E0;
border-style: outset;
border-spacing: 2px;
border-width: 1px;
}
.steps .tbl .tr {
margin-right: 0em;
width: 20.2em;
padding: 0em;
padding-top: 0em;
padding-bottom: 0em;
/*border: 1px solid black;*/
/*border-width: 1px;*/
}
.steps .tbl .medium {
width: 30em;
}
.steps .tbl .normal {
width: 20em;
}
.steps .tbl .short {
width: 11em;
}
.steps .tbl .tiny {
width: 7em;
}
.steps .tbl .th {
display: table-cell;
/*border-collapse: separate;*/
border-style: inset;
border-color: white;
border-width: 1px;
padding-top: 1px;
padding-bottom: 1px;
line-height: 1.6em; /* adjust to form input elements */
}
.steps .tbl .td {
/*border: 1px solid black;*/
display: table-cell;
/*border-collapse: separate;*/
border-style: inset;
border-color: white;
border-width: 1px;
padding-top: 1px;
padding-bottom: 1px;
line-height: 1em; /* adjust to form input elements */
}
#assholder .packetloss {
position: relative;
top: 1px;
color: #A0A0A0;
font-size: 10pt;
font-family: Verdana, lucida, helvetica, arial, sans-serif;
}
#assholder .packetloss-tables {
position: relative;
top: 1px;
color: black;
font-size: 10pt;
font-family: Verdana, lucida, helvetica, arial, sans-serif;
}
html {
margin: 0px;
padding: 0px;
color: black;
background-color: #E0E0E0;
}
body {
margin: 20px;
color: black;
background-color: #E0E0E0;
font-size: 0.8em;
font-size-adjust: 0.545;
font-family: Verdana, lucida, helvetica, arial, sans-serif;
}
h1, h2, h3, h4, h5 {
margin: 0em 0em 0.15em 0em;
font-size-adjust: 0.545;
font-family: Verdana, lucida, helvetica, arial, sans-serif;
}
h1 {
text-align: left;
font-size: 150%;
}
h2 {
text-align: left;
font-size: 120%;
}
h3 {
text-align: left;
font-weight: 500;
font-size: 110%;
}
h4 {
text-align: left;
font-weight: 300;
font-size: 110%;
}
h5 {
text-align: left;
font-weight: 300;
font-size: 100%;
}
table {
margin: 0.5em auto 0.5em auto;
width: 70%;
/* border-style: none; */
border-collapse: collapse;
/* border-spacing: 0em; */
}
.table {
margin: 0.5em auto 0.5em auto;
width: 70%;
}
.table table {
margin: 0em auto 0em auto;
width: 100%;
}
table caption {
margin: 0em auto;
line-height: 150%;
font-weight: bold;
}
table summary {
font-style: italic;
}
th {
text-align: center;
font-size-adjust: 0.545;
font-family: Verdana, lucida, helvetica, arial, sans-serif;
font-weight: bold;
/*font-size: 10pt;*/
}
td {
border: 1px solid black;
font-size-adjust: 0.545;
font-family: Verdana, lucida, helvetica, arial, sans-serif;
text-align: center;
}
tr:hover, .tr:hover {
color: #990000;
background-color: #FFFFFF;
}
table.vertical th {
text-align: left;
}
table th.horizontal {
text-align: center;
}
form {
margin: 0em;
}
form input.text,
form input.password,
form input.checkbox,
form textarea {
background-color: white;
}
form input.focused,
form textarea.focused {
background-color: yellow;
}
form input.button,
form input.submit {
color: #666666;
font-weight: bold;
}
form input.button:hover,
form input.submit:hover {
color: black;
font-weight: bold;
}
fieldset {
border-width: 1px;
border-color: black;
border-style: solid;
margin: 1em 0em;
padding: 0.5em;
}
legend {
font-weight: bold;
}
label {
white-space: nowrap;
}
pre, code, tt, .tt {
font-size: 110%;
font-size-adjust: 0.423;
font-family: "Courier New", Courier, FixedSys, System, monospace;
font-family: monospace; /* NN4 */
white-space: pre;
}
acronym, abbr, dfn {
border-width: 0px 0px 1px 0px;
border-color: #606060;
border-style: dashed;
cursor: help;
}
.line {
display: block;
}
.right {
text-align: right;
}
.centered {
text-align: center;
}
.note {
font-style: italic;
font-size: 85%;
}
.strong {
font-weight: bold;
}
.kwd {
color: red;
}
.floatleft {
float: left;
margin: 0em;
padding: 0.1em 0.5em 0.1em 0em; /* MSIE multiplies float margin 2x, have to use padding */
}
.floatright {
float: right;
margin: 0em;
padding: 0.1em 0em 0.1em 0.5em; /* MSIE multiplies float margin 2x, have to use padding */
}
div.altitle-a { /* Do NOT remove -- altitle depends on this. */
border-width: 1px;
border-color: #2090FF;
border-style: solid;
margin: 0px;
padding: 0px 2px;
background-color: #E0E0E0;
opacity: 0.85 /* CSS3 */
}
div.altitle-img { /* Do NOT remove -- altitle depends on this. */
border-width: 1px;
border-color: black;
border-style: solid;
margin: 0px;
padding: 0px 2px;
background-color: #E0E0E0;
opacity: 0.85 /* CSS3 */
}
div.altitle-acronym { /* Do NOT remove -- altitle depends on this. */
border-width: 1px;
border-color: black;
border-style: solid;
margin: 0px;
padding: 0px 2px;
background-color: #E0E0E0;
opacity: 0.85 /* CSS3 */
}
div.altitle-status {
border-width: 1px;
border-color: #666666;
border-style: dashed;
margin: 0px;
padding: 10px 20px;
max-width: 400px;
color: #666666;
background-color: white;
}
.focused {
background-color: yellow;
}
.important:after {
content: " ! ";
background-color: #FFFF00;
}
div.clear {
clear: both
}
.steps {
clear: left;
}
.steps .step {
margin-top: 2em;
padding: 0.5em 0.5em 0.5em 0em;
}
.steps .step:hover {
/*border: 5px solid #F0F0F0;*/
}
.steps .step .substep {
margin-top: 1em;
}
.steps label {
display: block;
width: 100%;
border-bottom: 1px dashed #A0A0A0;
}
/*.steps label:hover {
border-bottom: 1px solid black;
}*/
.steps .tr {
/* background-color: #F0F0F0; */
float: left;
width: 20em;
margin-right: 5em;
}
.steps .widetd {
width: 50em;
}
.steps .medium {
width: 30em;
}
.steps .short {
width: 11em;
}
.steps .tiny {
width: 9em;
}
.steps .th {
/*border: 1px solid red;*/
float: left;
display: block;
width: 18em;
}
.steps .td {
float: left;
}
.steps .widetd .th {
width: 20em;
}
.steps .medium .th {
width: 28em;
}
.steps .short .th {
width: 9em;
}
.steps .tiny .th {
width: 7em;
}
.graphs {
clear: left;
margin-top: 2em;
border-top: 5px solid #F0F0F0;
}
.graphs .graph {
float: left;
margin-top: 2em;
margin-left: 1em;
}
.status {
clear: left;
margin-top: 2em;
border-top: 5px solid #F0F0F0;
}
.table {
width: 90%;
}
.thestatus {
border: 1px solid black;
margin-top: 2em;
}
.thestatus th {
border-bottom: 1px dashed #A0A0A0;
font-size-adjust: 0.519;
font-family: arial, helvetica, sans-serif;
}
.thestatus td {
border-top: none;
border-right: none;
border-bottom: 1px dashed #A0A0A0;
border-left: none;
padding: 2px;
text-align: right;
font-size: 110%;
font-size-adjust: 0.423;
font-family: "Courier New", Courier, FixedSys, System, monospace;
white-space: pre;
}
.thestatus tr.delimiter {
border-top: 2px solid #808080;
}
.thestatus th.right {
text-align: right;
}
acronym.help {
border: 1px dashed #666666;
padding: 0em 0.2em;
color: #666666;
font-size-adjust: 0.545;
font-family: Verdana, lucida, helvetica, arial, sans-serif;
font-weight: bold;
font-size: 85%;
}
.disabled {
color: gray;
}
.s0 {
color: red;
}
.s1 {
color: blue;
}
.s2 {
color: green;
}
.s3 {
color: #DD7700;
}
.s4 {
color: #FFAA00;
}
.noalarm {
color: green;
font-weight: bold;
}
.alarm0 {}
.alarm1 {
color: #FF6633;
font-weight: bold;
}
.alarm2 {
color: #FF6633;
font-weight: bold;
}
.alarm3 {
color: #FF0000;
font-weight: bold;
}
/*
.alarm1:after {
content: " ? ";
}
.alarm2:after {
content: " ! ";
}
.alarm3:after {
content: " ! ";
}
*/
input.restart {
color: black;
background-color: red;
font-weight: bold;
}
input.restart:hover {
color: #FFFF00;
}
input.reset {
color: black;
background-color: red;
font-weight: bold;
}
input.reset:hover {
color: #FFFF00;
}
#assholder .packetloss {
position: relative;
top: 1px;
color: black;
font-size: 10pt;
font-family: Verdana, lucida, helvetica, arial, sans-serif;
}
#assholder .packetloss-tables {
position: relative;
top: 1px;
color: #A0A0A0;
font-size: 10pt;
font-family: Verdana, lucida, helvetica, arial, sans-serif;
}
<?php
# File name: packetloss_startlog.php
# Date: 2008/02/09
# Author: Ales Friedl <ales.friedl@email.cz>
# Includes {{{
$DIR = "../";
require_once "${DIR}lib/expire.php";
require_once "${DIR}lib/config.php";
# }}}
header("Content-Type: text/plain");
readfile($config->abspath($config->packetloss_home, $config->packetloss_startlog));
//$content = "";
//$fp = fopen($config->abspath($config->packetloss_home, $config->packetloss_status), "r");
//while (!feof($fp)) $content .= fgets($fp, 4096);
//echo $content;
//fclose($fp);
// vim: set foldmethod=marker foldmarker=\ {{{,\ }}} foldclose= foldcolumn=0 :
?>
<?php
# Includes {{{
$DIR = "../";
require_once "${DIR}lib/expire.php";
require_once "${DIR}lib/config.php";
# }}}
header("Content-Type: text/plain");
readfile($config->abspath($config->packetloss_home, $config->packetloss_status));
//$content = "";
//$fp = fopen($config->abspath($config->packetloss_home, $config->packetloss_status), "r");
//while (!feof($fp)) $content .= fgets($fp, 4096);
//echo $content;
//fclose($fp);
// vim: set foldmethod=marker foldmarker=\ {{{,\ }}} foldclose= foldcolumn=0 :
?>
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment