mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
muninlite: fix uptime should report days patch
1295d87 failed to remove cdef config which will break graphs for
existing users.
Properly closes #810
Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
--- a/plugins/uptime
|
--- a/plugins/uptime
|
||||||
+++ b/plugins/uptime
|
+++ b/plugins/uptime
|
||||||
@@ -7,5 +7,5 @@
|
@@ -4,8 +4,7 @@ config_uptime() {
|
||||||
echo "uptime.cdef uptime,86400,/"
|
echo "graph_vlabel uptime in days"
|
||||||
|
echo "uptime.label uptime"
|
||||||
|
echo "uptime.draw AREA"
|
||||||
|
- echo "uptime.cdef uptime,86400,/"
|
||||||
}
|
}
|
||||||
fetch_uptime() {
|
fetch_uptime() {
|
||||||
- echo "uptime.value" $(cut -d\ -f1 /proc/uptime)
|
- echo "uptime.value" $(cut -d\ -f1 /proc/uptime)
|
||||||
|
|||||||
Reference in New Issue
Block a user