<?php

## Check http://www.observium.org/docs/config_options/ for documentation of possible settings

// Database config ---  This MUST be configured
$config['db_extension'] = 'mysqli';
$config['db_host']      = '192.168.114.100';
$config['db_user']      = 'observium';
$config['db_pass']      = 
$config['db_name']      = 'observium';

// Base directory
$config['install_dir'] = "/opt/observium";

// Default community list to use when adding/discovering
$config['snmp']['community'] = array("private");

// Authentication Model
// $config['auth_mechanism'] = "mysql";
// default, other options: ldap, http-auth, please see documentation for config help
$config['auth_mechanism'] = "ldap";

// Enable alerter (not available in CE)
// $config['poller-wrapper']['alerter'] = TRUE;

// Set up a default alerter (email to a single address)
//$config['email']['default']        = "bnp@multinet24.pl";
//$config['email']['from']           = "BNP bnp@multinet24.pl";
//$config['email']['default_only']   = TRUE;

$config['int_core'] = 1;

$config['geo_api']['google']['key']		= '';
$config['geo_api']['google']['enable']		= TRUE;
$config['geo_api']['google']['api']		= 'google';

$config['smokeping']['dir']     = "/var/lib/smokeping";

$config['snmp']['max-rep'] = TRUE;

// LDAP Authentication
$config['auth_ldap_version'] = 3;                     // LDAP client version (2 or 3)
$config['auth_ldap_referrals'] = 0;                   // Follow LDAP referrals
// $config['auth_ldap_server'] = "10.0.0.254";      // LDAP server name, or array of LDAP server names tried in order.
// $config['auth_ldap_server'] = [ "10.0.0.254", "10.0.0.9" ];
// $config['auth_ldap_server'] = [ "10.0.0.254" ];
$config['auth_ldap_server'] = [ "m24.local" ];
// $config['auth_ldap_server'] = [ "10.0.0.9" ];
$config['auth_ldap_ad_domain'] = "m24.local";      // AD domain name (fqdn form), used to determine DCs if server list is unset
$config['auth_ldap_port']   = 389;                    // LDAP server port
$config['auth_ldap_starttls'] = 'no';                 // Use STARTTLS ('no', 'optional' or 'require')
$config['auth_ldap_recursive'] = TRUE;                // Active Directory recursive lookup for nested groups
$config['auth_ldap_recursive_maxdepth'] = 3;          // Max depth for recursive lookup
$config['auth_ldap_prefix'] = "cn=";
$config['auth_ldap_suffix'] = ",ou=ou_users,dc=m24,dc=local";
$config['auth_ldap_group']  = array("cn=observium_rw,ou=ou_users,dc=m24,dc=local","cn=observium_ro,ou=ou_users,dc=m24,dc=local");
$config['auth_ldap_groupbase'] = "ou=ou_users,dc=m24,dc=local";
$config['auth_ldap_groupreverse'] = FALSE;            // Enable/disable resolving of group memberships using the 'memberOf' attribute on the user
$config['auth_ldap_binddn'] = "CN=Ldap search,OU=System,OU=OU_Users,DC=m24,DC=local"; // Initial LDAP bind dn and password, leave empty for anonymous bind
$config['auth_ldap_bindpw'] = "";
$config['auth_ldap_bindanonymous'] = FALSE;
$config['auth_ldap_attr']['uid'] = "sAMAccountName";             // LDAP attribute containing the user login name
$config['auth_ldap_attr']['uidNumber'] = "objectSid"; // LDAP attribute containing the numeric user ID
$config['auth_ldap_attr']['cn'] = "name";               // LDAP attribute containing the user's full name
$config['auth_ldap_attr']['dn'] = "dn";               // LDAP attribute containing the user's DN
$config['auth_ldap_attr']['memberOf'] = "memberOf";   // LDAP attribute containing the user's associated group DN's
$config['auth_ldap_attr']['group'] = "group";         // LDAP attribute containing the group name, can be 'group', 'groupOfNames', 'groupOfUniqueNames'
$config['auth_ldap_objectclass'] = "person";    // objectClass to filter out valid users, use * for all objects under ldap_suffix tree
$config['auth_ldap_groupmembertype'] = "fulldn";        // Available membertypes: 'nodn' (default, uses $username);
// 'fulldn' ($config['auth_ldap_prefix'] . $username . $config['auth_ldap_suffix'])
$config['auth_ldap_groupmemberattr'] = "member";   // Use your unique attribute for username, example "uniqueMember".

// Assign user levels to certain LDAP groups
$config['auth_ldap_groups']['observium_rw']['level']  = 10; // Full administrative access
$config['auth_ldap_groups']['observium_ro']['level']     = 7; // Global read access

// Housekeeping
// 1d = 86400
// 30d = 2592000
// 1y = 31536000
// 400d = 34560000
$config['housekeeping']['syslog']['age'] = 34560000;
$config['housekeeping']['eventlog']['age'] = 34560000;
$config['housekeeping']['alertlog']['age'] = 34560000;
$config['housekeeping']['inventory']['age'] = 34560000;
$config['housekeeping']['rrd']['age'] = 0;
$config['housekeeping']['deleted_ports']['age'] = 0;
$config['housekeeping']['rrd']['invalid'] = TRUE;
$config['housekeeping']['rrd']['deleted'] = TRUE;

$config['enable_billing']               = 1;

// Custom Interface Types
$config['int_groups'][] = 'IpTV';

$config['device_types'][] = [
    'text' => 'ONU',
    'type'  => 'onu',
    'icon'  => 'sprite-laser',
   'descr' => 'ONU devices'
];
// End config.php

