Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. <?php
  2. ## Have a look in defaults.inc.php for examples of settings you can set here. DO NOT EDIT defaults.inc.php!
  3.  
  4. ### Database config
  5. $config['db_host'] = 'localhost';
  6. $config['db_port'] = '3306';
  7. $config['db_user'] = 'librenms';
  8. $config['db_pass'] = '*******';
  9. $config['db_name'] = '*******';
  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'] = TRUE;
  18. $config['memcached']['enable'] = FALSE;
  19. $config['memcached']['host'] = "localhost";
  20. $config['memcached']['port'] = 21201;
  21.  
  22. ### Locations - it is recommended to keep the default
  23. $config['install_dir'] = "/opt/librenms";
  24.  
  25. $config['rrdcached'] = "unix:/var/run/rrdcached/rrdcached.sock";
  26. $config['rrdtool_version'] = 1.6;
  27.  
  28.  
  29. ### Default community
  30. $config['snmp']['community'] = array("**", "**", "**");
  31.  
  32. # SNMP time out ladenie, niekedy to reaguje pomalsie..
  33. $config['snmp']['timeout'] = 10;
  34.  
  35. ### Authentication Model
  36. #$config['auth_mechanism'] = "mysql"; # default, other options: ldap, http-auth
  37. $config['auth_mechanism'] = "ldap"; # default, other options: ldap, http-auth
  38. unset($config['auth_ldap_group']);
  39. unset($config['auth_ldap_groups']);
  40. ##unset($config['auth_ldap_groupmemberattr']);
  41. $config['auth_ldap_groups']['ip']['level'] = 10;
  42. $config['auth_ldap_groups']['monitoring']['level'] = 7;
  43. $config['auth_ldap_groups']['guest']['level'] = 1;
  44. $config['auth_ldap_version'] = 3; # v2 or v3
  45. $config['auth_ldap_server'] = "our-domain-server";
  46. $config['auth_ldap_port'] = 389;
  47. $config['auth_ldap_starttls'] = FALSE;
  48. $config['auth_ldap_debug'] = true;
  49. $config['auth_ldap_prefix'] = "uid=";
  50. $config['auth_ldap_suffix'] = ",ou=people,dc=our-domain,dc=sk";
  51. $config['auth_ldap_groupbase'] = "cn=ip,ou=groups,dc=our-domain,dc=sk";
  52. $config['auth_ldap_groupmemberattr'] = "memberUid";
  53.  
  54. ### List of RFC1918 networks to allow scanning-based discovery
  55. #$config['nets'][] = "10.0.0.0/8";
  56. #$config['nets'][] = "172.16.0.0/12";
  57. $config['nets'][] = "172.16.200.0/24";
  58. $config['nets'][] = "192.168.224.0/24";
  59.  
  60. # Uncomment the next line to disable daily updates
  61. $config['allow_duplicate_sysName'] = false;
  62. $config['addhost_alwayscheckip'] = true;
  63. $config['oxidized']['group']['os'][] = array('match' => 'ios', 'group' => 'ios');
  64. $config['oxidized']['group']['os'][] = array('match' => 'ciscosb', 'group' => 'smb');
  65. $config['oxidized']['group']['os'][] = array('match' => 'routeros', 'group' => 'mkt');
  66.  
  67. # SNMP bug v Huawei
  68. $config['discovery_modules']['q-bridge-mib'] = 0;
  69. $config['discovery_modules']['Q-BRIDGE-MIB'] = 0;
  70. $config['discovery_modules']['vlans'] = 0;
  71. $config['poller_modules']['q-bridge-mib'] = 0;
  72. $config['mibs']['Q-BRIDGE-MIB'] = 0;
  73. $config['module']['Q-BRIDGE-MIB'] = 0;
  74. $config['mibs']['Q-BRIDGE-MIB']['enable'] = 0;
  75.  
  76. # $config['bad_if'] = array_diff($config['bad_if'], array('ras'));
  77.  
  78. # Ladenie false-alarmov pre ICMP check..
  79. $config['fping_options']['retries'] = 5;
  80. $config['fping_options']['timeout'] = 1000;
  81. $config['fping_options']['count'] = 4;
  82. $config['fping_options']['millisec'] = 1000;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement