#!/bin/bash

########################################################### directory
# general directories
DIR_MON="/home/pi/monitoring"

# common directiories
DIR_COMMON="${DIR_MON}/common"
DIR_COMMON_LOGS="${DIR_COMMON}/logs"
DIR_COMMON_SCRIPTS="${DIR_COMMON}/scripts"

# node directiories
DIR_NODE="${DIR_MON}/node"
DIR_NODE_LOGS="${DIR_NODE}/logs"
DIR_NODE_SCRIPTS="${DIR_NODE}/scripts"
DIR_NODE_BLUELOG="${DIR_NODE}/Bluelog"

# server directiories
DIR_SERVER="${DIR_MON}/server"
DIR_SERVER_LOGS="${DIR_SERVER}/logs"
DIR_SERVER_SCRIPTS="${DIR_SERVER}/scripts"
DIR_SERVER_WWW="${DIR_SERVER_SCRIPTS}/www"
DIR_SERVER_WEBUI="${DIR_SERVER_WWW}/html"
DIR_SERVER_HTML_VAR="${DIR_SERVER_WWW}/var"

# system directories
DIR_SYSTEMD_SERVICE="/etc/systemd/system"
DIR_UDEV_RULES="/etc/udev/rules.d"
DIR_SSH="/home/pi/.ssh"

# http interface directories
DIR_MYSQL="/var/lib/mysql"
DIR_APACHE="/etc/apache2"
DIR_PHP="/etc/php"
DIR_HTML="/var/www/html"

########################################################### log
# names of log files dumped in logs directory
LOG_NODE_AIRODUMP="airodump-ng"           # -##.csv
LOG_NODE_AIRODUMP_5GHZ="airodump-ng-5ghz" # -##.csv
LOG_NODE_BLUELOG="bluelog"                # .log
LOG_SERVER_IMPORT="server_import"         # .log

########################################################### systemd
# names of systemd services
SERVICE_NODE_WLAN="node_wlan.service"
SERVICE_NODE_WLAN_5GHZ="node_wlan_5ghz.service"
SERVICE_NODE_BT="node_bt.service"
SERVICE_SERVER_AUTO="server_auto" # _### .service; .timer

########################################################### udev
# names of udev rules
UDEV_PERSISTENT_NET="70-persistent-net.rules"

########################################################### script behavior
# ammount of time to sleep before node_dump script
# starts monitoring (can be disabled by -n option)
# format: "30s"
DUMP_SLEEP="30s"

########################################################### database
# file storing format of monitoring database tables
SERVER_DB_FORMAT="server_db_format"
# name of monitoring MySQL user
SERVER_DB_MON_USER="mon"

########################################################### http interface
# apache web server user
HTML_USER="www-data"
# HTML var filenames
HTML_VAR_SERVER_IMPORT="server_import"
