mc_icinga_web2 / icinga_web2 functions

mc_states.modules.mc_icinga_web2.settings()

icinga_web2 settings

location
installation directory
package
list of packages to install icinga-web2
configuration_directory
directory where configuration files are located
has_pgsql
install and configure a postgresql service in order to store icinga-web2 data (no ido2db data)
modules
nagvis
enable
enable the nagvis module which add link to nagvis in icinga-web2
cronks_xml
dictionary to store the cronks. The content is added in cronks.xml. The structure is the same that ‘cronks_xml’ subdictionary.
pnp4nagios
enable
enable the pnp4nagios module which add links to graphs in icinga-web2
package
package to install for pnp4nagios integration
cronks_extensions-templates
dictionary in which, each key is the name of an extension template and the content of the dictionary contains the values to fill the template each ‘key’: “value” produce a “<parameter name={{key}}>{{value}}</parameter>”. The key “parameter” or “parameter_*” produce a “<parameter></parameter>” tag. Each subdictionary add sub parameters tags.
root_account

Dictionary to store root account information. It is the account created on first installation of icinga_web2

login
login for root login on web interface
password_hash
password for root login on web interface
salt
salt used to hash the password
nginx

dictionary to store values of nginx configuration

domain
name of virtualhost created to serve webpages
doc_root
root location of virtualhost
vh_content_source
template file for nginx content file
vh_top_source
template file for nginx top file
icinga_web2

dictionary to store values used in templates given in vh_content_source and vh_top_source

web_directory
location under which webpages of icinga-web2 will be available
images_dir
directory where images used by icinga-web2 are stored
styles_dir
directory where css used by icinga-web2 are stored
bpaddon_dir
directory where bpaddon scripts are located
ext3_dir
directory where ext3 scripts are located
fastcgi_pass
socket used to contact fastcgi server in order to interpret php files
phpfpm

dictionary to store values of phpfpm configuration

open_basedir
paths to add to open_basedir
extensions_package
additional packages to install (such as php5-pgsql or php5-mysql for php database connection)
doc_root
root location for php-fpm
session_auto_start
must be 0 to run icinga-web2
databases

dictionary to store databases connections parameters

ido2db

dictionary to store ido2db database connection parameters

type
type of sgbd used “pgsql” or “mysql”
host
host used for connection
port
port used for connection
user
user used for connection
password
password used for connection
name
database name
prefix
prefix used in table’s names
web

dictionary to store icinga-web2 database connection parameters

type
type of sgbd used “pgsql” or “mysql”
host
host used for connection
port
port used for connection
user
user used for connection
password
password used for connection
name
database name