completely rewrite of nodewatcher2 due to the unbearable an unmaintainable...
completely rewrite of nodewatcher2 due to the unbearable an unmaintainable pseudo-array code for emulating bash-arrays. nodewatcher2 is now written in lua and can be configured by uci. It outputs json- and xml-files containing the nodedata. Optionally those files can additionally be gzipped to save some traffic. Test showed gzipping costs nearly no time and reduces the size of the json- and xml-files by about 60%) The nodewatcher2 divides its operation into two parts: 1) At first the lua-script collects all data it needs from the the system and puts it in a lua-table 2) The script now uses this lua-table to generate a abitrary set of output files by using it's defined and enabled output generators (xml, json,...) The generated files then are put in /tmp/nodedata, which is symlinked into the /nodedata-url of the http-server of the gluon status-page TODO: - make nodewatcher-compat generator - remove files whose generator was disabled via uci in the mean time
Showing
- nodewatcher2/Makefile 4 additions, 1 deletionnodewatcher2/Makefile
- nodewatcher2/files/etc/config/nodewatcher2.config 5 additions, 0 deletionsnodewatcher2/files/etc/config/nodewatcher2.config
- nodewatcher2/files/lib/ffnw/nodewatcher2/nodewatcher.lua 287 additions, 0 deletionsnodewatcher2/files/lib/ffnw/nodewatcher2/nodewatcher.lua
- nodewatcher2/files/lib/ffnw/nodewatcher2/nodewatcher.sh 0 additions, 254 deletionsnodewatcher2/files/lib/ffnw/nodewatcher2/nodewatcher.sh
- nodewatcher2/files/lib/gluon/cron/nodewatcher2 1 addition, 1 deletionnodewatcher2/files/lib/gluon/cron/nodewatcher2
- nodewatcher2/files/usr/lib/lua/dkjson.lua 369 additions, 0 deletionsnodewatcher2/files/usr/lib/lua/dkjson.lua
Loading
Please register or sign in to comment