Files
librenms-librenms/config.php.default
T

48 lines
1.8 KiB
Plaintext
Raw Normal View History

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!
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';
$config['db_pass'] = 'PASSWORD';
$config['db_name'] = 'librenms';
$config['db']['extension'] = 'mysqli';// mysql or mysqli
2007-11-30 14:48:14 +00:00
### Memcached config - We use this to store realtime usage
$config['memcached']['enable'] = FALSE;
$config['memcached']['host'] = 'localhost';
$config['memcached']['port'] = 11211;
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";
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");
### Authentication Model
$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;
# 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";