Skip to main content

After installation - .env file

Main config

File .env is a config file for GRUSHER. Many varaibles you can config via this file.

This file is not available from the web. Editing is possible only via server console (like "nano .env")

Please edit this file carefully. As this may cause the system to crash

Typical file config

# APPLICATION
APP_DEBUG=false
APP_NAME="Grusher"
APP_URL=http://192.168.1.1/
APP_KEY=RANDOM_KEY

# CACHE
CACHE_PREFIX = 'grusher_cache'
# Available CACHE_DRIVER is database, file, memcached. Memcached is more powerfull
CACHE_DRIVER = memcached
# CACHE SYSTEM FILE AND LOGIC
ROUTES_CACHE = true
ASSET_CACHE = true

# SESSION - USER AUTH SESSION STORAGE
SESSION_COOKIE =  'grusher_session'
# Available SESSION_DRIVER is file and cookie
SESSION_DRIVER = 'file'

# DATABASE CONNECTION
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=grusher
DB_USERNAME=grusher
DB_PASSWORD=grusher

# MAIL SETTINGS
MAIL_DRIVER=smtp
MAIL_HOST=mail.ukraine
MAIL_PORT=25
MAIL_ENCRYPTION=tls
MAIL_USERNAME=null
MAIL_PASSWORD=null

#========= DO NOT CHANGE IT ================
# TRANSLATING
TRANSLATE_PREFIX_LOCALE=false

# OTHER
DB_USE_CONFIG_FOR_TESTING=false
QUEUE_CONNECTION=sync
DATABASE_TEMPLATES=false
LINK_POLICY=detect
ENABLE_CSRF=true

Poller log settings

# POLLERS LOGGING (Working from build 291)
# !!! If setting is not exist, default is 0 (before build 319 was 0). 
# !!! For better performance from build 319 default is 0. If you need text log change 0 to 1
# !!!
LOG_POLLER_DEVICE_MONITORING = 0
LOG_POLLER_ONU_SIGNAL = 0
LOG_POLLER_ONU_MONITORING = 0
LOG_POLLER_PORT_METRIC = 0
LOG_POLLER_PORT_MONITORING = 0
LOG_POLLER_ONU_LIST = 0
LOG_POLLER_FDB = 0
LOG_POLLER_SFP = 0
LOG_POLLER_DEVICE_METRIC = 0
LOG_POLLER_DEVICE_BACKUP = 0
LOG_POLLER_DEVICE_VLAN = 0
LOG_POLLER_DEVICE_IFERROR = 0
LOG_POLLER_DEVICE_PORTS_STATE = 0
LOG_POLLER_PERSONAL_CRON = 0
# from build 296
LOG_POLLER_ROUTING_DISCOVERING = 0
LOG_POLLER_ROUTING_MONITORING = 0
# from build 301
LOG_POLLER_DEVICE_DISCOVERING = 0
# from build 319
LOG_POLLER_ONU_IFACE_METRIC = 0

Proc_nice - change the priority of pollers processes (available from build_333)

Proc_nice changes the priority of the current process by the amount specified in priority. A positive priority will lower the priority of the current process, whereas a negative priority will raise the priority. 

$PROC_NICE_ENABLED = env('PROC_NICE_ENABLED', 0);    // 0 or 1
$PROC_NICE_VALUE = env('PROC_NICE_VALUE', 5);        // 0-20

This is a third-Third-party modules settings

UserSide

Zabbix

At now support configuring only traffic and error data (by template)

# ZABBIX PORTS FOR SEARCH
ZABBIX_IN_TR_DESCR = 'incoming traffic on interface'
ZABBIX_OUT_TR_DESCR = 'outgoing traffic on interface'
ZABBIX_IN_ERR_DESCR = 'incoming errors on interface'
ZABBIX_OUT_ERR_DESCR = 'outgoing errors on interface'
ZABBIX_PORT_TEMPLATE = '*%PORT%*'
UserSide

This block is used if you have different nodes from those that the UserSide has by default

# USERSIDE NODES REDIFINITION
# Write ID if one.
# Write "ID1, ID2, ID3" if more then one.

# ===== EXAMPLES =====
# Muff, муфта
US_NODE_REWRITE_MUFF_IDS = "1 ,7, 9"

# Pilar, стовп, опора
US_NODE_REWRITE_PILAR_IDS = 2

# Well, колодязь
US_NODE_REWRITE_WELL_IDS = 3

# Communication node, вузол зв'язку
US_NODE_REWRITE_COMM_NODE_IDS = 8

Zabbix


At now support configuring only traffic and error data (by template)

# ZABBIX PORTS FOR SEARCH
ZABBIX_IN_TR_DESCR = 'incoming traffic on interface'
ZABBIX_OUT_TR_DESCR = 'outgoing traffic on interface'
ZABBIX_IN_ERR_DESCR = 'incoming errors on interface'
ZABBIX_OUT_ERR_DESCR = 'outgoing errors on interface'
ZABBIX_PORT_TEMPLATE = '*%PORT%*'