-
-
Notifications
You must be signed in to change notification settings - Fork 404
/
graph_view.php
108 lines (88 loc) · 3.01 KB
/
graph_view.php
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2024 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 2 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
+-------------------------------------------------------------------------+
| Cacti: The Complete RRDtool-based Graphing Solution |
+-------------------------------------------------------------------------+
| This code is designed, written, and maintained by the Cacti Group. See |
| about.php and/or the AUTHORS file for specific developer information. |
+-------------------------------------------------------------------------+
| http://www.cacti.net/ |
+-------------------------------------------------------------------------+
*/
$guest_account = true;
include('./include/auth.php');
include_once('./lib/html_tree.php');
include_once('./lib/html_graph.php');
include_once('./lib/api_tree.php');
include_once('./lib/graphs.php');
include_once('./lib/reports.php');
include_once('./lib/timespan_settings.php');
include_once('./lib/rrd.php');
/* set the default graph action */
set_default_graph_action();
/* perform spikekill action */
html_spikekill_actions();
/* process tree settings */
process_tree_settings();
/* setup realtime defaults if they are not set */
initialize_realtime_step_and_window();
switch (get_nfilter_request_var('action')) {
case 'ajax_hosts':
$sql_where = html_make_device_where();
get_allowed_ajax_hosts(true, true, $sql_where);
break;
case 'ajax_search':
get_matching_nodes();
break;
case 'ajax_reports':
html_graph_get_reports();
break;
case 'update_timespan':
html_graph_update_timespan();
break;
case 'save':
html_save_graph_settings();
break;
case 'tree':
html_tree_init();
break;
case 'get_node':
html_tree_get_node();
break;
case 'tree_content':
html_tree_get_content();
break;
case 'preview':
html_graph_preview_view();
break;
case 'list':
html_graph_list_view();
break;
case 'view-preview':
case 'view-tree':
case 'view':
html_graph_single_view();
break;
case 'zoom-preview':
case 'zoom-tree':
case 'zoom':
html_graph_zoom();
break;
case 'properties-preview':
case 'properties-tree':
case 'properties':
html_graph_properties();
break;
}