Files
librenms-librenms/config.php.default
T

209 lines
8.8 KiB
Plaintext
Raw Normal View History

2007-04-03 14:10:23 +00:00
<?php
## Have a look in 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
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";
2008-03-22 13:59:25 +00:00
$config['db_name'] = "observer";
2007-11-30 14:48:14 +00:00
2009-10-28 13:56:42 +00:00
### Locations
2009-03-24 11:16:50 +00:00
$config['install_dir'] = "/opt/observer";
$config['html_dir'] = $config['install_dir'] . "/html";
2009-11-30 22:52:40 +00:00
$config['rrd_dir'] = "/opt/observer/rrd";
2009-10-28 13:56:42 +00:00
$config['temp_dir'] = "/tmp";
$config['observer_log'] = $config['install_dir'] . "/observer.log";
2008-03-12 09:22:11 +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
2009-10-28 13:56:42 +00:00
$config['community'] = "public";
2007-04-03 14:10:23 +00:00
2009-12-31 19:06:05 +00:00
### 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
# LDAP module configuration
$config['auth_ldap_server'] = "ldap.yourserver.com";
2010-01-16 22:57:10 +00:00
$config['auth_ldap_port'] = 389;
2009-12-31 19:06:05 +00:00
$config['auth_ldap_prefix'] = "uid=";
2010-01-16 22:57:10 +00:00
$config['auth_ldap_suffix'] = ",ou=People,dc=example,dc=com";
$config['auth_ldap_group'] = "cn=observer,ou=groups,dc=example,dc=com";
2009-12-31 19:06:05 +00:00
2007-04-03 14:10:23 +00:00
### Location of executables
2009-04-28 14:10:29 +00:00
$config['rrdtool'] = "/usr/bin/rrdtool";
2009-10-28 13:56:42 +00:00
$config['fping'] = "/usr/bin/fping";
2009-04-28 14:10:29 +00:00
$config['ipcalc'] = "/usr/bin/ipcalc";
2009-10-28 13:56:42 +00:00
$config['sipcalc'] = "/usr/bin/sipcalc";
2009-04-28 14:10:29 +00:00
$config['snmpwalk'] = "/usr/bin/snmpwalk";
$config['snmpget'] = "/usr/bin/snmpget";
$config['snmpbulkwalk'] = "/usr/bin/snmpbulkwalk";
$config['snmpset'] = "/usr/bin/snmpset";
### Application information. Multi-Tenant aware.
$config['branding'] = array(
# The default branding.
'default' => array(
'base_url' => "http://observer.example.com",
'mydomain' => "example.com",
'page_title' => "ObserverNMS",
'title_image' => "images/observer-logo.gif",
'stylesheet' => "css/styles.css",
'mono_font' => "DejaVuSansMono",
'header_color' => "#133A7B",
'favicon' => "images/observer-icon.png",
'page_gen' => 1,
'footer' => "",
),
# Example branding for a specifc URL.
'observer.branding.com' => array(
'base_url' => "http://observer.branding.com",
'mydomain' => "branding.com",
'page_title' => "ObserverNMS",
'title_image' => "images/observer-logo.gif",
'stylesheet' => "css/styles.css",
'mono_font' => "DejaVuSansMono",
'header_color' => "#133A7B",
'favicon' => "images/observer-icon.png",
'page_gen' => 0,
'footer' => "<a href='http://www.branding.com' target='_blank'>My Branding Company</a> - Slogan!",
),
);
### E-Mail information.
$config['email_default'] = "observer@example.com";
$config['email_from'] = "Observer <observer@example.com>";
$config['email_headers'] = "From: " . $config['email_from'] . "\r\n";
2009-10-28 13:56:42 +00:00
### List of networks to allow scanning-based discovery
$config['nets'] = array ("89.21.224.0/19", "212.9.12.0/24", "212.9.13.0/24");
2007-11-30 14:48:14 +00:00
2009-10-28 13:56:42 +00:00
$config['page_refresh'] = "0"; ## Refresh the page every xx seconds
2010-01-15 22:20:17 +00:00
$config['front_page'] = "pages/front/default.php";
2007-04-03 14:10:23 +00:00
2009-10-28 13:56:42 +00:00
$config['login_message'] = "Unauthorised access or use shall render the user liable to criminal and/or civil prosecution.";
2009-05-11 13:43:59 +00:00
2009-10-28 13:56:42 +00:00
### What should we warn about?
$config['warn']['ifdown'] = false;
2008-03-23 21:32:54 +00:00
2010-03-06 01:36:46 +00:00
## Should we autocreate hosts we see via discovery protocols?
2009-10-28 13:56:42 +00:00
$config['cdp_autocreate'] = false;
$config['snmp_autodiscovery'] = false;
2008-03-12 09:26:55 +00:00
2007-11-30 14:48:14 +00:00
### Which interface sections should we show?
2007-04-03 14:10:23 +00:00
2009-10-28 13:56:42 +00:00
$config['int_customers'] = 1; # Enable Customer Port Parsing
$config['int_transit'] = 1; # Enable Transit Types
$config['int_peering'] = 1; # Enable Peering Types
$config['int_core'] = 1; # Enable Core Port Types
$config['int_l2tp'] = 0; # Enable L2TP Port Types
$config['show_locations'] = 1; # Enable Locations on menu
$config['show_locations_dropdown'] = 0; # Enable Locations dropdown on menu
$config['show_services'] = 1; # Enable Services on menu
2008-03-22 13:59:25 +00:00
2009-10-28 13:56:42 +00:00
$config['ports_page_default'] = "details/";
# Default devices ports page display type. "details/", "graphs/bits/", etc
2008-03-22 13:59:25 +00:00
#$config['port_descr_parser'] = "includes/port-descr-parser.inc.php";
## Use parser to parse out ifAlias into type/descr/speed/circuit/notes
2008-03-22 13:59:25 +00:00
### Which additional features should we enable?
2010-06-03 09:12:07 +00:00
$config['enable_bgp'] = 1; # Enable BGP session collection and display
2009-03-17 20:26:29 +00:00
$config['enable_syslog'] = 0; # Enable Syslog
2009-10-28 13:56:42 +00:00
$config['enable_billing'] = 0; # Enable Billing
$config['enable_inventory'] = 1; # Enable Inventory
2009-11-21 15:07:09 +00:00
$config['enable_etherlike'] = 1; # Enable Etherlike
$config['enable_port_Xbcmc'] = 1; # Enable ifXEntry broadcast/multicast
2009-10-28 13:56:42 +00:00
$config['enable_pseudowires'] = 1; # Enable Pseudowires
2010-03-01 01:51:19 +00:00
$config['enable_ports_junoseatmvp'] = 0; # Enable JunOSe ATM VC Discovery/Poller
2009-12-29 01:01:30 +00:00
$config['enable_ports_etherlike'] = 0; # Enable Polling EtherLike-MIB (doubles interface processing time)
$config['enable_printers'] = 0; # Enable Printer support
2009-10-28 13:56:42 +00:00
#$config['rancid_configs'] = '/var/lib/rancid/network/configs/';
$config['rancid_ignorecomments'] = 0; # Ignore lines starting with #
2009-05-11 14:59:40 +00:00
#$config['collectd_dir'] = '/var/lib/collectd/rrd';
2008-03-23 15:40:58 +00:00
## If a syslog entry contails these strings it is deleted from the database
$config['syslog_filter'] = array("last message repeated", "Connection from UDP: [127.0.0.1]:");
2008-03-23 21:32:54 +00:00
$config['syslog_age'] = "1 month"; ## Time to keep syslog for in
## MySQL DATE_SUB format (eg '1 day', '1 month')
2008-03-16 15:17:40 +00:00
### Interface name strings to ignore
2008-03-22 13:59:25 +00:00
$config['bad_if'] = array("null", "virtual-", "unrouted", "eobc", "mpls", "sl0", "lp0", "faith0",
2009-10-28 13:56:42 +00:00
"-atm layer", "-atm subif", "-shdsl", "-adsl", "-aal5", "-atm", "container",
"async", "plip", "-physical", "-signalling", "control", "container", "unrouted",
"bri", "-bearer", "ng", "bluetooth", "isatap", "ras", "qos", "miniport", "sonet/sdh",
"span rp", "span sp", "sslvpn");
2007-04-03 14:10:23 +00:00
2009-05-11 13:45:56 +00:00
$config['bad_if_regexp'] = array("/serial[0-9]:/");
2009-10-28 13:56:42 +00:00
$config['allow_entity_sensor']['amperes'] = 1;
$config['allow_entity_sensor']['celsius'] = 1;
$config['allow_entity_sensor']['dBm'] = 1;
$config['allow_entity_sensor']['voltsDC'] = 1;
$config['allow_entity_sensor']['voltsAC'] = 1;
$config['allow_entity_sensor']['watts'] = 1;
$config['allow_entity_sensor']['truthvalue'] = 1;
$config['allow_entity_sensor']['specialEnum'] = 1;
2010-01-09 17:06:34 +00:00
### Hardcoded ASN descriptions
# $config['astext'][65333] = "Cymru Bogon Feed";
2010-01-25 17:27:29 +00:00
### Default warning settings
$config['defaults']['temp_limit'] = 60;
2007-04-03 14:10:23 +00:00
### Style Options
$list_colour_a = "#ffffff";
$list_colour_b = "#eeeeee";
2009-05-11 13:43:59 +00:00
$list_colour_a_a = "#f9f9f9";
$list_colour_a_b = "#f0f0f0";
2009-10-28 13:56:42 +00:00
$list_colour_b_a = "#f0f0f0";
$list_colour_b_b = "#e3e3e3";
2009-05-11 13:43:59 +00:00
2009-07-31 10:53:54 +00:00
$list_highlight = "#ffcccc";
2009-05-11 13:43:59 +00:00
2007-04-03 14:10:23 +00:00
$warn_colour_a = "#ffeeee";
$warn_colour_b = "#ffcccc";
2009-10-28 13:56:42 +00:00
/// Many colour schemes for graphs. Feel free to fiddle!
#$config['graph_colours'] = array("000066","330066","990066","990066","CC0033","FF0000"); ## Purple to Red
#$config['graph_colours'] = array("006600","336600","996600","996600","CC3300","FF0000"); ## Green to Red
#$config['graph_colours'] = array("002200","004400","006600","008800","00AA00","00CC00"); ## Green
#$config['graph_colours'] = array("220000","440000","660000","880000","AA0000","CC0000"); ## Red
#$config['graph_colours'] = array("001122","002244","003366","004488","0055AA","0066CC"); ## Blue
#$config['graph_colours'] = array("002233","004466","006699","0088CC","0099FF"); ## Sky-Blue
#$config['graph_colours'] = array("110022","330066","440088","6600AA","8800FF"); ## Purple
#$config['graph_colours'] = array("002200","004400","006600","008800","00AA00","00AA00","00CC00"); ## Forest Greens
#$config['graph_colours']['greens'] = array("112200","224400","336600","448800","66AA00","88FF00"); ## Grass Greens
#$config['graph_colours']['greens'] = array("95FFA7","4EFF97","33FF66","336600","224400","112200");
#$config['graph_colours']['greens'] = array("B7d6A9","8fcb73","50b91d","3ab419","0a8612","034f11");
#$config['graph_colours']['blues'] = array("b5d7ff","6eb7ff","0064ff","0082ff","0019d5","0016cb","00007d"); ## Cold Blues
$config['graph_colours']['mixed'] = array("CC0000", "008C00", "4096EE", "73880A", "D01F3C", "36393D", "FF0084");
$config['graph_colours']['greens'] = array('B6D14B','91B13C','6D912D','48721E','24520F','003300');
$config['graph_colours']['pinks'] = array('D0558F','B34773','943A57','792C38','5C1F1E','401F10');
$config['graph_colours']['blues'] = array('A0A0E5','8080BD','606096','40406F','202048','000033');
$config['graph_colours']['purples'] = array('CC7CCC','AF63AF','934A93','773177','5B185B','3F003F');
$config['graph_colours']['default'] = $config['graph_colours']['blues'];
2008-11-13 11:05:30 +00:00
include("includes/static-config.php");
2007-04-03 14:10:23 +00:00
?>