Guest User

8-11-20 NMS Config.php

a guest
Aug 11th, 2020
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. ### Database config
  2. $config['db_host'] = 'localhost';
  3. $config['db_port'] = '3306';
  4. $config['db_user'] = 'librenms';
  5. $config['db_pass'] = 'Redacted';
  6. $config['db_name'] = 'librenms';
  7. $config['db_socket'] = '';
  8. $config['rrdtool_version'] = '1.7.2';
  9. $config['fping'] = '/usr/bin/fping';
  10. $config['force_ip_to_sysname'] = true;
  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. ### Locations - it is recommended to keep the default
  17. #$config['install_dir'] = "/opt/librenms";
  18.  
  19. ### This should *only* be set if you want to *force* a particular hostname/port
  20. ### It will prevent the web interface being usable form any other hostname
  21. #$config['base_url'] = "http://librenms.company.com";
  22.  
  23. ### Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir
  24. ### and that your web server has permission to talk to rrdcached.
  25. $config['rrdcached'] = "unix:/run/rrdcached.sock";
  26.  
  27. ### Default community
  28. $config['snmp']['community'] = array("public");
  29.  
  30. ### Authentication Model
  31. $config['auth_mechanism'] = "mysql"; # default, other options: ldap, http-auth
  32. #$config['http_auth_guest'] = "guest"; # remember to configure this user if you use http-auth
  33. $config['allow_unauth_graphs'] = true;
  34.  
  35. ### List of RFC1918 networks to allow scanning-based discovery
  36. #$config['nets'][] = "10.0.0.0/8";
  37. #$config['nets'][] = "172.16.0.0/12";
  38. #$config['nets'][] = "192.168.0.0/16";
  39.  
  40. # Update configuration
  41. $config['update_channel'] = 'release'; # uncomment to follow the monthly release channel
  42. #$config['update'] = 0; # uncomment to completely disable updates
  43. $config['page_refresh'] = "60";
  44.  
  45. #Clear Logs older than x amount of days
  46. $config['syslog_purge'] = 1;
  47. $config['device_perf_purge'] = 14;
  48.  
  49. # Map Configuration
  50. $config['map']['engine'] = "leaflet";
  51. $config['leaflet']['default_lat'] = "38.5816";
  52. $config['leaflet']['default_lng'] = "-121.4944";
  53. $config['leaflet']['default_zoom'] = 6;
  54. $config['geoloc']['engine'] = "google";
  55. $config['geoloc']['api_key'] = "Redacted";
  56.  
  57. # Disable Unneeded Pollers to Improve Performance
  58. $config['poller_modules']['unix-agent'] = true;
  59. $config['poller_modules']['os'] = true;
  60. $config['poller_modules']['ipmi'] = true;
  61. $config['poller_modules']['sensors'] = true;
  62. $config['poller_modules']['processors'] = true;
  63. $config['poller_modules']['mempools'] = true;
  64. $config['poller_modules']['storage'] = true;
  65. $config['poller_modules']['netstats'] = true;
  66. $config['poller_modules']['hr-mib'] = true;
  67. $config['poller_modules']['ucd-mib'] = true;
  68. $config['poller_modules']['ipSystemStats'] = true;
  69. $config['poller_modules']['ports'] = true;
  70. $config['poller_modules']['nac'] = false;
  71. $config['poller_modules']['bgp-peers'] = true;
  72. $config['poller_modules']['junose-atm-vp'] = false;
  73. $config['poller_modules']['toner'] = false;
  74. $config['poller_modules']['ucd-diskio'] = true;
  75. $config['poller_modules']['wireless'] = true;
  76. $config['poller_modules']['ospf'] = false;
  77. $config['poller_modules']['cisco-ipsec-flow-monitor'] = false;
  78. $config['poller_modules']['cisco-remote-access-monitor'] = false;
  79. $config['poller_modules']['cisco-cef'] = false;
  80. $config['poller_modules']['cisco-sla'] = false;
  81. $config['poller_modules']['cisco-mac-accounting'] = false;
  82. $config['poller_modules']['cipsec-tunnels'] = false;
  83. $config['poller_modules']['cisco-ace-loadbalancer'] = false;
  84. $config['poller_modules']['cisco-ace-serverfarms'] = false;
  85. $config['poller_modules']['cisco-asa-firewall'] = false;
  86. $config['poller_modules']['cisco-voice'] = false;
  87. $config['poller_modules']['cisco-cbqos'] = false;
  88. $config['poller_modules']['cisco-otv'] = false;
  89. $config['poller_modules']['cisco-vpdn'] = false;
  90. $config['poller_modules']['netscaler-vsvr'] = false;
  91. $config['poller_modules']['aruba-controller'] = false;
  92. $config['poller_modules']['entity-physical'] = true;
  93. $config['poller_modules']['entity-state'] = false;
  94. $config['poller_modules']['applications'] = true;
  95. $config['poller_modules']['availability'] = true;
  96. $config['poller_modules']['stp'] = true;
  97. $config['poller_modules']['ntp'] = true;
  98. $config['poller_modules']['services'] = true;
  99. $config['poller_modules']['loadbalancers'] = false;
  100. $config['poller_modules']['mef'] = false;
  101.  
Add Comment
Please, Sign In to add comment