Puppet Function: icinga::prepare_web
- Defined in:
-
functions/prepare_web.pp
- Function type:
- Puppet Language
Summary
This funktion checks for web preparation and display a warning if fails
Overview
icinga::prepare_web(String $icingamod) ⇒ Any
7
8
9
10
11
12
13
14
|
# File 'functions/prepare_web.pp', line 7
function icinga::prepare_web(String $icingamod) {
# @param module
# The module that should be printed in the warning
#
if !defined('$icinga::prepare_web') or ! $icinga::prepare_web {
warning("To call plugin icingacli to monitor ${icingamod} set icinga::prepare_web to true!\nOr add the Icinga user to group icingaweb2 by hand and RESTART icinga2.")
}
}
|