Module Expr Str Import alias Import alias Import alias Import alias Import alias Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Str FunctionDef arguments args defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Call SubscriptLoad NameLoad Index Str Str keyword Str Assign NameStore Call SubscriptLoad NameLoad Index Str Str Dict Str Str Str Str Str Str Str ListLoad Str Str BinOpAdd SubscriptLoad NameLoad Index Str Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Dict Str Str Str Str Str Str Str Str Str Str Dict Str Str Str Str Str Str Num ListLoad Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Num Num Str Str Str Num Num Num Num Str Str Str Num Dict Str Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Num Str Num Num Num Num Num Num Num Str Num Num Num Str Str Str Str Num Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ListLoad Str Str Dict Str Str Str Str Str Dict Str Str Dict Str Str Dict Str Str Dict Str Str Dict Str Str Dict Str Str Num ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Call AttributeLoad Str attr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr Str Str Expr Call SubscriptLoad NameLoad Index Str Str NameLoad keyword Str Return NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call NameLoad decorator_list
N/A N/A 
.. _module_mc_pnp4nagios:

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


 N/A logging N/A copy N/A mc_states.api N/A hmac N/A hashlib N/A __name pnp4nagios N/A log N/A N/A logging getLogger __name__ settings N/A N/A N/A N/A N/A 
    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

     _settings N/A N/A N/A N/A N/A grains __grains__ N/A pillar __pillar__ N/A locs N/A N/A __salt__ N/A mc_locations.settings N/A pnp4nagios_reg N/A N/A __salt__ N/A mc_macros.get_local_registry pnp4nagios registry_format pack N/A data N/A N/A __salt__ N/A mc_utils.defaults makina-states.services.monitoring.pnp4nagios N/A package configuration_directory nginx phpfpm npcd_cfg config_php rra_cfg N/A pnp4nagios-bin pnp4nagios-web N/A N/A locs N/A conf_dir /pnp4nagios N/A ssl_cacert ssl_cert ssl_key domain doc_root vh_content_source vh_top_source pnp4nagios pnp4nagios.localhost /usr/share/pnp4nagios/html/ salt://makina-states/files/etc/nginx/sites-available/pnp4nagios.content.conf salt://makina-states/files/etc/nginx/sites-available/pnp4nagios.top.conf N/A web_directory fastcgi_pass realm htpasswd_file htdocs_dir /pnp4nagios unix:/var/spool/www/pnp4nagios_localhost.fpm.sock Authentication /etc/icinga2/htpasswd.users /usr/share/icinga/htdocs/ N/A open_basedir doc_root session_auto_start extensions_packages /usr/bin/rrdtool:/etc/pnp4nagios/:/usr/share/php/kohana2/system/:/usr/share/php/kohana2/system/config/:/var/lib/pnp4nagios/perfdata/ /usr/share/pnp4nagios/ 0 N/A php5-gd N/A user group log_type log_file max_logfile_size log_level perfdata_spool_dir perfdata_file_run_cmd perfdata_file_run_cmd_args identify_npcd npcd_max_threads sleep_time load_threshold pid_file perfdata_file perfdata_spool_filename perfdata_file_processing_interval nagios nagios syslog /var/log/pnp4nagios/npcd.log 10485760 0 /var/spool/icinga2/perfdata /usr/lib/pnp4nagios/libexec/process_perfdata.pl -b 1 5 15 0.0 /var/run/npcd.pid /var/spool/icinga2/perfdata.dump perfdata 15 N/A conf views N/A use_url_rewriting rrdtool graph_width graph_height zgraph_width zgraph_height right_zoom_offset pdf_width pdf_height pdf_page_size pdf_margin_top pdf_margin_left pdf_margin_right pdf_graph_opt graph_opt rrdbase page_dir refresh max_age temp nagios_base multisite_base_url multisite_site auth_enabled livestatus_socket allowed_for_all_services allowed_for_all_hosts allowed_for_service_links allowed_for_host_search allowed_for_host_overview allowed_for_pages popup_width ui_theme lang RRD_DAEMON_OPTS template_dirs 1 /usr/bin/rrdtool 500 100 500 100 30 675 100 A4 30 17.5 10 /var/lib/pnp4nagios/perfdata/ /etc/pnp4nagios/pages/ 90 60*60*6 /var/tmp /cgi-bin/icinga /check_mk FALSE unix:/var/run/icinga2/cmd/livestatus EVERYONE EVERYONE EVERYONE EVERYONE 300px smoothness en_US N/A /etc/pnp4nagios/templates /usr/share/pnp4nagios/html/templates.dist N/A 4 Hours 25 Hours One Week One Month One Year N/A start (60*60*4) N/A start (60*60*25) N/A start (60*60*25*7) N/A start (60*60*24*32) N/A start (60*60*24*380) N/A RRA_STEP steps 60 N/A RRA:AVERAGE:0.5:1:2880 RRA:AVERAGE:0.5:5:2880 RRA:AVERAGE:0.5:30:4320 RRA:AVERAGE:0.5:360:5840 RRA:MAX:0.5:1:2880 RRA:MAX:0.5:5:2880 RRA:MAX:0.5:30:4320 RRA:MAX:0.5:360:5840 RRA:MIN:0.5:1:2880 RRA:MIN:0.5:5:2880 RRA:MIN:0.5:30:4320 RRA:MIN:0.5:360:5840 N/A N/A N/A N/A data N/A nginx N/A pnp4nagios N/A fastcgi_pass N/A N/A unix:/var/spool/www/{0}.fpm.sock format N/A N/A N/A N/A data N/A nginx N/A domain replace . _ N/A N/A N/A __salt__ N/A mc_macros.update_local_registry pnp4nagios pnp4nagios_reg registry_format pack N/A data N/A N/A N/A N/A mc_states api lazy_subregistry_get __salt__ __name N/A N/A _settings N/A