This repository has been archived by the owner on Mar 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ini.example
36 lines (30 loc) · 2.16 KB
/
config.ini.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Stats path
pathStats = /home/.... # path to dkmur Stats to re-use MADmin/instance + DB settings
# conrol PoE via local server
useSSH = false # true/false to use SSH key-based authentication to conrol PoE via local server i.e. rPI
ssh_user = dkmur # user as defined on local server
ssh_ip = 123.456.789.0 # ip address to local server, when using this option most likely your home WAN IP
ssh_port = 22 # port to use, make sure the port is forwarded to local server
# auto powercycle settings
noProtoMinutes = 10 # number of minutes no proto is received to consider device for auto cycle (we do not receive data)
noRestartMinutes = 10 # number of minutes after last pogo restart to consider device for auto cycle (mad does not attempt to fix by restart)
noRebootMinutes = 10 # number of minutes after last reboot to consider device for auto cycle (mad does not attempt to fix by reboot)
minWaitMinutes = 60 # minimum waiting time before power cycling the same port again (in minutes)
maxPortCycle = 3 # max #ports that require cycling else exit script, to prevent i.e. cycling all devices when MAD is down
webhook_maxPort = "https://discord.com/api/webhooks/... " #webhook for discord notification on max Port Cycle exceeded for autocycle script
# control via RMD scripts
useRMD = true
# sendWorker (to a location)
device_maxDistance = 50 # maximum number of km to jump else exit
device_waittime = 30 # number of seconds to stay on location
device_toUse = all # allowed devices to be used: all or an array of devices i.e atv01,atv02,atv07
# duplicate section below for each HiLink/PoE switch
[device1] # replace device1 with devicename you want to use
type = poe # poe or hilink
ip = 192.168.0.25 # ip adress of poe switch or relay, make sure to fix it
port = 161 # port on which poe switch (default 161) or relay can be reached
relays = 48 # number of relays / ports on switch
sleep = 1m # additional sleep to be added between cycling/starting ALL ports
relaytype = nc # HiLink only, no (normally open) or nc (normally closed)
version = 1 # poe only, snmp version
community = reboopoe # poe only