Advertisement
Guest User

librenms conf with rrdcached

a guest
Dec 14th, 2017
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.81 KB | None | 0 0
  1. ?php
  2.  
  3. ## Have a look in includes/defaults.inc.php for examples of settings you can set here. DO NOT EDIT de$
  4.  
  5. ### Database config
  6. $config['db_host'] = '127.0.0.1';
  7. $config['db_user'] = 'librenms';
  8. $config['db_pass'] = 'D42nf23rewD';
  9. $config['db_name'] = 'librenms';
  10. $config['db']['extension'] = 'mysqli';// mysql or mysqli
  11.  
  12. ### Memcached config - We use this to store realtime usage
  13. $config['memcached']['enable']  = FALSE;
  14. $config['memcached']['host']    = 'localhost';
  15. $config['memcached']['port']    = 11211;
  16.  
  17. // This is the user LibreNMS will run as
  18. //Please ensure this user is created and has the correct permissions to your install
  19. $config['user'] = 'librenms';
  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']        = "/";
  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. # Uncomment to submit callback stats via proxy
  51. #$config['callback_proxy'] = "hostname:port";
  52.  
  53. # Set default port association mode for new devices (default: ifIndex)
  54. #$config['default_port_association_mode'] = 'ifIndex';
  55. $config['enable_billing'] = 1;
  56. $config['show_services']  = 1;
  57. $config['nagios_plugins'] = "/usr/lib/nagios/plugins";
  58. $config['enable_syslog']  = 1;
  59.  
  60. # Oxidized configuration
  61. $config['oxidized']['enabled']                  = TRUE;
  62. $config['oxidized']['url']                      = 'http://127.0.0.1:8888';
  63. $config['oxidized']['features']['versioning']   = true;
  64. $config['oxidized']['group_support']            = true;
  65. $config['oxidized']['default_group']            = 'default';
  66. $config['oxidized']['reload_nodes']             = true;
  67.  
  68. # NFSen configuration
  69. $config['nfsen_enable']                         = 1;
  70. $config['nfsen_split_char']                     = '.';
  71. $config['nfsen_rrds'][]                         = '/data/nfsen/profiles-stat/live/';
  72. $config['nfsen_rrds'][]                         = '/data/nfsen/profiles-stat';
  73.  
  74. # RRDCached
  75. $config['rrdtool_version']                       = '1.5.5';
  76. $config['rrdcached']                             = "unix:/var/run/rrdcached.sock";
  77.  
  78. #Network Map Configurator
  79. $config['network_map_vis_options'] = '{
  80.  "nodes": {
  81.    "color": {
  82.      "border": "rgba(0,0,0,1)",
  83.      "background": "rgba(24,162,252,1)",
  84.      "highlight": {
  85.        "border": "rgba(0,0,0,1)",
  86.        "background": "rgba(15,255,28,1)"
  87.      },
  88.      "hover": {
  89.        "border": "rgba(0,0,0,1)",
  90.        "background": "rgba(225,255,17,1)"
  91.      }
  92.    },
  93.    "font": {
  94.      "size": 17
  95.    },
  96.    "physics": false
  97.  },
  98.  "edges": {
  99.    "smooth": {
  100.      "forceDirection": "none"
  101.    }
  102.  },
  103.  "interaction": {
  104.    "hover": true,
  105.    "multiselect": true,
  106.    "navigationButtons": true
  107.  },
  108.  "manipulation": {
  109.    "enabled": true
  110.  },
  111.  "physics": {
  112.    "barnesHut": {
  113.      "avoidOverlap": 0.11
  114.    },
  115.    "minVelocity": 0.75
  116.  }
  117. }';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement