Advertisement
Guest User

Untitled

a guest
Jan 12th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.80 KB | None | 0 0
  1. ##########################################################################
  2. # Yet Another Monitor (YAMon)
  3. # Copyright (c) 2013-present Al Caughey
  4. # All rights reserved.
  5. #
  6. # DEFAULT CONFIG FILE FOR YAMon...
  7. # tailor these values to suit your installation
  8. # * denotes default or recommended value.
  9. #
  10. ##########################################################################
  11.  
  12. # version 3.4.0 - uprev'd for new release
  13. # version 3.4.1 - removed _bridgeIP, _path2ip; added _multipleIPMAC
  14. # version 3.4.2 - added _logNoMatchingMac
  15. # version 3.4.4 - re-added _path2ip; renamed _webDir & _webIndex
  16. # version 3.4.5 - added _local_ip6
  17.  
  18. _firmware='0' # which firmware is running on the router: permitted values: 0->DD-WRT(*) || 1->OpenWrt || 2->Asuswrt-Merlin || 3->Asuswrt-Merlin || 4->LEDE || 5->Xwrt-Vortex || 6->Turris || 7->Padavan
  19. _updatefreq='30' # number of seconds between updates (* default `15` sec)
  20. _publishInterval='4' # number of intervals between updates for to the website (* default `12`)
  21. _ispBillingDay='1' # roll-over day of the month for ISP billing (* default `1`)
  22. _webDir='www/' # path to the web files (* default `www/`)
  23. _webIndex='index.html' # path to the index page (* default `index.html`)
  24. _dataDir='data/' # path to the data directory (* default `data/`)
  25. _logDir='logs/' # path to log files (* default `logs/`)
  26. # NB - If _dataDir OR _logDir starts with a slash it will be an absolute path (and d_baseDir will be ignored)
  27. _symlink2data='1' # use a symbolic link to /opt/YAMon2/data rather than /tmp/www/data... permitted values: 0->false || 1->true(*)
  28. _wwwPath='/tmp/www/' # path to web directory (* default `/tmp/www/`)
  29. _wwwURL='/user' # path to reports (* default `/user`)
  30. _wwwData='data3/' # path to web data directory(* default `data/`)
  31. _wwwJS='js/' # path to JavaScript directory(* default `js/`)
  32. _wwwCSS='css/' # path to CSS directory(* default `css/`)
  33. _wwwImages='images/' # path to Images directory(* default `images/`)
  34. _usageFileName='mac_data.js' # file name for usage data (* default `mac_data.js`)
  35. _usersFileName='users.js' # file name for user/devices file (* default `users.js`)
  36. _configWWW="config$_file_version.js" # file name for the js config file (* default `config3.x.js`)
  37. _enableLogging='1' # turn logging on/off: permitted values: 1->logging(*) || 0->no logging
  38. _log2file='1' # send logs to screen or file: permitted values: 0->screen || 1->file(*) || 2->both
  39. _loglevel='1' # amount of detail to include in the log: permitted values: -1->really verbose || 0->all || 1->most(*) || 2->serious only
  40. _scrlevel='1' # amount of detail to include in the screen updates: permitted values: -1->really verbose || 0->all || 1->most(*) || 2->serious only
  41. # NB - only required if _log2file == 0 || 2...
  42. _doDailyBU='1' # whether or not to make daily backups of user & usage data - values: 1-->Yes(*) || 0->No
  43. _dailyBUPath='daily-bu/' # path to back-ups directory (* default `daily bu/`)
  44. # NB - only required if doDailyBU == 1...
  45. # NB - if _dailyBU starts with a slash it will be an absolute path (and d_baseDir will be ignored)
  46. _tarBUs='1' # permitted values: 0->no || 1->yes(*)
  47. # NB - if doDailyBU == 1 && _tarBUs==1, the daily backup files will be compressed
  48. _hourlyFileName='hourly_data.js' # file name for hourly usage file (* default `hourly_data.js`)
  49. # NB - file extension changed from .html to .js
  50. _doLiveUpdates='1' # whether or not to record live usage - values: 1-->Yes(*) || 0->No
  51. _doCurrConnections=1 # whether or not to include current connections in the live usage file - values: 1-->Yes(*) || 0->No
  52. _liveFileName='live_data3.js' # file name for live usage data (* default `live_data.js`)
  53. # NB - only required if _doLiveUpdates == 1
  54. _doArchiveLiveUpdates='0' # whether or not to retain a copy of all of the live data - values: 1-->Yes(*) || 0->No
  55. # NB - only required if _doLiveUpdates == 1 & could get big!
  56. _monthlyDataCap='0' #'-->data cap in GB)
  57. _unlimited_usage='0' # whether or not you have an unlimited downloads time period: 0->No(*) || 1->Yes
  58. _unlimited_start='2:00' # the time (hours:minutes) when your unlimited downloads period starts
  59. _unlimited_end='8:00' # the time (hours:minutes) when your unlimited downloads period ends
  60. # NB - only required if _unlimited_usage == 1
  61. _settings_pswd='' # optionally password protect the Settings tab in the HTML reports (* default '' empty string or omitted)
  62. _dnsmasq_conf='/tmp/dnsmasq.conf' # path to dnsmasq.conf (* default `/tmp/dnsmasq.conf`)
  63. # NB - if _firmware==1 (OpenWrt), use `/tmp/etc/dnsmasq.conf`
  64. _dnsmasq_leases='/tmp/dnsmasq.leases' # path to dnsmasq.leases (* default `/tmp/dnsmasq.leases`)
  65. # NB - if _firmware==1 (OpenWrt), use `/tmp/dhcp.leases`
  66. _do_separator='' # a default separator character between owner and device name in static leases or dnsmasq values, e.g., Al-iPhone (* default ``)
  67. _includeBridge=0 # whether or not there is a bridge in your wireless configuration - values: 0-->No(*) || 1->Yes
  68. _bridgeMAC='XX:XX:XX:XX:XX:XX' # mac address for the bridge device, or comma separated list if multiple bridges
  69. # NB - only required if _includeBridge == 1
  70. _defaultOwner='Unknown' # default owner name for new devices
  71. _defaultDeviceName='New Device' # default name for new devices if nothing can be found by the script
  72. _includeIPv6='0' # whether or not your router is configured for IPv6: 0->no(*) || 1->yes
  73. _doLocalFiles='0' # make a local copy of JS, CSS and images: 0->no(*recommended) || 1->yes
  74. # NB - set to 1 if you do not want use the files hosted at my domain (usage-monitoring.com)
  75. _dbkey='' # if not null, this option will sync settings across all of your devices...
  76. # NB - get the value for this parameter from the settings tab
  77. _ignoreGateway=0 # whether or not to exclude any updates involving your gateway: 0->no(*) || 1->yes
  78. _gatewayMAC='' # MAC address for the gateway
  79. _sendAlerts=0 # whether or not to send alerts 0->no(*) || 1->yes (via usage-monitoring.com) || 2->via msmtp
  80. # NB - currently only when a new entry is added to users.js or if iptables is corrupted
  81. _sendAlertTo='' # NB - only required if _sendAlerts == 1
  82. _path2MSMTP=/opt/usr/bin/msmtp # NB - only required if _sendAlerts == 2
  83. _MSMTP_CONFIG=/opt/scripts/msmtprc # NB - only required if _sendAlerts == 2
  84. _organizeData='2' # whether or not to organize data files - values: 0->no || 1->by year || 2->by year & month(*)
  85. _allowMultipleIPsperMAC=0 # set to 1 if you have virtual machines with their own IP on a single MAC address - values: 0-->No(*) || 1->Yes
  86. _multipleIPMAC='XX:XX:XX:XX:XX:XX' # base MAC address for the virtual machines, or comma separated list if multiple base MAC address
  87. # NB - only required if _allowMultipleIPsperMAC == 1
  88. _enable_ftp='0' # set to 1 if you have an FTP site to mirror the data - values: 0-->No(*) || 1->Yes
  89. # NB - if _organizeData>0, you will have to create the subdirectories manually
  90. _ftp_site='' # set to url to your FTP site... ***YOU*** must set up & configure your FTP server
  91. _ftp_user='' # set to the username for your FTP site
  92. _ftp_pswd='' # set to the password for your FTP site
  93. _ftp_dir='' # set to root directory path to your desired storage location
  94. _useTMangle=0 # whether or not to use the `-t mangle` option for ipchain: 0->no(*) || 1->yes
  95. _use_nf_conntrack=1 # use nf_conntrack rather than ip_conntrack: 0->no(*) || 1->yes
  96. _logNoMatchingMac=0 # add an iptables entry to log unknown traffic: 0->no(*) || 1->yes
  97. _path2ip='' # path to the full version of ip if installed (manually)
  98. _local_ip6='fe80:' # preface for local ip6 addresses (entered as a comma separated list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement