forked from lozzd/Nagdash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php.example
53 lines (41 loc) · 1.9 KB
/
config.php.example
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
<?php
// Config
// Type of API
// Supported values are nagios-api or livestatus
$api_type = "nagios-api";
// 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 = none;
# For testing, uncomment this for some errors:
//$mock_state_file = './test_data/state';
// End Config