19
19
use Icinga \Module \Vspheredb \Web \Table \Monitoring \MonitoringRuleProblemHistoryTable ;
20
20
use Icinga \Module \Vspheredb \Web \Table \Monitoring \MonitoringRuleProblemTable ;
21
21
use Icinga \Module \Vspheredb \Web \Table \TableWithVCenterFilter ;
22
- use Icinga \Module \Vspheredb \Web \Widget \Documentation ;
23
22
use Icinga \Web \Notification ;
24
23
use ipl \Html \Html ;
25
24
use Ramsey \Uuid \Uuid ;
@@ -39,24 +38,24 @@ public function init()
39
38
$ tabs = $ this ->tabs ();
40
39
$ tabs ->add ('index ' , [
41
40
'label ' => $ this ->translate ('Monitoring ' ),
42
- 'url ' => 'vspheredb/monitoring '
41
+ 'url ' => 'vspheredb/monitoring '
43
42
])->add ('history ' , [
44
43
'label ' => $ this ->translate ('History ' ),
45
- 'url ' => 'vspheredb/monitoring/history '
44
+ 'url ' => 'vspheredb/monitoring/history '
46
45
]);
47
46
if ($ this ->hasPermission ('vspheredb/admin ' )) {
48
47
$ tabs ->add ('configuration ' , [
49
48
'label ' => $ this ->translate ('Configuration ' ),
50
- 'url ' => 'vspheredb/monitoring/configuration '
49
+ 'url ' => 'vspheredb/monitoring/configuration '
51
50
])->add ('hosttree ' , [
52
51
'label ' => $ this ->translate ('Hosts ' ),
53
- 'url ' => 'vspheredb/monitoring/hosttree '
52
+ 'url ' => 'vspheredb/monitoring/hosttree '
54
53
])->add ('vmtree ' , [
55
54
'label ' => $ this ->translate ('Virtual Machines ' ),
56
- 'url ' => 'vspheredb/monitoring/vmtree '
55
+ 'url ' => 'vspheredb/monitoring/vmtree '
57
56
])->add ('datastoretree ' , [
58
57
'label ' => $ this ->translate ('Datastores ' ),
59
- 'url ' => 'vspheredb/monitoring/datastoretree '
58
+ 'url ' => 'vspheredb/monitoring/datastoretree '
60
59
]);
61
60
}
62
61
$ tabs ->activate ($ action );
@@ -133,11 +132,15 @@ public function configurationAction()
133
132
Html::tag ('h2 ' , $ this ->translate ('Defining Check Commands ' )),
134
133
Html::tag ('p ' , Html::sprintf (
135
134
$ this ->translate ('Check our %s for instructions of how to set them up ' ),
136
- Documentation::link (
135
+ Html::tag (
136
+ 'a ' ,
137
+ [
138
+ 'href ' => 'https://icinga.com/docs/icinga-vsphere-integration/latest/doc/32-Monitoring_Rules/ ' ,
139
+ 'class ' => 'icon-book ' ,
140
+ 'title ' => $ this ->translate ('Click to read our documentation: Icinga vSphereDB Check Commands ' ),
141
+ 'target ' => '_blank '
142
+ ],
137
143
$ this ->translate ('Documentation ' ),
138
- 'icinga-vsphere-integration ' ,
139
- '32-Monitoring_Rules ' ,
140
- $ this ->translate ('Icinga vSphereDB Check Commands ' )
141
144
)
142
145
))
143
146
]);
0 commit comments