Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ## Have a look in defaults.inc.php for examples of settings you can set here. DO NOT EDIT defaults.inc.php!
- ### Database config
- $config['db_host'] = 'localhost';
- $config['db_port'] = '3306';
- $config['db_user'] = 'user';
- $config['db_pass'] = 'password';
- $config['db_name'] = 'librenms';
- $config['db_socket'] = '';
- // This is the user LibreNMS will run as
- //Please ensure this user is created and has the correct permissions to your install
- $config['user'] = 'librenms';
- ### Locations - it is recommended to keep the default
- #$config['install_dir'] = "/opt/librenms";
- ### This should *only* be set if you want to *force* a particular hostname/port
- ### It will prevent the web interface being usable form any other hostname
- #$config['base_url'] = "http://librenms.company.com";
- ### Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir
- ### and that your web server has permission to talk to rrdcached.
- #$config['rrdcached'] = "unix:/var/run/rrdcached.sock";
- ### Default community
- $config['snmp']['community'] = array("########");
- #$config['snmp']['community'] = array("public");
- ### Authentication Model
- $config['auth_mechanism'] = "active_directory"; # default, other options: ldap, http-auth
- #$config['auth_mechanism'] = "mysql"; # default, other options: ldap, http-auth
- #$config['http_auth_guest'] = "guest"; # remember to configure this user if you use http-auth
- $config['auth_ad_url']="ldaps://FQDN";
- $config['auth_ad_domain'] = "domain";
- $config['auth_ad_base_dn'] = "distinguishedname";
- $config['auth_ad_check_certificates'] = 0; // require a valid ssl certificate
- $config['auth_ad_debug'] = 1; // enable for verbose debug messages
- $config['active_directory']['users_purge'] = 30; // purge users who haven't logged in for 30 days.
- $config['auth_ad_require_groupmembership'] = 1; // require users to be members of a group listed
- $config['auth_ad_groups']['netadmins']['level'] = 10; // set the "AD AdminGroup" group to admin level
- $config['auth_ad_groups']['RepairTechs']['level'] = 5; // set the "AD UserGroup" group to global read only level
- ### List of RFC1918 networks to allow scanning-based discovery
- #$config['nets'][] = "10.0.0.0/8";
- #$config['nets'][] = "172.16.0.0/12";
- #$config['nets'][] = "192.168.0.0/16";
- # Update configuration
- #$config['update_channel'] = 'release'; # uncomment to follow the monthly release channel
- #$config['update'] = 0; # uncomment to completely disable updates
- $config['oxidized']['maps']['group']['hostname'][] = array('regex' => '/^ipaddress/', 'group' => 'arubaos');
- $config['oxidized']['maps']['group']['os'][] = array('regex' => '/^procurve/', 'group' => 'procurve');
- $config['oxidized']['maps']['group']['os'][] = array('regex' => '/^comware/', 'group' => 'comware');
Add Comment
Please, Sign In to add comment