RonJonCastle

LIbreNMS Config

May 4th, 2020
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.76 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'] = 'user';
  8. $config['db_pass'] = 'password';
  9. $config['db_name'] = 'librenms';
  10. $config['db_socket'] = '';
  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:/var/run/rrdcached.sock";
  26.  
  27. ### Default community
  28. $config['snmp']['community'] = array("########");
  29. #$config['snmp']['community'] = array("public");
  30.  
  31. ### Authentication Model
  32. $config['auth_mechanism'] = "active_directory"; # default, other options: ldap, http-auth
  33. #$config['auth_mechanism'] = "mysql"; # default, other options: ldap, http-auth
  34. #$config['http_auth_guest'] = "guest"; # remember to configure this user if you use http-auth
  35. $config['auth_ad_url']="ldaps://FQDN";
  36. $config['auth_ad_domain'] = "domain";
  37. $config['auth_ad_base_dn'] = "distinguishedname";
  38. $config['auth_ad_check_certificates'] = 0; // require a valid ssl certificate
  39. $config['auth_ad_debug'] = 1; // enable for verbose debug messages
  40. $config['active_directory']['users_purge'] = 30; // purge users who haven't logged in for 30 days.
  41. $config['auth_ad_require_groupmembership'] = 1; // require users to be members of a group listed
  42. $config['auth_ad_groups']['netadmins']['level'] = 10; // set the "AD AdminGroup" group to admin level
  43. $config['auth_ad_groups']['RepairTechs']['level'] = 5;   // set the "AD UserGroup" group to global read only level
  44.  
  45. ### List of RFC1918 networks to allow scanning-based discovery
  46. #$config['nets'][] = "10.0.0.0/8";
  47. #$config['nets'][] = "172.16.0.0/12";
  48. #$config['nets'][] = "192.168.0.0/16";
  49.  
  50. # Update configuration
  51. #$config['update_channel'] = 'release';  # uncomment to follow the monthly release channel
  52. #$config['update'] = 0;  # uncomment to completely disable updates
  53.  
  54.  
  55. $config['oxidized']['maps']['group']['hostname'][] = array('regex' => '/^ipaddress/', 'group' => 'arubaos');
  56. $config['oxidized']['maps']['group']['os'][] = array('regex' => '/^procurve/', 'group' => 'procurve');
  57. $config['oxidized']['maps']['group']['os'][] = array('regex' => '/^comware/', 'group' => 'comware');
Add Comment
Please, Sign In to add comment