2007-04-03 14:10:23 +00:00
|
|
|
<?php
|
|
|
|
|
2015-08-12 15:13:58 -04:00
|
|
|
## Have a look in includes/defaults.inc.php for examples of settings you can set here. DO NOT EDIT defaults.inc.php!
|
2010-02-08 18:56:26 +00:00
|
|
|
|
2007-04-03 14:10:23 +00:00
|
|
|
### Database config
|
2015-09-21 13:31:15 +00:00
|
|
|
$config['db_host'] = 'localhost';
|
|
|
|
$config['db_user'] = 'USERNAME';
|
2015-09-21 13:23:09 +00:00
|
|
|
$config['db_pass'] = 'PASSWORD';
|
|
|
|
$config['db_name'] = 'librenms';
|
2015-08-09 14:36:31 +00:00
|
|
|
$config['db']['extension'] = 'mysqli';// mysql or mysqli
|
2007-11-30 14:48:14 +00:00
|
|
|
|
2012-04-04 18:10:45 +00:00
|
|
|
### Memcached config - We use this to store realtime usage
|
|
|
|
$config['memcached']['enable'] = FALSE;
|
2015-09-21 13:23:09 +00:00
|
|
|
$config['memcached']['host'] = 'localhost';
|
2012-04-04 18:10:45 +00:00
|
|
|
$config['memcached']['port'] = 11211;
|
|
|
|
|
2015-09-21 21:06:57 +00:00
|
|
|
// 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';
|
|
|
|
|
2013-11-05 09:33:32 +10:00
|
|
|
### Locations - it is recommended to keep the default
|
|
|
|
#$config['install_dir'] = "/opt/librenms";
|
2008-03-12 09:22:11 +00:00
|
|
|
|
2013-11-05 09:33:32 +10:00
|
|
|
### This should *only* be set if you want to *force* a particular hostname/port
|
2010-09-20 23:47:27 +00:00
|
|
|
### It will prevent the web interface being usable form any other hostname
|
2013-10-28 01:05:42 -07:00
|
|
|
#$config['base_url'] = "http://librenms.company.com";
|
2010-07-19 18:21:48 +00:00
|
|
|
|
2013-11-05 09:33:32 +10:00
|
|
|
### Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir
|
2010-07-04 21:09:22 +00:00
|
|
|
### and that your web server has permission to talk to rrdcached.
|
|
|
|
#$config['rrdcached'] = "unix:/var/run/rrdcached.sock";
|
|
|
|
|
2007-04-03 14:10:23 +00:00
|
|
|
### Default community
|
2011-03-23 09:54:56 +00:00
|
|
|
$config['snmp']['community'] = array("public");
|
2010-09-26 22:10:04 +00:00
|
|
|
|
2010-07-17 20:30:05 +00:00
|
|
|
### Authentication Model
|
2010-02-28 02:20:05 +00:00
|
|
|
$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
|
2009-12-31 19:06:05 +00:00
|
|
|
|
2013-10-29 11:19:28 +11:00
|
|
|
### List of RFC1918 networks to allow scanning-based discovery
|
2013-10-29 23:25:42 +11:00
|
|
|
#$config['nets'][] = "10.0.0.0/8";
|
|
|
|
#$config['nets'][] = "172.16.0.0/12";
|
|
|
|
#$config['nets'][] = "192.168.0.0/16";
|
2013-10-29 11:19:28 +11:00
|
|
|
|
2013-11-03 15:03:57 -08:00
|
|
|
# following is necessary for poller-wrapper
|
|
|
|
# poller-wrapper is released public domain
|
2013-11-03 15:36:18 -08:00
|
|
|
$config['poller-wrapper']['alerter'] = FALSE;
|
2013-11-03 22:16:01 -08:00
|
|
|
# Uncomment the next line to disable daily updates
|
|
|
|
#$config['update'] = 0;
|
2015-04-13 19:37:12 +10:00
|
|
|
|
|
|
|
# Uncomment to submit callback stats via proxy
|
|
|
|
#$config['callback_proxy'] = "hostname:port";
|