mc_pnp4nagios / pnp4nagios functions

There are many way to configure pnp4nagios. I have chosen to configure pnp4nagios “Bulk Mode with NPCD and npcdmod” (http://docs.pnp4nagios.org/pnp-0.6/config#bulk_mode_with_npcd_and_npcdmod) because of the lightness of the configuration

mc_states.modules.mc_pnp4nagios.settings()

pnp4nagios settings

location
installation directory
package
list of packages to install icinga-web
configuration_directory

directory where configuration files are located

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
pnp4nagios

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

web_directory
location under which webpages of pnp4nagios will be available
fastcgi_pass
socket used to contact fastcgi server in order to interpret php files
realm
message displayed for digest authentication
htpasswd_file
location of file storing users password or url for ldap authent
htdoc_dir
root location for web_directory
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-web
npcd_cfg
dictionary to store configuration of npcd.cfg file
config_php

dictionary to store configuration of config.php file

conf
subdictionary to store the values of the $conf[] php array variable
views

subdictionary to store the values of the $views[] php array variable

each subdictionary under views corresponds to a subarray. The key of subdictionaries are the values for “title” array key

rra_cfg

dictionary to store the configuration of rra.cfg file

RRA_STEP
value for RRA_STEP
steps
list of strings where each string is a line in rra.cfg file