forked from freifunk-franken/firmware
fff-nodewatcher: add available memory to data
The "available" amount of memory is helpful for several forensic and debugging cases. Send it via alfred. Monitoring support has already been implemented. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
parent
3147a33c52
commit
1158e0bb24
|
@ -1,7 +1,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=fff-nodewatcher
|
||||
PKG_RELEASE:=60
|
||||
PKG_RELEASE:=61
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ SYSTEM_DATA="$SYSTEM_DATA$uptime"
|
|||
|
||||
memory=$(awk '
|
||||
/^MemTotal/ { printf "<memory_total>"$2"</memory_total>" }
|
||||
/^MemAvail/ { printf "<memory_available>"$2"</memory_available>" }
|
||||
/^Cached:/ { printf "<memory_caching>"$2"</memory_caching>" }
|
||||
/^Buffers/ { printf "<memory_buffering>"$2"</memory_buffering>" }
|
||||
/^MemFree/ { printf "<memory_free>"$2"</memory_free>" }
|
||||
|
|
Loading…
Reference in New Issue