summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-apinger/root
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-apinger/root')
-rw-r--r--applications/luci-app-apinger/root/usr/share/luci/menu.d/luci-app-apinger.json73
-rw-r--r--applications/luci-app-apinger/root/usr/share/rpcd/acl.d/luci-app-apinger.json19
2 files changed, 92 insertions, 0 deletions
diff --git a/applications/luci-app-apinger/root/usr/share/luci/menu.d/luci-app-apinger.json b/applications/luci-app-apinger/root/usr/share/luci/menu.d/luci-app-apinger.json
new file mode 100644
index 0000000000..4b76d133f5
--- /dev/null
+++ b/applications/luci-app-apinger/root/usr/share/luci/menu.d/luci-app-apinger.json
@@ -0,0 +1,73 @@
+{
+ "admin/services/apinger": {
+ "title": "Apinger",
+ "order": 90,
+ "action": {
+ "type": "alias",
+ "path": "admin/services/apinger/overview"
+ }
+ },
+
+ "admin/services/apinger/overview": {
+ "title": "Overview",
+ "order": 10,
+ "action": {
+ "type": "view",
+ "path": "apinger/overview"
+ }
+ },
+
+ "admin/services/apinger/graphs": {
+ "title": "Graphs",
+ "order": 11,
+ "action": {
+ "type": "view",
+ "path": "apinger/graphs"
+ }
+ },
+
+ "admin/services/apinger/interfaces": {
+ "title": "Interfaces",
+ "order": 19,
+ "action": {
+ "type": "view",
+ "path": "apinger/interfaces"
+ }
+ },
+
+ "admin/services/apinger/alarm_down": {
+ "title": "Alarm Down",
+ "order": 20,
+ "action": {
+ "type": "view",
+ "path": "apinger/alarm_down"
+ }
+ },
+
+ "admin/services/apinger/alarm_delay": {
+ "title": "Alarm Delay",
+ "order": 30,
+ "action": {
+ "type": "view",
+ "path": "apinger/alarm_delay"
+ }
+ },
+
+ "admin/services/apinger/alarm_loss": {
+ "title": "Alarm loss",
+ "order": 40,
+ "action": {
+ "type": "view",
+ "path": "apinger/alarm_loss"
+ }
+ },
+
+ "admin/services/apinger/targets": {
+ "title": "Targets",
+ "order": 90,
+ "action": {
+ "type": "view",
+ "path": "apinger/targets"
+ }
+ }
+}
diff --git a/applications/luci-app-apinger/root/usr/share/rpcd/acl.d/luci-app-apinger.json b/applications/luci-app-apinger/root/usr/share/rpcd/acl.d/luci-app-apinger.json
new file mode 100644
index 0000000000..69066081e2
--- /dev/null
+++ b/applications/luci-app-apinger/root/usr/share/rpcd/acl.d/luci-app-apinger.json
@@ -0,0 +1,19 @@
+{
+ "luci-app-apinger" : {
+ "description" : "Grant access to LuCI app Apinger",
+ "read" : {
+ "ubus" : {
+ "apinger" : [ "*" ],
+ "file": [ "stat" ],
+ "service": [ "list" ]
+ },
+ "uci": [ "apinger" ]
+ },
+ "write" : {
+ "ubus" : {
+ "apinger" : [ "*" ]
+ },
+ "uci": [ "apinger" ]
+ }
+ }
+}