Files
gitea-pages/admin-guide/puppet/profiles/icinga/client.rst
2022-02-11 16:38:03 +01:00

57 lines
2.6 KiB
ReStructuredText

``profile::icinga::client``
===========================
This profile installs and configured the ``nrpe`` service:
* Installs ``mod_gearman-static``, ``nrpe-selinux``, ``nrpe``
* Instals Nagios plugins: ``nagios-plugins-disk``, ``nagios-plugins-load``
* Manages the NRPE service and ensures that is ``running`` and ``enabled``
* Allows to configure the ``nrpe.cfg`` file with the ``icinga::client::servers`` setting which defaults to ``[ 'emonma00.psi.ch','wmonag00.psi.ch','emonag00.psi.ch' ]`` (default value on fresh *nrpe* installations)
* SELinux policy setup to allow ``nagios_run_sudo``.
Is strictly important to set up ``aaa::allow_sudoers_d`` to ``true``::
``aaa::allow_sudoers_d: true``
By setting ``allow_sudoers_d`` to ``true``, we enable by default the
use of the directory ``/etc/sudoers.d/``. This will required for some Nagios
alarms.
Parameters
----------
================= ========== =========================================================
**Name** **Type** **Default**
----------------- ---------- ---------------------------------------------------------
servers Array hiera('icinga::client::servers')
blame Array hiera('icinga::client::dont_blame_nrpe', 0)
================= ========== =========================================================
``servers``
~~~~~~~~~~~
The local parameter for ``icinga::client::servers`` is ``servers``. Defaults to ``[ 'emonma00.psi.ch','wmonag00.psi.ch','emonag00.psi.ch' ]``
which is the default value in the ``nrpe.cfg`` file on fresh ``nrpe`` installations. Somebody can
overwrite this value with a new ``Array`` of Icinga servers. This ``Array`` will be converted to ``String``
afterwards::
...
Array $servers = hiera('icinga::client::servers'),
...
$icinga_servers = join($servers,",")
...
``blame``
~~~~~~~~~
With this option, the NRPE will allow clients to specify arguments in the commands. By default this is ``disabled``: arguments must be
specified in the NRPE daemon side and not from the client side. This option modifies the setting ``dont_blame_nrpe`` in the ``nrpe.cfg`` file.
Facts
-----
When some specific facts are detected, it will trigger some actions.
===================================== =============== ==============================================
**Fact** **Value(s)** **Action description**
------------------------------------- --------------- ----------------------------------------------
===================================== =============== ==============================================