| 
									
										
										
										
											2010-02-08 18:56:26 +00:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-04-19 15:36:46 +00:00
										 |  |  | /** | 
					
						
							|  |  |  |  * Observium Network Management and Monitoring System | 
					
						
							|  |  |  |  * Copyright (C) 2006-2011, Observium Developers - http://www.observium.org | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is free software: you can redistribute it and/or modify | 
					
						
							|  |  |  |  * it under the terms of the GNU General Public License as published by | 
					
						
							|  |  |  |  * the Free Software Foundation, either version 3 of the License, or | 
					
						
							|  |  |  |  * (at your option) any later version. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * See COPYING for more details. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * @package    observium | 
					
						
							|  |  |  |  * @subpackage config | 
					
						
							|  |  |  |  * @author     Adam Armstrong <adama@memetic.org> | 
					
						
							|  |  |  |  * @copyright  (C) 2006 - 2012 Adam Armstrong | 
					
						
							|  |  |  |  * @license    http://gnu.org/copyleft/gpl.html GNU GPL | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-11-05 09:33:32 +10:00
										 |  |  | //
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Please don't edit this file -- make changes to the configuration array in config.php
 | 
					
						
							| 
									
										
										
										
											2013-11-05 09:33:32 +10:00
										 |  |  | //
 | 
					
						
							| 
									
										
										
										
											2012-04-02 15:19:15 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-08 12:24:18 +00:00
										 |  |  | error_reporting(E_ERROR); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Default directories
 | 
					
						
							| 
									
										
										
										
											2010-02-16 00:38:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-11-05 09:33:32 +10:00
										 |  |  | $config['project_name']     = "LibreNMS"; | 
					
						
							|  |  |  | $config['project_id']     = strtolower($config['project_name']); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-07-17 20:30:05 +00:00
										 |  |  | $config['temp_dir']      = "/tmp"; | 
					
						
							| 
									
										
										
										
											2013-11-05 09:33:32 +10:00
										 |  |  | $config['install_dir']   = "/opt/" . $config['project_id']; | 
					
						
							| 
									
										
										
										
											2014-03-07 07:23:07 -08:00
										 |  |  | $config['log_dir']       = $config['install_dir'] . "/logs"; | 
					
						
							| 
									
										
										
										
											2010-02-11 01:37:25 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-11-05 09:33:32 +10:00
										 |  |  | // What is my own hostname (used to identify this host in its own database)
 | 
					
						
							| 
									
										
										
										
											2011-09-30 19:46:55 +00:00
										 |  |  | $config['own_hostname'] = "localhost"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Location of executables
 | 
					
						
							| 
									
										
										
										
											2010-02-11 01:37:25 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-16 21:52:35 +01:00
										 |  |  | $config['rrdtool']          = "/usr/bin/rrdtool"; | 
					
						
							|  |  |  | $config['fping']            = "/usr/bin/fping"; | 
					
						
							|  |  |  | $config['fping_options']['retries'] = 3; | 
					
						
							|  |  |  | $config['fping_options']['timeout'] = 500; | 
					
						
							|  |  |  | $config['fping6']           = "/usr/bin/fping6"; | 
					
						
							|  |  |  | $config['snmpwalk']         = "/usr/bin/snmpwalk"; | 
					
						
							|  |  |  | $config['snmpget']          = "/usr/bin/snmpget"; | 
					
						
							|  |  |  | $config['snmpbulkwalk']     = "/usr/bin/snmpbulkwalk"; | 
					
						
							|  |  |  | $config['whois']            = "/usr/bin/whois"; | 
					
						
							|  |  |  | $config['ping']             = "/bin/ping"; | 
					
						
							|  |  |  | $config['mtr']              = "/usr/bin/mtr"; | 
					
						
							|  |  |  | $config['nmap']             = "/usr/bin/nmap"; | 
					
						
							|  |  |  | $config['nagios_plugins']   = "/usr/lib/nagios/plugins"; | 
					
						
							|  |  |  | $config['ipmitool']         = "/usr/bin/ipmitool"; | 
					
						
							|  |  |  | $config['virsh']            = "/usr/bin/virsh"; | 
					
						
							|  |  |  | $config['dot']              = "/usr/bin/dot"; | 
					
						
							|  |  |  | $config['unflatten']        = "/usr/bin/unflatten"; | 
					
						
							|  |  |  | $config['neato']            = "/usr/bin/neato"; | 
					
						
							|  |  |  | $config['sfdp']             = "/usr/bin/sfdp"; | 
					
						
							|  |  |  | $config['svn']              = "/usr/bin/svn"; | 
					
						
							| 
									
										
										
										
											2010-02-11 04:35:16 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Memcached - Keep immediate statistics
 | 
					
						
							| 
									
										
										
										
											2012-04-04 18:10:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-04-05 16:44:58 +00:00
										 |  |  | $config['memcached']['enable']  = FALSE; | 
					
						
							| 
									
										
										
										
											2012-04-04 18:10:45 +00:00
										 |  |  | $config['memcached']['host']    = "localhost"; | 
					
						
							|  |  |  | $config['memcached']['port']    = 11211; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | $config['slow_statistics']      = TRUE; // THIS WILL CHANGE TO FALSE IN FUTURE
 | 
					
						
							| 
									
										
										
										
											2012-04-04 18:10:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-21 18:17:23 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // RRD Format Settings
 | 
					
						
							|  |  |  | // These should not normally be changed
 | 
					
						
							|  |  |  | // Though one could conceivably increase or decrease the size of each RRA if one had performance problems
 | 
					
						
							|  |  |  | // Or if one had a very fast I/O subsystem with no performance worries.
 | 
					
						
							| 
									
										
										
										
											2012-05-21 18:17:23 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | $config['rrd_rra']  = " RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:1440 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 "; | 
					
						
							| 
									
										
										
										
											2014-07-03 14:23:49 +01:00
										 |  |  | $config['rrd_rra'] .= " RRA:MIN:0.5:1:720 RRA:MIN:0.5:6:1440     RRA:MIN:0.5:24:775     RRA:MIN:0.5:288:797 "; | 
					
						
							| 
									
										
										
										
											2012-05-21 18:17:23 +00:00
										 |  |  | $config['rrd_rra'] .= " RRA:MAX:0.5:1:720 RRA:MAX:0.5:6:1440     RRA:MAX:0.5:24:775     RRA:MAX:0.5:288:797 "; | 
					
						
							|  |  |  | $config['rrd_rra'] .= " RRA:LAST:0.5:1:1440 "; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // RRDCacheD - Make sure it can write to your RRD dir!
 | 
					
						
							| 
									
										
										
										
											2010-07-17 20:30:05 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #$config['rrdcached']    = "unix:/var/run/rrdcached.sock";
 | 
					
						
							| 
									
										
										
										
											2010-02-11 01:37:25 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Web Interface Settings
 | 
					
						
							| 
									
										
										
										
											2010-07-17 20:30:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-03-15 15:27:25 +00:00
										 |  |  | if (isset($_SERVER["SERVER_NAME"]) && isset($_SERVER["SERVER_PORT"])) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2012-03-20 16:50:16 +00:00
										 |  |  |   if (strpos($_SERVER["SERVER_NAME"] , ":")) | 
					
						
							|  |  |  |   { | 
					
						
							| 
									
										
										
										
											2012-04-05 16:44:58 +00:00
										 |  |  |     # Literal IPv6
 | 
					
						
							| 
									
										
										
										
											2012-04-21 00:30:55 +00:00
										 |  |  |     $config['base_url']  = "http://[" . $_SERVER["SERVER_NAME"] ."]" . ($_SERVER["SERVER_PORT"] != 80 ? ":".$_SERVER["SERVER_PORT"] : '') ."/"; | 
					
						
							| 
									
										
										
										
											2012-03-20 16:50:16 +00:00
										 |  |  |   } | 
					
						
							|  |  |  |   else | 
					
						
							|  |  |  |   { | 
					
						
							| 
									
										
										
										
											2012-04-21 00:30:55 +00:00
										 |  |  |     $config['base_url']  = "http://" . $_SERVER["SERVER_NAME"] . ($_SERVER["SERVER_PORT"] != 80 ? ":".$_SERVER["SERVER_PORT"] : '') ."/"; | 
					
						
							| 
									
										
										
										
											2012-03-20 16:50:16 +00:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2010-08-21 14:02:24 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2011-09-14 17:26:59 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-10-29 21:06:32 +10:00
										 |  |  | $config['project_url']      = "https://github.com/librenms/"; | 
					
						
							| 
									
										
										
										
											2013-11-05 09:33:32 +10:00
										 |  |  | $config['project_issues']   = "https://github.com/librenms/librenms/issues"; | 
					
						
							| 
									
										
										
										
											2013-10-29 08:08:23 +10:00
										 |  |  | $config['title_image']      = ""; | 
					
						
							| 
									
										
										
										
											2010-02-25 20:40:35 +00:00
										 |  |  | $config['stylesheet']       = "css/styles.css"; | 
					
						
							|  |  |  | $config['mono_font']        = "DejaVuSansMono"; | 
					
						
							| 
									
										
										
										
											2013-10-29 08:08:23 +10:00
										 |  |  | $config['favicon']          = ""; | 
					
						
							| 
									
										
										
										
											2010-02-25 20:40:35 +00:00
										 |  |  | $config['header_color']     = "#1F334E"; | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | $config['page_refresh']     = "300";  // Refresh the page every xx seconds, 0 to disable
 | 
					
						
							| 
									
										
										
										
											2011-04-13 16:37:29 +00:00
										 |  |  | $config['front_page']       = "pages/front/default.php"; | 
					
						
							| 
									
										
										
										
											2013-11-19 08:57:43 +10:00
										 |  |  | $config['front_page_settings']['top']['ports'] = 10; | 
					
						
							| 
									
										
										
										
											2013-11-26 14:35:23 +10:00
										 |  |  | $config['front_page_settings']['top']['devices'] = 10; | 
					
						
							| 
									
										
										
										
											2014-10-07 19:37:52 +00:00
										 |  |  | $config['front_page_down_box_limit'] = 10; | 
					
						
							| 
									
										
										
										
											2014-06-14 09:31:22 +10:00
										 |  |  | $config['vertical_summary'] = 0; // Enable to use vertical summary on front page instead of horizontal
 | 
					
						
							| 
									
										
										
										
											2014-02-22 16:06:39 +00:00
										 |  |  | $config['top_ports']        = 1; // This enables the top X ports box
 | 
					
						
							|  |  |  | $config['top_devices']      = 1; // This enables the top X devices box
 | 
					
						
							| 
									
										
										
										
											2013-10-29 08:08:23 +10:00
										 |  |  | $config['page_title_prefix'] = ""; | 
					
						
							|  |  |  | $config['page_title_suffix'] = $config['project_name']; | 
					
						
							| 
									
										
										
										
											2010-02-25 20:40:35 +00:00
										 |  |  | $config['timestamp_format'] = 'd-m-Y H:i:s'; | 
					
						
							| 
									
										
										
										
											2013-11-05 10:23:15 +10:00
										 |  |  | $config['page_gen']         = 0;                 # display MySqL & PHP stats in footer?
 | 
					
						
							| 
									
										
										
										
											2010-07-17 20:30:05 +00:00
										 |  |  | $config['login_message']    = "Unauthorised access or use shall render the user liable to criminal and/or civil prosecution."; | 
					
						
							| 
									
										
										
										
											2014-06-21 09:50:24 -04:00
										 |  |  | $config['public_status']    = false; // Enable public accessable status page
 | 
					
						
							| 
									
										
										
										
											2010-07-17 20:30:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | $config['old_graphs']             = 1;   // RRDfiles from before the great rra reform. This is default for a while.
 | 
					
						
							| 
									
										
										
										
											2012-05-18 21:24:10 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-07-17 20:30:05 +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'] = 1;  # Enable Locations dropdown on menu
 | 
					
						
							| 
									
										
										
										
											2012-04-07 17:18:16 +00:00
										 |  |  | $config['show_services']           = 0;  # Enable Services on menu
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | $config['ports_page_default']      = "details"; // eg "details" or "basic"
 | 
					
						
							| 
									
										
										
										
											2010-07-17 20:30:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // SNMP Settings - Timeouts/Retries disabled as default
 | 
					
						
							| 
									
										
										
										
											2010-10-07 18:12:35 +00:00
										 |  |  | #$config['snmp']['timeout'] = 1;            # timeout in seconds
 | 
					
						
							|  |  |  | #$config['snmp']['retries'] = 5;            # how many times to retry the query
 | 
					
						
							| 
									
										
										
										
											2011-03-15 16:12:44 +00:00
										 |  |  | $config['snmp']['transports'] = array('udp', 'udp6', 'tcp', 'tcp6'); | 
					
						
							| 
									
										
										
										
											2010-07-17 20:30:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-09 16:18:23 +00:00
										 |  |  | $config['snmp']['version'] = "v2c";         # Default version to use
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # SNMPv1/2c default settings
 | 
					
						
							|  |  |  | $config['snmp']['community'][0] = "public"; # Communities to try during adding hosts and discovery
 | 
					
						
							| 
									
										
										
										
											2014-06-20 20:14:21 +10:00
										 |  |  | $config['snmp']['port'] = 161;              # Port Client SNMP is running on
 | 
					
						
							| 
									
										
										
										
											2012-05-09 16:18:23 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # SNMPv3 default settings
 | 
					
						
							|  |  |  | # The array can be expanded to give another set of parameters
 | 
					
						
							| 
									
										
										
										
											2013-11-05 09:33:32 +10:00
										 |  |  | # NOTE: If you change these, also change the equivalents in includes/defaults.inc.php - not sure why they are separate
 | 
					
						
							| 
									
										
										
										
											2012-05-09 16:18:23 +00:00
										 |  |  | $config['snmp']['v3'][0]['authlevel'] = "noAuthNoPriv";  # noAuthNoPriv | authNoPriv | authPriv
 | 
					
						
							| 
									
										
										
										
											2013-11-05 09:33:32 +10:00
										 |  |  | $config['snmp']['v3'][0]['authname'] = "root";           # User Name (required even for noAuthNoPriv)
 | 
					
						
							| 
									
										
										
										
											2012-05-09 16:18:23 +00:00
										 |  |  | $config['snmp']['v3'][0]['authpass'] = "";               # Auth Passphrase
 | 
					
						
							| 
									
										
										
										
											2012-05-15 17:03:35 +00:00
										 |  |  | $config['snmp']['v3'][0]['authalgo'] = "MD5";            # MD5 | SHA
 | 
					
						
							| 
									
										
										
										
											2012-05-09 16:18:23 +00:00
										 |  |  | $config['snmp']['v3'][0]['cryptopass'] = "";             # Privacy (Encryption) Passphrase
 | 
					
						
							|  |  |  | $config['snmp']['v3'][0]['cryptoalgo'] = "AES";          # AES | DES
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // RRD Format Settings
 | 
					
						
							|  |  |  | // These should not normally be changed
 | 
					
						
							|  |  |  | // Though one could conceivably increase or decrease the size of each RRA if one had performance problems
 | 
					
						
							|  |  |  | // Or if one had a very fast I/O subsystem with no performance worries.
 | 
					
						
							| 
									
										
										
										
											2012-04-20 17:37:58 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | $config['rrd_rra']  = " RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:1440 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 "; | 
					
						
							| 
									
										
										
										
											2012-05-02 15:04:31 +00:00
										 |  |  | $config['rrd_rra'] .= " RRA:MAX:0.5:1:720 RRA:MIN:0.5:6:1440     RRA:MIN:0.5:24:775     RRA:MIN:0.5:288:797 "; | 
					
						
							|  |  |  | $config['rrd_rra'] .= " RRA:MAX:0.5:1:720 RRA:MAX:0.5:6:1440     RRA:MAX:0.5:24:775     RRA:MAX:0.5:288:797 "; | 
					
						
							| 
									
										
										
										
											2012-04-20 17:37:58 +00:00
										 |  |  | $config['rrd_rra'] .= " RRA:LAST:0.5:1:1440 "; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Autodiscovery Settings
 | 
					
						
							| 
									
										
										
										
											2010-06-14 15:33:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | $config['autodiscovery']['xdp']            = TRUE; // Autodiscover hosts via discovery protocols
 | 
					
						
							|  |  |  | $config['autodiscovery']['ospf']           = TRUE; // Autodiscover hosts via OSPF
 | 
					
						
							|  |  |  | $config['autodiscovery']['bgp']            = TRUE; // Autodiscover hosts via BGP
 | 
					
						
							|  |  |  | $config['autodiscovery']['snmpscan']       = TRUE; // autodiscover hosts via SNMP scanning
 | 
					
						
							| 
									
										
										
										
											2011-09-15 15:01:21 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | $config['discover_services']               = FALSE; // Autodiscover services via SNMP on devices of type "server"
 | 
					
						
							| 
									
										
										
										
											2010-06-25 17:30:18 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-10-28 15:55:57 +10:00
										 |  |  | // Networks to exclude from autodiscovery
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $config['autodiscovery']['nets-exclude'][] = "0.0.0.0/8"; | 
					
						
							|  |  |  | $config['autodiscovery']['nets-exclude'][] = "127.0.0.0/8"; | 
					
						
							|  |  |  | $config['autodiscovery']['nets-exclude'][] = "169.254.0.0/16"; | 
					
						
							|  |  |  | $config['autodiscovery']['nets-exclude'][] = "224.0.0.0/4"; | 
					
						
							|  |  |  | $config['autodiscovery']['nets-exclude'][] = "240.0.0.0/4"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Mailer backend Settings
 | 
					
						
							| 
									
										
										
										
											2012-04-26 12:11:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | $config['email_backend']              = 'mail';               // Mail backend. Allowed: "mail" (PHP's built-in), "sendmail", "smtp".
 | 
					
						
							| 
									
										
										
										
											2013-11-05 09:33:32 +10:00
										 |  |  | $config['email_from']                 = NULL;                 // Mail from. Default: "ProjectName" <projectid@`hostname`>
 | 
					
						
							|  |  |  | $config['email_user']                 = $config['project_id']; | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | $config['email_sendmail_path']        = '/usr/sbin/sendmail'; // The location of the sendmail program.
 | 
					
						
							|  |  |  | $config['email_smtp_host']            = 'localhost';          // Outgoing SMTP server name.
 | 
					
						
							|  |  |  | $config['email_smtp_port']            = 25;                   // The port to connect.
 | 
					
						
							|  |  |  | $config['email_smtp_timeout']         = 10;                   // SMTP connection timeout in seconds.
 | 
					
						
							|  |  |  | $config['email_smtp_secure']          = NULL;                 // Enable encryption. Use 'tls' or 'ssl'
 | 
					
						
							|  |  |  | $config['email_smtp_auth']            = FALSE;                // Whether or not to use SMTP authentication.
 | 
					
						
							|  |  |  | $config['email_smtp_username']        = NULL;                 // SMTP username.
 | 
					
						
							|  |  |  | $config['email_smtp_password']        = NULL;                 // Password for SMTP authentication.
 | 
					
						
							| 
									
										
										
										
											2012-04-26 12:11:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Alerting Settings
 | 
					
						
							| 
									
										
										
										
											2010-06-13 18:27:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | $config['alerts']['email']['default']      = NULL;    // Default alert recipient
 | 
					
						
							|  |  |  | $config['alerts']['email']['default_only'] = FALSE;   // Only use default recipient
 | 
					
						
							|  |  |  | $config['alerts']['email']['enable']       = TRUE;    // Enable email alerts
 | 
					
						
							|  |  |  | $config['alerts']['bgp']['whitelist']      = NULL;    // Populate as an array() with ASNs to alert on.
 | 
					
						
							|  |  |  | $config['alerts']['port']['ifdown']        = FALSE;   // Generate alerts for ports that go down
 | 
					
						
							| 
									
										
										
										
											2011-09-23 10:33:58 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Port bandwidth threshold percentage %age utilisation above this will cause an alert
 | 
					
						
							| 
									
										
										
										
											2012-01-27 10:57:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | $config['alerts']['port_util_alert'] = FALSE;    // Disabled as default
 | 
					
						
							|  |  |  | $config['alerts']['port_util_perc']  = 85;       // %age above which to alert
 | 
					
						
							| 
									
										
										
										
											2012-01-27 10:57:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | $config['uptime_warning']                  = "84600"; // Time in seconds to display a "Device Rebooted" Alert. 0 to disable warnings.
 | 
					
						
							| 
									
										
										
										
											2010-06-13 18:27:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Cosmetics
 | 
					
						
							| 
									
										
										
										
											2010-02-11 01:37:25 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-18 15:52:40 +00:00
										 |  |  | $config['rrdgraph_def_text']  = "-c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#EEEEEE00 -c FONT#000000 -c CANVAS#FFFFFF00 -c GRID#a5a5a5"; | 
					
						
							| 
									
										
										
										
											2010-02-08 18:56:26 +00:00
										 |  |  | $config['rrdgraph_def_text'] .= " -c MGRID#FF9999 -c FRAME#5e5e5e -c ARROW#5e5e5e -R normal"; | 
					
						
							| 
									
										
										
										
											2011-07-19 19:16:23 +00:00
										 |  |  | $config['rrdgraph_real_95th'] = FALSE; # Set to TRUE if you want to display the 95% based on the highest value. (aka real 95%)
 | 
					
						
							| 
									
										
										
										
											2010-02-08 18:56:26 +00:00
										 |  |  | $config['overlib_defaults']   = ",FGCOLOR,'#ffffff', BGCOLOR, '#e5e5e5', BORDER, 5, CELLPAD, 4, CAPCOLOR, '#555555', TEXTCOLOR, '#3e3e3e'"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-11 01:37:25 +00:00
										 |  |  | $list_colour_a = "#ffffff"; | 
					
						
							|  |  |  | $list_colour_b = "#eeeeee"; | 
					
						
							|  |  |  | $list_colour_a_a = "#f9f9f9"; | 
					
						
							|  |  |  | $list_colour_a_b = "#f0f0f0"; | 
					
						
							|  |  |  | $list_colour_b_a = "#f0f0f0"; | 
					
						
							|  |  |  | $list_colour_b_b = "#e3e3e3"; | 
					
						
							|  |  |  | $list_highlight  = "#ffcccc"; | 
					
						
							|  |  |  | $warn_colour_a = "#ffeeee"; | 
					
						
							|  |  |  | $warn_colour_b = "#ffcccc"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | #$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
 | 
					
						
							| 
									
										
										
										
											2010-07-17 20:30:05 +00:00
										 |  |  | #$config['graph_colours']['greens']  = array("95FFA7","4EFF97","33FF66","336600","224400","112200");
 | 
					
						
							|  |  |  | #$config['graph_colours']['greens'] = array("B7d6A9","8fcb73","50b91d","3ab419","0a8612","034f11");
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | #$config['graph_colours']['blues']   = array("b5d7ff","6eb7ff","0064ff","0082ff","0019d5","0016cb","00007d"); // Cold Blues
 | 
					
						
							| 
									
										
										
										
											2010-07-17 20:30:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-07-11 19:11:46 +00:00
										 |  |  | $config['graph_colours']['mixed']   = array('CC0000','008C00','4096EE','73880A','D01F3C','36393D','FF0084'); | 
					
						
							| 
									
										
										
										
											2011-09-20 09:55:11 +00:00
										 |  |  | $config['graph_colours']['oranges'] = array('E43C00','E74B00','EB5B00','EF6A00','F37900','F78800','FB9700','FFA700'); | 
					
						
							| 
									
										
										
										
											2010-02-11 01:37:25 +00:00
										 |  |  | $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']; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Device page options
 | 
					
						
							| 
									
										
										
										
											2010-02-23 16:38:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-04-05 16:44:58 +00:00
										 |  |  | $config['show_overview_tab'] = TRUE; | 
					
						
							| 
									
										
										
										
											2010-02-23 16:38:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // The device overview page options
 | 
					
						
							| 
									
										
										
										
											2010-02-21 17:02:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-04-05 16:44:58 +00:00
										 |  |  | $config['overview_show_sysDescr'] = TRUE; | 
					
						
							| 
									
										
										
										
											2010-02-21 14:58:46 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Enable version checker & stats
 | 
					
						
							| 
									
										
										
										
											2013-11-05 09:33:32 +10:00
										 |  |  | $config['version_check']                = 0; # Enable checking of version in discovery
 | 
					
						
							| 
									
										
										
										
											2011-05-05 13:04:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Poller/Discovery Modules
 | 
					
						
							| 
									
										
										
										
											2010-07-17 20:30:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-20 14:22:34 +00:00
										 |  |  | $config['enable_bgp']                   = 1; # Enable BGP session collection and display
 | 
					
						
							| 
									
										
										
										
											2011-04-27 13:51:30 +00:00
										 |  |  | $config['enable_rip']                   = 1; # Enable RIP session collection and display
 | 
					
						
							|  |  |  | $config['enable_ospf']                  = 1; # Enable OSPF session collection and display
 | 
					
						
							|  |  |  | $config['enable_isis']                  = 1; # Enable ISIS session collection and display
 | 
					
						
							|  |  |  | $config['enable_eigrp']                 = 1; # Enable EIGRP session collection and display
 | 
					
						
							| 
									
										
										
										
											2011-09-20 14:22:34 +00:00
										 |  |  | $config['enable_syslog']                = 0; # Enable Syslog
 | 
					
						
							|  |  |  | $config['enable_inventory']             = 1; # Enable Inventory
 | 
					
						
							|  |  |  | $config['enable_pseudowires']           = 1; # Enable Pseudowires
 | 
					
						
							| 
									
										
										
										
											2011-09-26 16:06:18 +00:00
										 |  |  | $config['enable_vrfs']                  = 1; # Enable VRFs
 | 
					
						
							|  |  |  | $config['enable_printers']              = 0; # Enable Printer support
 | 
					
						
							| 
									
										
										
										
											2012-04-09 15:30:45 +00:00
										 |  |  | $config['enable_sla']                   = 0; # Enable Cisco SLA collection and display
 | 
					
						
							| 
									
										
										
										
											2010-07-21 15:14:02 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Ports extension modules
 | 
					
						
							| 
									
										
										
										
											2010-07-21 15:14:02 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | $config['port_descr_parser']            = "includes/port-descr-parser.inc.php"; # Parse port descriptions into fields
 | 
					
						
							|  |  |  | $config['enable_ports_Xbcmc']           = 1; # Enable ifXEntry broadcast/multicast
 | 
					
						
							|  |  |  | $config['enable_ports_etherlike']       = 0; # Enable Polling EtherLike-MIB (doubles interface processing time)
 | 
					
						
							|  |  |  | $config['enable_ports_junoseatmvp']     = 0; # Enable JunOSe ATM VC Discovery/Poller
 | 
					
						
							| 
									
										
										
										
											2010-07-18 08:20:30 +00:00
										 |  |  | $config['enable_ports_adsl']            = 1; # Enable ADSL-LINE-MIB
 | 
					
						
							| 
									
										
										
										
											2010-08-02 23:11:54 +00:00
										 |  |  | $config['enable_ports_poe']             = 0; # Enable PoE stats collection
 | 
					
						
							| 
									
										
										
										
											2010-07-17 20:30:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Billing System Configuration
 | 
					
						
							| 
									
										
										
										
											2010-07-25 18:05:16 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | $config['enable_billing']               = 0; # Enable Billing
 | 
					
						
							| 
									
										
										
										
											2011-09-26 16:06:18 +00:00
										 |  |  | $config['billing']['customer_autoadd']  = 0; # Enable Auto-add bill per customer
 | 
					
						
							|  |  |  | $config['billing']['circuit_autoadd']   = 0; # Enable Auto-add bill per circuit_id
 | 
					
						
							|  |  |  | $config['billing']['bill_autoadd']      = 0; # Enable Auto-add bill per bill_id
 | 
					
						
							| 
									
										
										
										
											2011-12-06 22:17:37 +00:00
										 |  |  | $config['billing']['base']              = 1000; # Set the base to divider bytes to kB, MB, GB ,... (1000|1024)
 | 
					
						
							| 
									
										
										
										
											2010-07-25 18:05:16 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // External Integration
 | 
					
						
							| 
									
										
										
										
											2010-07-04 18:23:25 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-26 16:06:18 +00:00
										 |  |  | #$config['rancid_configs'][]             = '/var/lib/rancid/network/configs/';
 | 
					
						
							|  |  |  | $config['rancid_ignorecomments']        = 0; # Ignore lines starting with #
 | 
					
						
							| 
									
										
										
										
											2011-09-20 14:22:34 +00:00
										 |  |  | #$config['collectd_dir']                 = '/var/lib/collectd/rrd';
 | 
					
						
							| 
									
										
										
										
											2011-12-06 22:17:37 +00:00
										 |  |  | #$config['smokeping']['dir']             = "/var/lib/smokeping/";
 | 
					
						
							| 
									
										
										
										
											2011-09-30 19:16:30 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-07 19:07:47 +00:00
										 |  |  | # NFSen RRD dir.
 | 
					
						
							|  |  |  | $config['nfsen_enable'] = 0; | 
					
						
							|  |  |  | #$config['nfsen_split_char']   = "_";
 | 
					
						
							|  |  |  | #$config['nfsen_rrds']   = "/var/nfsen/profiles-stat/live/";
 | 
					
						
							| 
									
										
										
										
											2011-04-11 14:37:05 +00:00
										 |  |  | #$config['nfsen_suffix']   = "_yourdomain_com";
 | 
					
						
							| 
									
										
										
										
											2010-07-04 18:23:25 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Location Mapping
 | 
					
						
							|  |  |  | // Use this feature to map ugly locations to pretty locations
 | 
					
						
							| 
									
										
										
										
											2012-05-14 12:55:19 +00:00
										 |  |  | #config['location_map']['Under the Sink'] = "Under The Sink, The Office, London, UK";
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Ignores & Allows
 | 
					
						
							| 
									
										
										
										
											2012-03-20 16:50:16 +00:00
										 |  |  | # Has to be lowercase
 | 
					
						
							| 
									
										
										
										
											2010-02-11 01:37:25 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-05 11:27:22 +00:00
										 |  |  | $config['bad_if'][] = "voip-null"; | 
					
						
							|  |  |  | $config['bad_if'][] = "virtual-"; | 
					
						
							|  |  |  | $config['bad_if'][] = "unrouted"; | 
					
						
							|  |  |  | $config['bad_if'][] = "eobc"; | 
					
						
							|  |  |  | $config['bad_if'][] = "lp0"; | 
					
						
							|  |  |  | $config['bad_if'][] = "-atm"; | 
					
						
							| 
									
										
										
										
											2012-03-29 14:57:36 +00:00
										 |  |  | $config['bad_if'][] = "faith0"; | 
					
						
							| 
									
										
										
										
											2011-05-05 11:27:22 +00:00
										 |  |  | $config['bad_if'][] = "container"; | 
					
						
							| 
									
										
										
										
											2011-09-20 09:55:11 +00:00
										 |  |  | $config['bad_if'][] = "async"; | 
					
						
							|  |  |  | $config['bad_if'][] = "plip"; | 
					
						
							|  |  |  | $config['bad_if'][] = "-physical"; | 
					
						
							|  |  |  | $config['bad_if'][] = "container"; | 
					
						
							|  |  |  | $config['bad_if'][] = "unrouted"; | 
					
						
							|  |  |  | $config['bad_if'][] = "bluetooth"; | 
					
						
							|  |  |  | $config['bad_if'][] = "isatap"; | 
					
						
							|  |  |  | $config['bad_if'][] = "ras"; | 
					
						
							|  |  |  | $config['bad_if'][] = "qos"; | 
					
						
							|  |  |  | $config['bad_if'][] = "span rp"; | 
					
						
							|  |  |  | $config['bad_if'][] = "span sp"; | 
					
						
							|  |  |  | $config['bad_if'][] = "sslvpn"; | 
					
						
							| 
									
										
										
										
											2011-05-05 11:27:22 +00:00
										 |  |  | $config['bad_if'][] = "pppoe-"; | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | #$config['bad_if'][] = "control plane";  // Example for cisco control plane
 | 
					
						
							| 
									
										
										
										
											2011-05-05 11:27:22 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Ignore ports based on ifType. Case-sensitive.
 | 
					
						
							| 
									
										
										
										
											2012-03-29 12:48:25 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | $config['bad_iftype'][] = "voiceEncap"; | 
					
						
							| 
									
										
										
										
											2012-03-29 12:54:51 +00:00
										 |  |  | $config['bad_iftype'][] = "voiceFXO"; | 
					
						
							| 
									
										
										
										
											2012-03-29 12:48:25 +00:00
										 |  |  | $config['bad_iftype'][] = "voiceFXS"; | 
					
						
							|  |  |  | $config['bad_iftype'][] = "voiceOverAtm"; | 
					
						
							|  |  |  | $config['bad_iftype'][] = "voiceOverFrameRelay"; | 
					
						
							| 
									
										
										
										
											2012-03-29 13:50:11 +00:00
										 |  |  | $config['bad_iftype'][] = "voiceOverIp"; | 
					
						
							|  |  |  | $config['bad_iftype'][] = "ds0"; | 
					
						
							|  |  |  | $config['bad_iftype'][] = "ds1"; | 
					
						
							|  |  |  | $config['bad_iftype'][] = "ds3"; | 
					
						
							|  |  |  | #$config['bad_iftype'][] = "isdn";     #show signaling traffic
 | 
					
						
							|  |  |  | #$config['bad_iftype'][] = "lapd";      #show signaling traffic
 | 
					
						
							| 
									
										
										
										
											2012-03-29 14:57:36 +00:00
										 |  |  | $config['bad_iftype'][] = "sonet"; | 
					
						
							|  |  |  | $config['bad_iftype'][] = "atmSubInterface"; | 
					
						
							|  |  |  | $config['bad_iftype'][] = "aal5"; | 
					
						
							|  |  |  | $config['bad_iftype'][] = "shdsl"; | 
					
						
							|  |  |  | $config['bad_iftype'][] = "mpls"; | 
					
						
							| 
									
										
										
										
											2012-03-30 10:25:13 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-05 11:27:22 +00:00
										 |  |  | $config['bad_if_regexp'][] = "/^ng[0-9]+$/"; | 
					
						
							|  |  |  | $config['bad_if_regexp'][] = "/^sl[0-9]/"; | 
					
						
							| 
									
										
										
										
											2010-02-11 01:37:25 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-21 05:08:58 +00:00
										 |  |  | $config['processor_filter'][] = "An electronic chip that makes the computer work."; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-05 11:27:22 +00:00
										 |  |  | $config['ignore_mount_removable']  = 1; # Ignore removable disk storage
 | 
					
						
							|  |  |  | $config['ignore_mount_network']    = 1; # Ignore network mounted storage
 | 
					
						
							|  |  |  | $config['ignore_mount_optical']    = 1; # Ignore mounted optical discs
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Per-device interface graph filters
 | 
					
						
							| 
									
										
										
										
											2011-09-18 15:38:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-05 11:27:22 +00:00
										 |  |  | $config['device_traffic_iftype'][] = '/loopback/'; | 
					
						
							|  |  |  | $config['device_traffic_iftype'][] = '/tunnel/'; | 
					
						
							|  |  |  | $config['device_traffic_iftype'][] = '/virtual/'; | 
					
						
							|  |  |  | $config['device_traffic_iftype'][] = '/mpls/'; | 
					
						
							|  |  |  | $config['device_traffic_iftype'][] = '/ieee8023adLag/'; | 
					
						
							| 
									
										
										
										
											2011-09-18 15:38:05 +00:00
										 |  |  | $config['device_traffic_iftype'][] = '/l2vlan/'; | 
					
						
							| 
									
										
										
										
											2011-11-23 15:34:23 +00:00
										 |  |  | $config['device_traffic_iftype'][] = '/ppp/'; | 
					
						
							| 
									
										
										
										
											2011-05-05 11:27:22 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | $config['device_traffic_descr'][]  = '/loopback/'; | 
					
						
							|  |  |  | $config['device_traffic_descr'][]  = '/vlan/'; | 
					
						
							|  |  |  | $config['device_traffic_descr'][]  = '/tunnel/'; | 
					
						
							|  |  |  | $config['device_traffic_descr'][]  = '/:\d+/'; | 
					
						
							|  |  |  | $config['device_traffic_descr'][]  = '/bond/'; | 
					
						
							| 
									
										
										
										
											2011-11-12 14:21:01 +00:00
										 |  |  | $config['device_traffic_descr'][]  = '/null/'; | 
					
						
							| 
									
										
										
										
											2012-03-21 10:52:26 +00:00
										 |  |  | $config['device_traffic_descr'][]  = '/dummy/'; | 
					
						
							| 
									
										
										
										
											2011-09-18 15:38:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // IRC Bot configuration
 | 
					
						
							| 
									
										
										
										
											2011-04-21 15:27:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-03-07 22:33:00 +01:00
										 |  |  | $config['irc_host']     = ""; | 
					
						
							|  |  |  | $config['irc_port']     = ""; | 
					
						
							|  |  |  | $config['irc_maxretry'] = 3; | 
					
						
							| 
									
										
										
										
											2014-03-14 09:13:11 +10:00
										 |  |  | $config['irc_nick']     = $config['project_name']; | 
					
						
							|  |  |  | $config['irc_chan'][]   = "##" . $config['project_id']; | 
					
						
							| 
									
										
										
										
											2014-03-07 22:33:00 +01:00
										 |  |  | $config['irc_pass']     = ""; | 
					
						
							|  |  |  | $config['irc_external'] = ""; | 
					
						
							|  |  |  | $config['irc_authtime'] = 3; | 
					
						
							|  |  |  | $config['irc_debug']    = false; | 
					
						
							|  |  |  | $config['irc_alert']    = false; | 
					
						
							| 
									
										
										
										
											2011-04-21 15:27:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Authentication
 | 
					
						
							| 
									
										
										
										
											2010-06-29 12:47:50 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-04-05 16:44:58 +00:00
										 |  |  | $config['allow_unauth_graphs']      = 0;       # Allow graphs to be viewed by anyone
 | 
					
						
							| 
									
										
										
										
											2010-12-02 17:41:12 +00:00
										 |  |  | $config['allow_unauth_graphs_cidr'] = array(); # Allow graphs to be viewed without authorisation from certain IP ranges
 | 
					
						
							| 
									
										
										
										
											2012-04-05 16:44:58 +00:00
										 |  |  | $config['auth_mechanism']           = "mysql"; # Available mechanisms: mysql (default), ldap, http-auth
 | 
					
						
							| 
									
										
										
										
											2014-02-03 22:32:45 +00:00
										 |  |  | $config['auth_remember']            = '30';    # This is how long in days to remember users who select remember me
 | 
					
						
							| 
									
										
										
										
											2010-05-28 15:21:27 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // LDAP Authentication
 | 
					
						
							| 
									
										
										
										
											2012-05-02 15:06:12 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | $config['auth_ldap_version'] = 3; # v2 or v3
 | 
					
						
							| 
									
										
										
										
											2013-11-05 09:33:32 +10:00
										 |  |  | $config['auth_ldap_server'] = "ldap.example.com"; | 
					
						
							| 
									
										
										
										
											2012-05-02 15:06:12 +00:00
										 |  |  | $config['auth_ldap_port']   = 389; | 
					
						
							|  |  |  | $config['auth_ldap_prefix'] = "uid="; | 
					
						
							|  |  |  | $config['auth_ldap_suffix'] = ",ou=People,dc=example,dc=com"; | 
					
						
							| 
									
										
										
										
											2013-11-05 09:33:32 +10:00
										 |  |  | $config['auth_ldap_group']  = "cn=groupname,ou=groups,dc=example,dc=com"; | 
					
						
							| 
									
										
										
										
											2012-05-02 15:06:12 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | $config['auth_ldap_groupbase'] = "ou=group,dc=example,dc=com"; | 
					
						
							|  |  |  | $config['auth_ldap_groups']['admin']['level'] = 10; | 
					
						
							|  |  |  | $config['auth_ldap_groups']['pfy']['level'] = 7; | 
					
						
							|  |  |  | $config['auth_ldap_groups']['support']['level'] = 1; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Sensors
 | 
					
						
							| 
									
										
										
										
											2010-02-11 01:37:25 +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; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Filesystems
 | 
					
						
							| 
									
										
										
										
											2010-02-11 01:37:25 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-05 11:27:22 +00:00
										 |  |  | $config['ignore_mount'][] = "/kern"; | 
					
						
							|  |  |  | $config['ignore_mount'][] = "/mnt/cdrom"; | 
					
						
							|  |  |  | $config['ignore_mount'][] = "/proc"; | 
					
						
							|  |  |  | $config['ignore_mount'][] = "/dev"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $config['ignore_mount_string'][] = "packages"; | 
					
						
							|  |  |  | $config['ignore_mount_string'][] = "devfs"; | 
					
						
							|  |  |  | $config['ignore_mount_string'][] = "procfs"; | 
					
						
							|  |  |  | $config['ignore_mount_string'][] = "UMA"; | 
					
						
							|  |  |  | $config['ignore_mount_string'][] = "MALLOC"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-06 17:43:15 +00:00
										 |  |  | $config['ignore_mount_regexp'][] = "/on: \/packages/"; | 
					
						
							|  |  |  | $config['ignore_mount_regexp'][] = "/on: \/dev/"; | 
					
						
							|  |  |  | $config['ignore_mount_regexp'][] = "/on: \/proc/"; | 
					
						
							|  |  |  | $config['ignore_mount_regexp'][] = "/on: \/junos^/"; | 
					
						
							|  |  |  | $config['ignore_mount_regexp'][] = "/on: \/junos\/dev/"; | 
					
						
							|  |  |  | $config['ignore_mount_regexp'][] = "/on: \/jail\/dev/"; | 
					
						
							|  |  |  | $config['ignore_mount_regexp'][] = "/^(dev|proc)fs/"; | 
					
						
							|  |  |  | $config['ignore_mount_regexp'][] = "/^\/dev\/md0/"; | 
					
						
							|  |  |  | $config['ignore_mount_regexp'][] = "/^\/var\/dhcpd\/dev,/"; | 
					
						
							|  |  |  | $config['ignore_mount_regexp'][] = "/UMA/"; | 
					
						
							| 
									
										
										
										
											2010-07-24 19:14:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-11 01:37:25 +00:00
										 |  |  | $config['ignore_mount_removable'] = 1; # Ignore removable disk storage
 | 
					
						
							|  |  |  | $config['ignore_mount_network']   = 1; # Ignore network mounted storage
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Syslog Settings
 | 
					
						
							| 
									
										
										
										
											2010-06-20 21:53:50 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | $config['syslog_age']       = "1 month";        // Entries older than this will be removed
 | 
					
						
							| 
									
										
										
										
											2011-09-02 09:01:32 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-05 11:27:22 +00:00
										 |  |  | $config['syslog_filter'][] = "last message repeated"; | 
					
						
							|  |  |  | $config['syslog_filter'][] = "Connection from UDP: ["; | 
					
						
							|  |  |  | $config['syslog_filter'][] = "ipSystemStatsTable node ipSystemStatsOutFragOKs not implemented"; | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | $config['syslog_filter'][] = "diskio.c";  // Ignore some crappy stuff from SNMP daemon
 | 
					
						
							| 
									
										
										
										
											2010-06-20 21:53:50 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Virtualization
 | 
					
						
							| 
									
										
										
										
											2011-04-20 16:48:33 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | $config['enable_libvirt'] = 0; # Enable Libvirt VM support
 | 
					
						
							|  |  |  | $config['libvirt_protocols']    = array("qemu+ssh","xen+ssh"); # Mechanisms used, add or remove if not using this on any of your machines.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Hardcoded ASN descriptions
 | 
					
						
							| 
									
										
										
										
											2012-04-06 17:41:51 +00:00
										 |  |  | $config['astext'][65332] = "Cymru FullBogon Feed"; | 
					
						
							| 
									
										
										
										
											2010-07-17 20:30:05 +00:00
										 |  |  | $config['astext'][65333] = "Cymru Bogon Feed"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Nicer labels for the SLA types
 | 
					
						
							| 
									
										
										
										
											2012-04-09 12:53:44 +00:00
										 |  |  | $config['sla_type_labels']['echo'] = 'ICMP ping'; | 
					
						
							|  |  |  | $config['sla_type_labels']['pathEcho'] = 'Path ICMP ping'; | 
					
						
							|  |  |  | $config['sla_type_labels']['fileIO'] = 'File I/O'; | 
					
						
							|  |  |  | $config['sla_type_labels']['script'] = 'Script'; | 
					
						
							|  |  |  | $config['sla_type_labels']['udpEcho'] = 'UDP ping'; | 
					
						
							|  |  |  | $config['sla_type_labels']['tcpConnect'] = 'TCP connect'; | 
					
						
							|  |  |  | $config['sla_type_labels']['http'] = 'HTTP'; | 
					
						
							|  |  |  | $config['sla_type_labels']['dns'] = 'DNS'; | 
					
						
							|  |  |  | $config['sla_type_labels']['jitter'] = 'Jitter'; | 
					
						
							|  |  |  | $config['sla_type_labels']['dlsw'] = 'DLSW'; | 
					
						
							|  |  |  | $config['sla_type_labels']['dhcp'] = 'DHCP'; | 
					
						
							|  |  |  | $config['sla_type_labels']['ftp'] = 'FTP'; | 
					
						
							|  |  |  | $config['sla_type_labels']['voip'] = 'VoIP'; | 
					
						
							|  |  |  | $config['sla_type_labels']['rtp'] = 'RTP'; | 
					
						
							|  |  |  | $config['sla_type_labels']['lspGroup'] = 'LSP group'; | 
					
						
							|  |  |  | $config['sla_type_labels']['icmpjitter'] = 'ICMP jitter'; | 
					
						
							|  |  |  | $config['sla_type_labels']['lspPing'] = 'LSP ping'; | 
					
						
							|  |  |  | $config['sla_type_labels']['lspTrace'] = 'LSP trace'; | 
					
						
							|  |  |  | $config['sla_type_labels']['ethernetPing'] = 'Ethernet ping'; | 
					
						
							|  |  |  | $config['sla_type_labels']['ethernetJitter'] = 'Ethernet jitter'; | 
					
						
							|  |  |  | $config['sla_type_labels']['lspPingPseudowire'] = 'LSP Pseudowire ping'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Warnings on front page
 | 
					
						
							|  |  |  | $config['warn']['ifdown'] = TRUE;    // Show down interfaces
 | 
					
						
							| 
									
										
										
										
											2012-03-22 09:45:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // List of poller modules. Need to be in the array to be
 | 
					
						
							|  |  |  | // considered for execution.
 | 
					
						
							| 
									
										
										
										
											2011-05-05 10:28:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-04-26 11:57:52 +00:00
										 |  |  | $config['poller_modules']['unix-agent']                   = 0; | 
					
						
							| 
									
										
										
										
											2011-05-05 10:28:36 +00:00
										 |  |  | $config['poller_modules']['system']                       = 1; | 
					
						
							|  |  |  | $config['poller_modules']['os']                           = 1; | 
					
						
							|  |  |  | $config['poller_modules']['ipmi']                         = 1; | 
					
						
							|  |  |  | $config['poller_modules']['sensors']                      = 1; | 
					
						
							|  |  |  | $config['poller_modules']['processors']                   = 1; | 
					
						
							|  |  |  | $config['poller_modules']['mempools']                     = 1; | 
					
						
							|  |  |  | $config['poller_modules']['storage']                      = 1; | 
					
						
							|  |  |  | $config['poller_modules']['netstats']                     = 1; | 
					
						
							|  |  |  | $config['poller_modules']['hr-mib']                       = 1; | 
					
						
							|  |  |  | $config['poller_modules']['ucd-mib']                      = 1; | 
					
						
							|  |  |  | $config['poller_modules']['ipSystemStats']                = 1; | 
					
						
							|  |  |  | $config['poller_modules']['ports']                        = 1; | 
					
						
							|  |  |  | $config['poller_modules']['bgp-peers']                    = 1; | 
					
						
							|  |  |  | $config['poller_modules']['junose-atm-vp']                = 1; | 
					
						
							|  |  |  | $config['poller_modules']['toner']                        = 1; | 
					
						
							|  |  |  | $config['poller_modules']['ucd-diskio']                   = 1; | 
					
						
							|  |  |  | $config['poller_modules']['wifi']                         = 1; | 
					
						
							|  |  |  | $config['poller_modules']['ospf']                         = 1; | 
					
						
							|  |  |  | $config['poller_modules']['cisco-ipsec-flow-monitor']     = 1; | 
					
						
							|  |  |  | $config['poller_modules']['cisco-remote-access-monitor']  = 1; | 
					
						
							|  |  |  | $config['poller_modules']['cisco-cef']                    = 1; | 
					
						
							| 
									
										
										
										
											2012-04-09 12:53:44 +00:00
										 |  |  | $config['poller_modules']['cisco-sla']                    = 1; | 
					
						
							| 
									
										
										
										
											2011-05-05 10:28:36 +00:00
										 |  |  | $config['poller_modules']['cisco-mac-accounting']         = 1; | 
					
						
							| 
									
										
										
										
											2011-11-14 18:28:00 +00:00
										 |  |  | $config['poller_modules']['cipsec-tunnels']               = 1; | 
					
						
							| 
									
										
										
										
											2012-01-12 11:09:45 +00:00
										 |  |  | $config['poller_modules']['cisco-ace-loadbalancer']       = 1; | 
					
						
							| 
									
										
										
										
											2012-04-05 16:44:58 +00:00
										 |  |  | $config['poller_modules']['cisco-ace-serverfarms']        = 1; | 
					
						
							| 
									
										
										
										
											2012-01-18 08:12:37 +00:00
										 |  |  | $config['poller_modules']['netscaler-vsvr']               = 1; | 
					
						
							| 
									
										
										
										
											2012-05-22 19:54:13 +00:00
										 |  |  | $config['poller_modules']['aruba-controller']             = 1; | 
					
						
							| 
									
										
										
										
											2012-02-03 18:37:00 +00:00
										 |  |  | $config['poller_modules']['entity-physical']              = 1; | 
					
						
							| 
									
										
										
										
											2012-04-19 15:36:46 +00:00
										 |  |  | $config['poller_modules']['applications']                 = 1; | 
					
						
							| 
									
										
										
										
											2014-07-03 15:27:52 +01:00
										 |  |  | $config['poller_modules']['cisco-asa-firewall']           = 1; | 
					
						
							| 
									
										
										
										
											2012-04-19 15:36:46 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // List of discovery modules. Need to be in this array to be
 | 
					
						
							|  |  |  | // considered for execution.
 | 
					
						
							| 
									
										
										
										
											2011-05-05 10:28:36 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | $config['discovery_modules']['ports']                     = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['ports-stack']               = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['entity-physical']           = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['processors']                = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['mempools']                  = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['ipv4-addresses']            = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['ipv6-addresses']            = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['sensors']                   = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['storage']                   = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['hr-device']                 = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['discovery-protocols']       = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['arp-table']                 = 1; | 
					
						
							| 
									
										
										
										
											2013-10-28 15:55:57 +10:00
										 |  |  | $config['discovery_modules']['discovery-arp']             = 0; | 
					
						
							| 
									
										
										
										
											2011-05-05 10:28:36 +00:00
										 |  |  | $config['discovery_modules']['junose-atm-vp']             = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['bgp-peers']                 = 1; | 
					
						
							| 
									
										
										
										
											2011-12-15 22:36:53 +00:00
										 |  |  | $config['discovery_modules']['vlans']                     = 1; | 
					
						
							| 
									
										
										
										
											2011-05-05 10:28:36 +00:00
										 |  |  | $config['discovery_modules']['cisco-mac-accounting']      = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['cisco-pw']                  = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['cisco-vrf']                 = 1; | 
					
						
							| 
									
										
										
										
											2011-11-28 11:24:32 +00:00
										 |  |  | #$config['discovery_modules']['cisco-cef']                 = 1;
 | 
					
						
							| 
									
										
										
										
											2012-04-09 12:53:44 +00:00
										 |  |  | $config['discovery_modules']['cisco-sla']                 = 1; | 
					
						
							| 
									
										
										
										
											2011-05-05 10:28:36 +00:00
										 |  |  | $config['discovery_modules']['vmware-vminfo']             = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['libvirt-vminfo']            = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['toner']                     = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['ucd-diskio']                = 1; | 
					
						
							|  |  |  | $config['discovery_modules']['services']                  = 1; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-24 17:59:18 +00:00
										 |  |  | $config['modules_compat']['rfc1628']['liebert']           = 1; | 
					
						
							|  |  |  | $config['modules_compat']['rfc1628']['netmanplus']        = 1; | 
					
						
							|  |  |  | $config['modules_compat']['rfc1628']['deltaups']          = 1; | 
					
						
							|  |  |  | $config['modules_compat']['rfc1628']['poweralert']        = 1; | 
					
						
							| 
									
										
										
										
											2011-05-05 10:28:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-11-03 22:16:01 -08:00
										 |  |  | # Enable daily updates
 | 
					
						
							|  |  |  | $config['update'] = 1; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-03-18 14:13:27 +00:00
										 |  |  | # Purge syslog and eventlog
 | 
					
						
							|  |  |  | $config['syslog_purge']                                   = 30; # Number in days of how long to keep syslog entries for.
 | 
					
						
							|  |  |  | $config['eventlog_purge']                                 = 30; # Number in days of how long to keep eventlog entries for.
 | 
					
						
							| 
									
										
										
										
											2014-10-02 01:37:43 +01:00
										 |  |  | $config['authlog_purge']                                  = 30; # Number in days of how long to keep authlog entries for.
 | 
					
						
							| 
									
										
										
										
											2014-11-03 18:25:45 +01:00
										 |  |  | $config['perf_times_purge']                               = 30; # Number in days of how long to keep performace pooling stats  entries for.
 | 
					
						
							| 
									
										
										
										
											2014-03-18 14:13:27 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-08-07 03:45:30 +10:00
										 |  |  | # Date format for PHP date()s
 | 
					
						
							|  |  |  | $config['dateformat']['long']                             = "r"; # RFC2822 style
 | 
					
						
							|  |  |  | $config['dateformat']['compact']                          = "Y-m-d H:i:s"; | 
					
						
							|  |  |  | $config['dateformat']['time']                             = "H:i:s"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-02 22:56:28 +01:00
										 |  |  | $config['enable_clear_discovery']                        = 1;// Set this to 0 if you want to disable the web option to rediscover devices
 | 
					
						
							| 
									
										
										
										
											2014-10-02 20:23:32 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-02 23:15:35 +00:00
										 |  |  | $config['enable_footer']                                 = 1;// Set this to 0 if you want to disable the footer copyright in the web interface
 | 
					
						
							| 
									
										
										
										
											2015-02-17 00:10:36 +00:00
										 |  |  | $config['api_demo']                                      = 0;// Set this to 1 if you want to disable some untrusting features for the API
 | 
					
						
							| 
									
										
										
										
											2015-01-02 23:15:35 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-07 19:07:47 +00:00
										 |  |  | ?>
 |