-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php.example
More file actions
64 lines (51 loc) · 2.49 KB
/
config.php.example
File metadata and controls
64 lines (51 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
// Config
//
// SECURITY NOTE: Nagdash does not enforce authentication or rate limiting
// itself. You must configure your web server to:
// 1. Require authentication (e.g. Apache mod_auth_*, nginx auth_basic, or a
// reverse proxy with auth). Without this, anyone who can reach the web
// server can view the dashboard and perform Nagios actions.
// 2. Enforce rate limiting on action endpoints (do_action.php, do_settings.php)
// to prevent abuse (e.g. nginx limit_req, Apache mod_ratelimit).
// 3. Set HSTS headers if serving over HTTPS (e.g. Strict-Transport-Security).
// Type of API
// Supported values are nagios-api or livestatus
$api_type = "nagios-api";
$site_title = "Nagios Dashboard";
// Your Nagios hosts
$nagios_hosts = array(
array("hostname" => "nagios01.dc1.company.com", "port" => "6315", "protocol" => "http", "tag" => "DC1", "tagcolour" => "#336699"),
array("hostname" => "nagios01.dc2.company.com", "port" => "6315", "protocol" => "http", "tag" => "DC2", "tagcolour" => "#696969"),
array("hostname" => "nagios01.dc3.company.com", "port" => "6315", "protocol" => "http", "tag" => "DC3", "tagcolour" => "#4169E1"),
// and so on...
// array("hostname" => "example.company.com", "port" => "6315", "protocol" => "http", "tag" => "HOST", "tagcolour" => "#FFA500"),
);
// Globally filter out hosts using a regex, if you wish, or leave blank for all.
$filter = "";
// Default downtime duration, measured in seconds, for scheduling downtime via the Nagdash interface.
$duration = 60*60;
// Show the floating spinner when Nagdash is being refreshed.
$show_refresh_spinner = true;
// Refresh rate
$refresh_every_ms = 20000;
// sort_by_time: Set this to true to sort by the last state change, e.g. how long the service has been broken.
// If set to false, leave to default sorting by hostname instead.
$sort_by_time = false;
// To select by last state change, let's define some time ranges folks might
// want to use when filtering events.
$select_last_state_change_options = array(
0 => "N/A", # DO NOT MODIFY THIS VALUE
15 * 60 => "15 minutes",
60 * 60 => "1 hour",
60 * 60 * 12 => "12 hours",
60 * 60 * 24 => "1 day",
60 * 60 * 24 * 7 => "1 week"
);
// Enables the <blink> tag on HARD service notifications. Enable if you want more eye-catching goodness
$enable_blinking = false;
// Include more css after the default; useful for custom skin
$extra_css = "";
# For testing, uncomment this for some errors:
//$mock_state_file = './test_data/state';
// End Config