1
|
<?php
|
2
|
/* $Id$ */
|
3
|
/*
|
4
|
rrdcolors.inc.php
|
5
|
Part of pfSense
|
6
|
Copyright (C) 2006 Seth Mos <seth.mos@xs4all.nl>
|
7
|
All rights reserved.
|
8
|
|
9
|
Redistribution and use in source and binary forms, with or without
|
10
|
modification, are permitted provided that the following conditions are met:
|
11
|
|
12
|
1. Redistributions of source code must retain the above copyright notice,
|
13
|
this list of conditions and the following disclaimer.
|
14
|
|
15
|
2. Redistributions in binary form must reproduce the above copyright
|
16
|
notice, this list of conditions and the following disclaimer in the
|
17
|
documentation and/or other materials provided with the distribution.
|
18
|
|
19
|
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
20
|
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
21
|
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
22
|
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
23
|
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
24
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
25
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
26
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
27
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
28
|
POSSIBILITY OF SUCH DAMAGE.
|
29
|
*/
|
30
|
|
31
|
/* This file is included by the RRD graphing page and sets the colors */
|
32
|
|
33
|
/* Traffic Outbound Out-P-4, Out-B-4, Out-P-6, Out-B-6 */
|
34
|
$colortrafficup = array('666666', 'CCCCCC', '2217AA', '625AE7');
|
35
|
|
36
|
/* Traffic Inbound In-P-4, In-B-4, In-P-6, In-B-6 */
|
37
|
$colortrafficdown = array('990000', 'CC0000', 'FFC875', 'FF9900');
|
38
|
|
39
|
/* Packets Outbound Out-P-4, Out-B-4, Out-P-6, Out-B-6 */
|
40
|
$colorpacketsup = array('666666', 'CCCCCC', '2217AA', '625AE7');
|
41
|
|
42
|
/* Packets Inbound In-P-4, In-B-4, In-P-6, In-B-6 */
|
43
|
$colorpacketsdown = array('990000', 'CC0000', 'FFC875', 'FF9900');
|
44
|
|
45
|
/* 95th Percentile Lines Out, In */
|
46
|
$colortraffic95 = array('660000', 'FF0000');
|
47
|
|
48
|
/* State Table pfrate, pfstates, pfnat, srcip, dstip */
|
49
|
$colorstates = array('00AA00','990000','0000FF','000000','DD9B00');
|
50
|
|
51
|
/* Processor Usage user, nice, system, int, processes */
|
52
|
$colorprocessor = array('00AA00','990000','0000FF','DD9B00','000000');
|
53
|
|
54
|
/* Memory Usage active, inact, free, cache, wire */
|
55
|
$colormemory = array('00AA00','990000','0000FF','666666','DD9B00');
|
56
|
|
57
|
/* MBUF Usage current, cache, total, max */
|
58
|
$colormbuf = array('0080FF','00E344','FF0000','000000');
|
59
|
|
60
|
/* Traffic Shaper Queues q1, q2, q3, q4, q5, q6, q7, q8, q9 */
|
61
|
$colorqueuesup = array('000000','7B0000','0080FF','00E344','FF0000','2217AA','FFC875','FF9900','CC0000');
|
62
|
$colorqueuesdown = array('000000','7B7B7B','999999','BBBBBB','CCCCCC','D9D9D9','EEEEEE','FFFFFF','CCCCCC');
|
63
|
|
64
|
$colorqueuesdropup = array('000000','7B0000','0080FF','00E344','FF0000','2217AA','FFC875','FF9900','CC0000');
|
65
|
$colorqueuesdropdown = array('000000','7B7B7B','999999','BBBBBB','CCCCCC','D9D9D9','EEEEEE','FFFFFF','CCCCCC');
|
66
|
|
67
|
/* Quality Graph Delay >420, 180-420, 60-180, 20-60, <20, Delay Avg */
|
68
|
$colorqualityrtt = array('990000','a83c3c','b36666','bd9090','cccccc','000000');
|
69
|
/* Quality Graph Loss */
|
70
|
$colorqualityloss = 'ee0000';
|
71
|
|
72
|
/* Wireless Graph SNR, Rate, Channel*/
|
73
|
/* Cellular Graph RSSI, */
|
74
|
$colorwireless = array('333333','a83c3c','999999');
|
75
|
|
76
|
/* SPAMD Times min area, avg area, max area, Time line */
|
77
|
$colorspamdtime = array('DDDDFF', 'AAAAFF', 'DDDDFF', '000066');
|
78
|
/* SPAMD Connections max area, min area, min line, max line, avg line */
|
79
|
$colorspamdconn = array('AA00BB', 'FFFFFF', '660088', 'FFFF88', '006600');
|
80
|
|
81
|
/* OpenVPN Users Online Users */
|
82
|
$colorvpnusers = array('990000');
|
83
|
|
84
|
/* Captive Portal Total Users Total Users */
|
85
|
/* Captive Portal Concurrent Concurrent Users */
|
86
|
$colorcaptiveportalusers = array('990000');
|
87
|
|
88
|
?>
|