mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
muninlite: Import from oldpackages, add myself as maintainer
Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- a/munin-node.in
|
||||
+++ b/munin-node.in
|
||||
@@ -113,7 +113,7 @@ PLUGINS=$RES
|
||||
|
||||
# ===== MAIN LOOP =====
|
||||
FUNCTIONS="list nodes config fetch version quit"
|
||||
-HOSTNAME=$(hostname -f 2>/dev/null || hostname)
|
||||
+HOSTNAME=$(/sbin/uci get "system.@system[0].hostname" 2>/dev/null || cat /proc/sys/kernel/hostname)
|
||||
echo "# munin node at $HOSTNAME"
|
||||
while read arg0 arg1
|
||||
do
|
||||
Reference in New Issue
Block a user