diff --git a/root_file_system/default/etc/config/configurator b/root_file_system/default/etc/config/configurator index 0a257dd..77cf696 100644 --- a/root_file_system/default/etc/config/configurator +++ b/root_file_system/default/etc/config/configurator @@ -1,4 +1,3 @@ - config 'script' option 'error_level' '0' option 'logfile' '/var/log/configurator.log' @@ -9,8 +8,8 @@ config 'api' option 'ipv4_address' '1' option 'ipv6_interface' 'br-mesh' option 'ipv6_address' 'fe80::201:2ff:fe03:405' - option 'timeout' '3' - option 'retry' '3' + option 'timeout' '5' + option 'retry' '5' config 'update' option 'autoupdate' '1' @@ -23,9 +22,5 @@ config 'crawl' option 'router_id' '1' option 'update_hash' '1' -config 'network' - option 'mesh_interface' 'br-mesh' - option 'client_interfaces' 'ath0' - config 'netmon' option 'autoadd_ipv6_address' '1' \ No newline at end of file diff --git a/root_file_system/default/etc/config/nodewatcher b/root_file_system/default/etc/config/nodewatcher index a0c2c6e..9284e9d 100644 --- a/root_file_system/default/etc/config/nodewatcher +++ b/root_file_system/default/etc/config/nodewatcher @@ -2,7 +2,6 @@ config 'script' option 'version' '25' option 'error_level' '0' option 'logfile' '/var/log/nodewatcher.log' - option 'sync_hostname' '1' config 'api' option 'ipv4_address' '1' @@ -14,14 +13,6 @@ config 'api' config 'update' option 'autoupdate' '1' -config 'crawl' - option 'method' 'hash' - option 'nickname' '1' - option 'password' '1' - option 'router_id' '1' - option 'update_hash' '1' - option 'login_string' '1' - config 'network' option 'mesh_interface' 'br-mesh' - option 'client_interfaces' 'ath0' + option 'client_interfaces' 'ath0 wlan0' \ No newline at end of file diff --git a/root_file_system/default/etc/firmware_release b/root_file_system/default/etc/firmware_release index 517864b..127c5ab 100644 --- a/root_file_system/default/etc/firmware_release +++ b/root_file_system/default/etc/firmware_release @@ -1,2 +1,2 @@ FIRMWARE_VERSION="trunk" -RELEASE_DATE="" \ No newline at end of file +RELEASE_DATE="" diff --git a/root_file_system/default/etc/nodewatcher.sh b/root_file_system/default/etc/nodewatcher.sh index 71cddbc..f817756 100755 --- a/root_file_system/default/etc/nodewatcher.sh +++ b/root_file_system/default/etc/nodewatcher.sh @@ -13,12 +13,6 @@ if [ -f /etc/config/nodewatcher ];then SCRIPT_VERSION=`uci get nodewatcher.@script[0].version` SCRIPT_ERROR_LEVEL=`uci get nodewatcher.@script[0].error_level` SCRIPT_LOGFILE=`uci get nodewatcher.@script[0].logfile` - SCRIPT_SYNC_HOSTNAME=`uci get nodewatcher.@script[0].sync_hostname` - CRAWL_METHOD=`uci get nodewatcher.@crawl[0].method` - CRAWL_ROUTER_ID=`uci get nodewatcher.@crawl[0].router_id` - CRAWL_UPDATE_HASH=`uci get nodewatcher.@crawl[0].update_hash` - CRAWL_NICKNAME=`uci get nodewatcher.@crawl[0].nickname` - CRAWL_PASSWORD=`uci get nodewatcher.@crawl[0].password` UPDATE_AUTOUPDATE=`uci get nodewatcher.@update[0].autoupdate` MESH_INTERFACE=`uci get nodewatcher.@network[0].mesh_interface` CLIENT_INTERFACES=`uci get nodewatcher.@network[0].client_interfaces` @@ -37,7 +31,7 @@ if [ -n $MESH_INTERFACE ]; then MESH_INTERFACE="br-mesh" fi if [ -n $CLIENT_INTERFACES ]; then - CLIENT_INTERFACES="ath0" + CLIENT_INTERFACES="ath0 wlan0" fi if [ -n $SCRIPT_SYNC_HOSTNAME ]; then SCRIPT_SYNC_HOSTNAME="1" @@ -124,14 +118,6 @@ update() { } crawl() { - #Get API and authentication configuration - netmon_api=`get_url` - authentificationmethod=$CRAWL_METHOD - nickname=$CRAWL_NICKNAME - password=$CRAWL_PASSWORD - router_id=$CRAWL_ROUTER_ID - router_auto_update_hash=$CRAWL_UPDATE_HASH - #Get system data from UCI if which uci >/dev/null; then if [ $error_level -gt "1" ]; then @@ -306,13 +292,12 @@ crawl() { done client_count=$i - AUTHENTIFICATION_DATA="$authentificationmethod$nickname$password$router_auto_update_hash$router_id" - SYSTEM_DATA="online$hostname$description$location$latitude$longitude$luciname$luciversion$distname$distversion$chipset$cpu$memory_total$memory_caching$memory_buffering$memory_free$loadavg$processes$uptime$idletime$local_time$community_essid$community_nickname$community_email$community_prefix$batman_adv_version$kernel_version$nodewatcher_version$firmware_version" + SYSTEM_DATA="online$hostname$description$location$latitude$longitude$luciname$luciversion$distname$distversion$chipset$cpu$memory_total$memory_caching$memory_buffering$memory_free$loadavg$processes$uptime$idletime$local_time$community_essid$community_nickname$community_email$community_prefix$batman_adv_version$kernel_version$nodewatcher_version$firmware_version$FIRMWARE_REVISION$OPENWRT_CORE_REVISION$OPENWRT_FEEDS_PACKAGES_REVISION" INTERFACE_DATA="$int" BATMAN_ADV_ORIGINATORS="$batman_adv_originators" CLIENT_DATA="$client_count" - DATA="$AUTHENTIFICATION_DATA$SYSTEM_DATA$INTERFACE_DATA$BATMAN_ADV_INTERFACES$BATMAN_ADV_ORIGINATORS$CLIENT_DATA" + DATA="$SYSTEM_DATA$INTERFACE_DATA$BATMAN_ADV_INTERFACES$BATMAN_ADV_ORIGINATORS$CLIENT_DATA" #Send system data echo $DATA > /tmp/node.data