Skip to content

Commit dd52284

Browse files
author
mike_p
committed
Create ids for the html so that css styling can be used
1 parent cab9249 commit dd52284

File tree

1 file changed

+47
-24
lines changed

1 file changed

+47
-24
lines changed

interface/web/monitor/lib/module.conf.php

Lines changed: 47 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,18 @@
1212
unset($items);
1313
$items[] = array( 'title' => "Show Overview",
1414
'target' => 'content',
15-
'link' => 'monitor/show_sys_state.php?state=system');
15+
'link' => 'monitor/show_sys_state.php?state=system',
16+
'html_id' => 'system');
1617

1718
$items[] = array( 'title' => "Show System-Log",
1819
'target' => 'content',
19-
'link' => 'monitor/log_list.php');
20+
'link' => 'monitor/log_list.php',
21+
'html_id' => 'system_log');
2022

2123
$items[] = array( 'title' => 'Show Jobqueue',
22-
'target' => 'content',
23-
'link' => 'monitor/datalog_list.php');
24+
'target' => 'content',
25+
'link' => 'monitor/datalog_list.php',
26+
'html_id' => 'jobqueue');
2427

2528
$module["nav"][] = array( 'title' => 'System State (All Servers)',
2629
'open' => 1,
@@ -47,7 +50,8 @@
4750
unset($items);
4851
$items[] = array( 'title' => $dropDown,
4952
'target' => '', // no action!
50-
'link' => ''); // no action!
53+
'link' => '', // no action!
54+
'html_id' => 'select_server');
5155

5256
$module["nav"][] = array( 'title' => 'Server to Monitor',
5357
'open' => 1,
@@ -66,7 +70,8 @@
6670

6771
$items[] = array( 'title' => "Show CPU info",
6872
'target' => 'content',
69-
'link' => 'monitor/show_data.php?type=cpu_info');
73+
'link' => 'monitor/show_data.php?type=cpu_info',
74+
'html_id' => 'cpu_info');
7075

7176
$module["nav"][] = array( 'title' => 'Hardware-Information',
7277
'open' => 1,
@@ -78,35 +83,43 @@
7883
unset($items);
7984
$items[] = array( 'title' => "Show Overview",
8085
'target' => 'content',
81-
'link' => 'monitor/show_sys_state.php?state=server');
86+
'link' => 'monitor/show_sys_state.php?state=server',
87+
'html_id' => 'server');
8288

8389
$items[] = array( 'title' => "Show Update State",
8490
'target' => 'content',
85-
'link' => 'monitor/show_data.php?type=system_update');
91+
'link' => 'monitor/show_data.php?type=system_update',
92+
'html_id' => 'system_update');
8693

8794
$items[] = array( 'title' => "Show RAID state",
8895
'target' => 'content',
89-
'link' => 'monitor/show_data.php?type=raid_state');
96+
'link' => 'monitor/show_data.php?type=raid_state',
97+
'html_id' => 'raid_state');
9098

9199
$items[] = array( 'title' => "Show Server load",
92100
'target' => 'content',
93-
'link' => 'monitor/show_data.php?type=server_load');
101+
'link' => 'monitor/show_data.php?type=server_load',
102+
'html_id' => 'serverload');
94103

95104
$items[] = array( 'title' => "Show Disk usage",
96105
'target' => 'content',
97-
'link' => 'monitor/show_data.php?type=disk_usage');
106+
'link' => 'monitor/show_data.php?type=disk_usage',
107+
'html_id' => 'disk_usage');
98108

99109
$items[] = array( 'title' => "Show Memory usage",
100110
'target' => 'content',
101-
'link' => 'monitor/show_data.php?type=mem_usage');
111+
'link' => 'monitor/show_data.php?type=mem_usage',
112+
'html_id' => 'mem_usage');
102113

103114
$items[] = array( 'title' => "Show Services",
104115
'target' => 'content',
105-
'link' => 'monitor/show_data.php?type=services');
116+
'link' => 'monitor/show_data.php?type=services',
117+
'html_id' => 'services');
106118

107119
$items[] = array( 'title' => "Show OpenVz VE BeanCounter",
108120
'target' => 'content',
109-
'link' => 'monitor/show_data.php?type=openvz_beancounter');
121+
'link' => 'monitor/show_data.php?type=openvz_beancounter',
122+
'html_id' => 'openvz_beancounter');
110123

111124
$module["nav"][] = array( 'title' => 'Server State',
112125
'open' => 1,
@@ -119,43 +132,53 @@
119132

120133
$items[] = array( 'title' => "Show Mail-Queue",
121134
'target' => 'content',
122-
'link' => 'monitor/show_data.php?type=mailq');
135+
'link' => 'monitor/show_data.php?type=mailq',
136+
'html_id' => 'mailq');
123137

124138
$items[] = array( 'title' => "Show Mail-Log",
125139
'target' => 'content',
126-
'link' => 'monitor/show_log.php?log=log_mail');
140+
'link' => 'monitor/show_log.php?log=log_mail',
141+
'html_id' => 'log_mail');
127142

128143
$items[] = array( 'title' => "Show Mail warn-Log",
129144
'target' => 'content',
130-
'link' => 'monitor/show_log.php?log=log_mail_warn');
145+
'link' => 'monitor/show_log.php?log=log_mail_warn',
146+
'html_id' => 'log_mail_warn');
131147

132148
$items[] = array( 'title' => "Show Mail err-Log",
133149
'target' => 'content',
134-
'link' => 'monitor/show_log.php?log=log_mail_err');
150+
'link' => 'monitor/show_log.php?log=log_mail_err',
151+
'html_id' => 'log_mail_err');
135152

136153
$items[] = array( 'title' => "Show System-Log",
137154
'target' => 'content',
138-
'link' => 'monitor/show_log.php?log=log_messages');
155+
'link' => 'monitor/show_log.php?log=log_messages',
156+
'html_id' => 'log_messages');
139157

140158
$items[] = array( 'title' => "Show ISPC Cron-Log",
141159
'target' => 'content',
142-
'link' => 'monitor/show_log.php?log=log_ispc_cron');
160+
'link' => 'monitor/show_log.php?log=log_ispc_cron',
161+
'html_id' => 'log_ispc_cron');
143162

144163
$items[] = array( 'title' => "Show Freshclam-Log",
145164
'target' => 'content',
146-
'link' => 'monitor/show_log.php?log=log_freshclam');
165+
'link' => 'monitor/show_log.php?log=log_freshclam',
166+
'html_id' => 'log_freshclam');
147167

148168
$items[] = array( 'title' => "Show Clamav-Log",
149169
'target' => 'content',
150-
'link' => 'monitor/show_log.php?log=log_clamav');
170+
'link' => 'monitor/show_log.php?log=log_clamav',
171+
'html_id' => 'log_clamav');
151172

152173
$items[] = array( 'title' => "Show RKHunter-Log",
153174
'target' => 'content',
154-
'link' => 'monitor/show_data.php?type=rkhunter');
175+
'link' => 'monitor/show_data.php?type=rkhunter',
176+
'html_id' => 'rkhunter');
155177

156178
$items[] = array( 'title' => "Show fail2ban-Log",
157179
'target' => 'content',
158-
'link' => 'monitor/show_data.php?type=fail2ban');
180+
'link' => 'monitor/show_data.php?type=fail2ban',
181+
'html_id' => 'fai2ban');
159182

160183
$module["nav"][] = array( 'title' => 'Logfiles',
161184
'open' => 1,

0 commit comments

Comments
 (0)