From Mike Hammett, 5 Years ago, written in Plain Text.
Embed
  1. root@indy-librenms:/home/mhammett# cat /opt/librenms/config.php
  2. <?php
  3. ## Have a look in defaults.inc.php for examples of settings you can set here. DO NOT EDIT defaults.inc.php!
  4.  
  5. ### Database config
  6. $config['db_host'] = '10.0.254.23';
  7. $config['db_user'] = 'librenms';
  8. $config['db_pass'] = 'fLkWC6ofN8g1d4NjQq5EqoLx4lLYFecqGCoPjlsfwEXy50Kn8c';
  9. $config['db_name'] = 'librenms';
  10. $config['db']['extension'] = "mysqli";// mysql or mysqli
  11.  
  12. // This is the user LibreNMS will run as
  13. //Please ensure this user is created and has the correct permissions to your install
  14. $config['user'] = 'librenms';
  15.  
  16. ### Memcached config - We use this to store realtime usage
  17. $config['memcached']['enable']  = FALSE;
  18. $config['memcached']['host']    = "localhost";
  19. $config['memcached']['port']    = 11211;
  20.  
  21. ### Locations - it is recommended to keep the default
  22. $config['install_dir']  = "/opt/librenms";
  23.  
  24. ### This should *only* be set if you want to *force* a particular hostname/port
  25. ### It will prevent the web interface being usable form any other hostname
  26. #$config['base_url']        = "http://librenms.company.com";
  27.  
  28. ### Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir
  29. ### and that your web server has permission to talk to rrdcached.
  30. #$config['rrdcached']    = "unix:/var/run/rrdcached.sock";
  31.  
  32. ### Default community
  33. $config['snmp']['community'] = array("public");
  34.  
  35. ### Authentication Model
  36. $config['auth_mechanism'] = "mysql"; # default, other options: ldap, http-auth
  37. #$config['http_auth_guest'] = "guest"; # remember to configure this user if you use http-auth
  38.  
  39. ### List of RFC1918 networks to allow scanning-based discovery
  40. $config['nets'][] = "10.0.0.0/8";
  41. #$config['nets'][] = "172.16.0.0/12";
  42. #$config['nets'][] = "192.168.0.0/16";
  43.  
  44. # following is necessary for poller-wrapper
  45. # poller-wrapper is released public domain
  46. $config['poller-wrapper']['alerter'] = FALSE;
  47. # Uncomment the next line to disable daily updates
  48. #$config['update'] = 0;
  49.  
  50.  
  51.  
  52. ##Mike added
  53. $config['enable_syslog'] = 1;
  54. $config['enable_billing'] = 1; # Enable Billing
  55. #$config['oxidized']['enabled']         = TRUE;
  56. #$config['oxidized']['url']             = 'http://indy-librenms.midwest-ix.com:8000/oxidized/';
  57. #$config['oxidized']['features']['versioning'] = true;
  58.  
  59. $config['smokeping']['dir'] = '/var/lib/smokeping'; // Ubuntu 16.04 Location
  60. #$config['smokeping']['dir'] = '/opt/smokeping/data';
  61. $config['smokeping']['pings'] = 60;     // should be equal to "pings" in your smokeping config
  62. $config['smokeping']['integration'] = true;
  63.  
  64. $config['rrdtool_version'] = '1.6.0';
  65. $config['rrdcached'] = "unix:/var/run/rrdcached.sock";
  66.  
  67. $config['fping_options']['retries'] = 5;
  68. $config['fping_options']['timeout'] = 1000;
  69. $config['fping_options']['count'] = 4;
  70. $config['fping_options']['millisec'] = 1000;
  71.