small-package/luci-app-netdata/luasrc/controller/netdata.lua

11 lines
279 B
Lua
Raw Normal View History

2021-09-24 23:37:27 +08:00
module("luci.controller.netdata", package.seeall)
function index()
if not (luci.sys.call("pidof netdata > /dev/null") == 0) then
return
end
local fs = require "nixio.fs"
2022-05-23 16:02:11 +08:00
entry({"admin", "status", "netdata"}, template("netdata/netdata"), _("NetData"), 10).leaf = true
end