# generated 2020-03-01 07:26:18

#Generic functions
_path2logs='/opt/YAMon4/logs/'
_path2data='/opt/YAMon4/data/'
dailyLogFile='/opt/YAMon4/logs/2020-03-07.html'
_currentInterval='2020-03'
_path2CurrentMonth='/opt/YAMon4/data/2020/03/'
_intervalDataFile='/opt/YAMon4/data/2020/03/2020-03-mac_usage.js'
_uptime='4355132.92'
lastCheckinHour='56'
_path2bu='/opt/YAMon4/daily-bu/'
_usersFile='/opt/YAMon4/data/users.js'
tmpUsersFile='/tmp/yamon/users.js'
_lastSeenFile='/opt/YAMon4/data/lastseen.js'
tmpLastSeen='/tmp/yamon/lastseen.js'
rawtraffic_day='/opt/YAMon4/data/2020/03/raw-traffic-2020-03-07.txt'
rawtraffic_hr='/tmp/yamon/raw-traffic-2020-03-07-09.txt'
hourlyDataFile='/tmp/yamon/hourly_2020-03-07.js'
macIPFile='/tmp/yamon/mac-ip.txt'

#ip v4 & v6 paths & functions
YAMON_IPTABLES='YAMONv40'
_generic_ipv4='0.0.0.0/0'
_generic_ipv6='::/0'
_IPCmd='ip neigh show'
send2FTP='Send2FTP_0'

#livedata.sh
_conntrack='/proc/net/nf_conntrack'
_conntrack_awk='BEGIN { printf "var curr_connections=["} { gsub(/(src|dst|sport|dport|bytes)=/, ""); if($3 == "tcp"){ printf "[\"%s\",\"%s\",%s,\"%s\",%s,%s],",$3,$7,$9,$8,$10,$12;} else if($3 == "udp"){ printf "[\"%s\",\"%s\",%s,\"%s\",%s,%s],",$3,$6,$8,$7,$9,$11;} else { printf "[\"%s\",\"%s\",,\"%s\",,%s],",$3,$6,$7,$9;} }'
_liveFilePath='/tmp/www/js/live_data4.js'
doCurrConnections='CurrentConnections_1'
doArchiveLiveUpdates='ArchiveLiveUpdates_0'
hourlyDataTemplate='hourlyData4({\"id\":\"%s\",\"hour\":\"%s\",\"down\":\"%s\",\"up\":\"%s\",\"ul_do\":\"%s\",\"ul_up\":\"%s\"})'
currentlyUnlimited='0'

#Firmware specfic & dependent entries:
nameFromStaticLeases='StaticLeases_OpenWRT'
deviceIPField='2'
deviceNameField='3'
_dnsmasq_conf='/tmp/etc/dnsmasq.conf'
_dnsmasq_leases='/tmp/dhcp.leases'
_wwwPath='/tmp/www/'
_wwwURL='/yamon'
_lan_iface='br-lan'
_interfaces='br-guest_turris,br-lan,eth1,guest_turris_0,wlan0,wlan1'
ip6tablesFn='IP6Enabled'
ip6Enabled='1'
nameFromDNSMasqConf='DNSMasqConf'
nameFromDNSMasqLease='DNSMasqLease'
_max_digits='18'
_setRenice='NoRenice'
interface_guest_turris_0='5837860,4924'
interface_wlan0='93114308575,16399771328'
interface_eth1='17146987159,113329868605'
interface_wlan1='26371289390,4792225232'
interface_br_lan='112929451139,20481381225'
interface_br_guest_turris='1080,4474'