Skip to content

Commit 75927c8

Browse files
authored
Revert "Mattermost Alert Transport (librenms#9711)"
This reverts commit 09d5008.
1 parent b7ae282 commit 75927c8

File tree

6 files changed

+148
-135
lines changed

6 files changed

+148
-135
lines changed

LibreNMS/Alert/Transport/Mattermost.php

-135
This file was deleted.

html/.htaccess

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# DO NOT CHANGE THIS FILE
2+
# If you need to change this file, you are doing something wrong.
3+
4+
Options +FollowSymlinks +Multiviews
5+
6+
AddType image/svg+xml .svg
7+
<IfModule mod_filter.c>
8+
<IfModule mod_deflate.c>
9+
AddOutputFilterByType DEFLATE text/css
10+
AddOutputFilterByType DEFLATE application/javascript
11+
AddOutputFilterByType DEFLATE text/javascript
12+
AddOutputFilterByType DEFLATE application/x-javascript
13+
AddOutputFilterByType DEFLATE image/svg+xml
14+
AddOutputFilterByType DEFLATE text/plain
15+
AddOutputFilterByType DEFLATE text/xsd
16+
AddOutputFilterByType DEFLATE text/xsl
17+
AddOutputFilterByType DEFLATE text/xml
18+
AddOutputFilterByType DEFLATE image/x-icon
19+
</IfModule>
20+
</IfModule>
21+
22+
RewriteEngine on
23+
RewriteBase /
24+
RewriteCond %{REQUEST_FILENAME} !-f
25+
RewriteCond %{REQUEST_FILENAME} !-d
26+
RewriteCond %{REQUEST_URI} !\.(js|ico|txt|gif|jpg|png|css|php)
27+
RewriteRule ^api/v0(.*)$ api_v0.php/$1 [L]
28+
RewriteCond %{REQUEST_URI} !=/server-status
29+
RewriteCond %{REQUEST_FILENAME} !-f
30+
RewriteCond %{REQUEST_FILENAME} !-d
31+
RewriteCond %{REQUEST_URI} !\.(js|ico|txt|gif|jpg|png|css|php)
32+
RewriteRule ^(.*)$ index.php
33+
34+
AcceptPathInfo On

html/includes/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deny from all

html/includes/collectd/config.php

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?php
2+
/**
3+
* Configuration file for Collectd graph browser
4+
*/
5+
6+
if (isset($config['rrdgraph_def_text'])) {
7+
$config['rrdgraph_def_text'] = str_replace(' ', ' ', $config['rrdgraph_def_text']);
8+
$config['rrd_opts_array'] = explode(' ', trim($config['rrdgraph_def_text']));
9+
}
10+
11+
// Array of paths when collectd's rrdtool plugin writes RRDs
12+
$config['datadirs'] = array($config['collectd_dir']);
13+
// Width of graph to be generated by rrdgraph
14+
if (isset($_GET['width'])) {
15+
$config['rrd_width'] = $_GET['width'];
16+
} else {
17+
$config['rrd_width'] = 270;
18+
}
19+
20+
// Height of graph to be generated by rrdgraph
21+
if (isset($_GET['height'])) {
22+
$config['rrd_height'] = $_GET['height'];
23+
} else {
24+
$config['rrd_height'] = 120;
25+
}
26+
27+
// List of supported timespans (used for period drop-down list)
28+
$config['timespan'] = array(
29+
array(
30+
'name' => 'hour',
31+
'label' => 'past hour',
32+
'seconds' => 3600,
33+
),
34+
array(
35+
'name' => 'day',
36+
'label' => 'past day',
37+
'seconds' => 86400,
38+
),
39+
array(
40+
'name' => 'week',
41+
'label' => 'past week',
42+
'seconds' => 604800,
43+
),
44+
array(
45+
'name' => 'month',
46+
'label' => 'past month',
47+
'seconds' => 2678400,
48+
),
49+
array(
50+
'name' => 'year',
51+
'label' => 'past year',
52+
'seconds' => 31622400,
53+
),
54+
);
55+
// Interval at which values are collectd (currently ignored)
56+
$config['rrd_interval'] = 10;
57+
// Average rows/rra (currently ignored)
58+
$config['rrd_rows'] = 2400;
59+
// Additional options to pass to rrdgraph
60+
// $config['rrd_opts'] = (isset($config['rrdgraph_defaults']) ? $config['rrdgraph_defaults'] : '');
61+
// $config['rrd_opts'] = array('-E', "-c", "SHADEA#a5a5a5", "-c", "SHADEB#a5a5a5", "-c", "FONT#000000", "-c", "CANVAS#FFFFFF", "-c", "GRID#aaaaaa",
62+
// "-c", "MGRID#FFAAAA", "-c", "FRAME#3e3e3e", "-c", "ARROW#5e5e5e", "-R", "normal");
63+
// Predefined set of colors for use by collectd_draw_rrd()
64+
$config['rrd_colors'] = array(
65+
'h_1' => 'F7B7B7',
66+
'f_1' => 'FF0000', // Red
67+
'h_2' => 'B7EFB7',
68+
'f_2' => '00E000', // Green
69+
'h_3' => 'B7B7F7',
70+
'f_3' => '0000FF', // Blue
71+
'h_4' => 'F3DFB7',
72+
'f_4' => 'F0A000', // Yellow
73+
'h_5' => 'B7DFF7',
74+
'f_5' => '00A0FF', // Cyan
75+
'h_6' => 'DFB7F7',
76+
'f_6' => 'A000FF', // Magenta
77+
'h_7' => 'FFC782',
78+
'f_7' => 'FF8C00', // Orange
79+
'h_8' => 'DCFF96',
80+
'f_8' => 'AAFF00', // Lime
81+
'h_9' => '83FFCD',
82+
'f_9' => '00FF99',
83+
'h_10' => '81D9FF',
84+
'f_10' => '00B2FF',
85+
'h_11' => 'FF89F5',
86+
'f_11' => 'FF00EA',
87+
'h_12' => 'FF89AE',
88+
'f_12' => 'FF0051',
89+
'h_13' => 'BBBBBB',
90+
'f_13' => '555555',
91+
);
92+
/*
93+
* Path to TTF font file to use in error images
94+
* (fallback when file does not exist is GD fixed font)
95+
*/
96+
$config['error_font'] = '/usr/share/fonts/corefonts/arial.ttf';
97+
98+
/*
99+
* Constant defining full path to rrdtool
100+
*/
101+
define('RRDTOOL', $config['rrdtool']);

html/pages/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deny from all
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
<html>
3+
<head>
4+
<title>LibreNMS Alert</title>
5+
</head>
6+
<body>
7+
<div class="container">
8+
@yield('content')
9+
</div>
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)