<?php

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

// Syslog
$config['syslog']['debug']      = FALSE;
$config['enable_syslog']        = 1;
$config['enable_inventory']     = 1;
// Database config ---  This MUST be configured
$config['db_extension'] = 'mysqli';
$config['db_host']      = 'localhost';
$config['db_user']      = '0bservium';
$config['db_pass']      = '*********';
$config['db_name']      = '*********';

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

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

// SNMP Maximum Repetitions
$config['snmp']['max-rep'] = TRUE;

// Authentication Model
#$config['auth_mechanism'] = "mysql";    // default, other options: ldap, http-auth, please see documentation for config help
$config['auth_mechanism'] = "oidc";
$config['auth']['remote_user'] = TRUE;                   // Trust Apache server to authenticate user, READ DOCUMENTATION FIRST!!
$config['auth_sso_header_prefix'] = 'OIDC_CLAIM';        // SSO header prefix
$config['auth_sso_roles_level']['observium-admin'] = 10; // Administrator rights
$config['auth_sso_roles_level']['observium-user'] = 5;   // Global read rights
$config['auth_sso_default_level'] = 1;                   // Other users will be created as Normal users

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

// Enable API facilitate access to data held in Observium's MySQL/Maria database
$config['api']['enable']                        = TRUE;

// Set up a default alerter (email to a single address)
#$config['email']['default']        = "*********";
$config['email']['from']           = "Observium <*********>";
$config['email']['default_only']   = FALSE;

//auto-discovering settings
#$config['mydomain'] = "*********";
$config['autodiscovery']['ip_nets']     = array("*********");
$config['autodiscovery']['xdp']         = TRUE; // Autodiscover hosts via discovery protocols (CDP,LLDP,FDP)
$config['autodiscovery']['libvirt']     = FALSE; // Autodiscover hosts found via libvirt
$config['autodiscovery']['snmpscan']    = FALSE; // autodiscover hosts via SNMP scanning
$config['discover_services'] = TRUE;      ## Autodiscover services via SNMP on devices of type "server"

// Frontpage Module Order Start
#$config['frontpage']['order']  = array('status_summary', 'map', 'device_status_boxes', 'device_status', 'eventlog');
#$config['frontpage']['order']  = array('status_summary', 'device_status', 'overall_traffic', 'eventlog', 'alert_table');
// Device Status
$config['frontpage']['device_status']['devices']   = true;         // Show the down devices
$config['frontpage']['device_status']['ports']     = false;        // Show the down ports
$config['frontpage']['device_status']['errors']    = false;        // Show the ports with interface errors
$config['frontpage']['device_status']['services']  = false;        // Show the down services
$config['frontpage']['device_status']['bgp']       = true;         // Show the bgp status
$config['frontpage']['device_status']['uptime']    = true;         // Show the uptime status

// Housekeeping  
$config['housekeeping']['deleted_ports']['age'] = 0;        //  0 disable
$config['housekeeping']['syslog']['age'] = 7776000;         //  90 Days
$config['housekeeping']['eventlog']['age'] = 7776000;       //  90 Days
$config['housekeeping']['rrd']['age'] = 15552000;           // 180 Days
$config['housekeeping']['rrd']['invalid'] = TRUE;
$config['housekeeping']['timing']['age'] = 604800;          //   7 Days

#rrdcached with Observium
/*
rrdcached is a daemon that receives updates to existing RRD files, accumulates them and, if enough have been received or a defined time has passed, writes the updates to the RRD file.
This can be very useful in a bigger Observium-instance as the number of polled interfaces grow and the number of RRD-files that will be updated each polling is increasing, soon each polling will be generating a lot of random writes to your storage.
rrdcached gives us the possibility to trade some of that IO for memory. This is can be very good deal for virtual machines or any server with a slower storage but a fair amount of memory.
*/
$config['rrdcached']    = "unix:/var/run/rrdcached.sock";
// End config.php
