-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuptime3.conf
21 lines (19 loc) · 1020 Bytes
/
uptime3.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
########################################################################
# Extract Uptime information
# Page: 1
# Information Status Statistics
# - uptime - yes - yes
########################################################################
dynamic.1.name=uptime
dynamic.1.source=/proc/uptime
dynamic.1.regexp=(^\S+)
dynamic.1.postprocess=
dynamic.1.rrd=GAUGE
web.status.1.content.1.title="Uptime"
web.status.1.content.1.icon=uptime.png
web.status.1.content.1.line.1='Jetson Nano time: <b>' + Clock( data.localtime) + "</b>"
web.status.1.content.1.line.2="Uptime: " + Uptime(data.uptime)
web.statistics.1.content.1.title="Uptime"
web.statistics.1.content.1.graph.1=uptime
web.statistics.1.content.1.graph_options.yaxis={ min:0, tickFormatter: function (v) { if (v > 86400) return (Math.round(v*10/60/60/24)/10) + " d" ; if (v > 3600) return (Math.round(v*10/60/60)/10) + " h" ; else return v + " s" }, }
web.statistics.1.content.1.ds_graph_options.uptime.label=Uptime (s/h/d)