2007-04-03 14:10:23 +00:00
|
|
|
<?php
|
|
|
|
|
2010-06-25 17:30:18 +00:00
|
|
|
## Have a look in 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
|
2007-11-30 14:48:14 +00:00
|
|
|
$config['db_host'] = "localhost";
|
2009-10-28 13:56:42 +00:00
|
|
|
$config['db_user'] = "USERNAME";
|
|
|
|
$config['db_pass'] = "PASSWORD";
|
2013-10-28 01:05:42 -07:00
|
|
|
$config['db_name'] = "librenms";
|
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;
|
|
|
|
$config['memcached']['host'] = "localhost";
|
|
|
|
$config['memcached']['port'] = 11211;
|
|
|
|
|
2009-10-28 13:56:42 +00:00
|
|
|
### Locations
|
2013-10-28 01:05:42 -07:00
|
|
|
$config['install_dir'] = "/opt/librenms";
|
2011-09-20 15:59:51 +00:00
|
|
|
$config['html_dir'] = $config['install_dir'] . "/html";
|
|
|
|
$config['rrd_dir'] = $config['install_dir'] . "/rrd";
|
2013-10-28 01:05:42 -07:00
|
|
|
$config['log_file'] = $config['install_dir'] . "/librenms.log";
|
2008-03-12 09:22:11 +00:00
|
|
|
|
2010-09-20 23:47:27 +00:00
|
|
|
### Thie 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
|
2013-10-28 01:05:42 -07:00
|
|
|
#$config['base_url'] = "http://librenms.company.com";
|
2010-07-19 18:21:48 +00:00
|
|
|
|
2010-07-04 21:09:22 +00:00
|
|
|
### Enable the below 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";
|
|
|
|
|
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
|
|
|
|
$config['nets'][] = "10.0.0.0/8";
|
|
|
|
$config['nets'][] = "172.16.0.0/12";
|
|
|
|
$config['nets'][] = "192.168.0.0/16";
|
|
|
|
|
2009-10-28 13:56:42 +00:00
|
|
|
|
2007-04-03 14:10:23 +00:00
|
|
|
?>
|