no Icinga1 any more

This commit is contained in:
buchel_k committed 2025-05-08 14:19:10 +02:00
1 parent 64f0c533d2
commit 5caf01fc3d
8 files changed
-362

No files matched your search

@@ -1,41 +0,0 @@
``profile::icinga::checks::gpfs``
=================================
This profile is called when ``gpfs`` is being configured.
Setup specific checks for GPFS:
* It will check that **GPFS** service is running correctly.
* Also checks node status with ``mmhealth``.
Parameters
----------
=================== ========== =============================================================
**Name** **Type** **Default**
------------------- ---------- -------------------------------------------------------------
check_unhealth_only Boolean ``icinga::checks::options::gpfs::ignoretips:`` **``true``**
check_ignore_tips Boolean ``icinga::checks::options::gpfs::unhealth:`` **``false``**
=================== ========== =============================================================
``check_unhealth_only``
~~~~~~~~~~~~~~~~~~~~~~~
By default ``mmhealth`` is called with the option ``--unhealth``. This shows only **unhealthy** problems. This can be disabled
by setting ``icinga::checks::options::gpfs::unhealth: false``, in this case ``mmhealth`` will also report about **healthy** checks.
``check_ignore_tips``
~~~~~~~~~~~~~~~~~~~~~
**TIPS** errors are considered ``[WARNING]`` by default. As these are configuration tips, some admins can consider that tips are ``[OK]``
in their clusters. This behaviour can be changed by setting ``icinga::checks::options::gpfs::ignoretips: true``, which will consider **TIPS** as ``[OK]``.
Facts
-----
When some specific facts are detected, it will trigger some actions.
===================================== =============== ==============================================
**Fact** **Value(s)** **Action description**
------------------------------------- --------------- ----------------------------------------------
===================================== =============== ==============================================
@@ -1,29 +0,0 @@
``profile::icinga::checks::hp::smart_array``
============================================
This profile is automatically called when a HP Smart Array is detected through facter from the
``profile::platform::hewlett_packard`` class.
Setup checks for HP Smart Arrray.
* Will setup a check executing ``ssacli`` in order to check the following components:
* **Controller(s)** status, **Cache** status (when configured) & **Battery** status (when present)
* **Logical Drive(s)** status
* **Physical Drive(s)** status
Parameters
----------
================= ========== =========================================================
**Name** **Type** **Default**
----------------- ---------- ---------------------------------------------------------
================= ========== =========================================================
Facts
-----
When some specific facts are detected, it will trigger some actions.
===================================== =============== ==============================================
**Fact** **Value(s)** **Action description**
------------------------------------- --------------- ----------------------------------------------
===================================== =============== ==============================================
@@ -1,31 +0,0 @@
``profile::icinga::checks::nvidia``
========================================
This profile is called when ``nvidia`` is being configured through ``cuda``
Setup specific checks for the Puppet Client:
* It will check that ``nvidia-smi`` correctly responds with the NVIDIA GPU cards.
When kernel is updated, it may cause to boot up with the NVIDIA drivers.
It will return OK and the list of GPUS when ``nvidia-smi`` correctly answers.
It will return CRITICAL and the error message when ``nvidia-smi`` is unable to detect GPU cards.
Most probably in the future drivers will be directly checked.
Parameters
----------
================== ========== =============================================================
**Name** **Type** **Default**
------------------ ---------- -------------------------------------------------------------
================== ========== =============================================================
Facts
-----
When some specific facts are detected, it will trigger some actions.
===================================== =============== ==============================================
**Fact** **Value(s)** **Action description**
------------------------------------- --------------- ----------------------------------------------
===================================== =============== ==============================================
@@ -1,33 +0,0 @@
``profile::icinga::checks::puppet_client``
==========================================
This profile is called when ``puppet`` client is being configured.
Setup specific checks for the Puppet Client:
* It will check that the current running environment is ``puppet_environment``.
Otherwise it will return a **nagios** ``WARNING`` message and error.
Parameters
----------
================== ========== =============================================================
**Name** **Type** **Default**
------------------ ---------- -------------------------------------------------------------
puppet_environment String hiera('icinga::checks::options::puppet_environment',**prod**)
================== ========== =============================================================
``puppet_environment``
~~~~~~~~~~~~~~~~~~~~~~
This setting defaults to the puppet environment ``prod``. Can be changed from YAML by setting
``icinga::checks::options::puppet_environment`` to a different value.
Facts
-----
When some specific facts are detected, it will trigger some actions.
===================================== =============== ==============================================
**Fact** **Value(s)** **Action description**
------------------------------------- --------------- ----------------------------------------------
===================================== =============== ==============================================
@@ -1,36 +0,0 @@
``profile::icinga::checks::service``
====================================
This class will configure Nagios checks for one or more ``systemctl`` services. This can be done by setting
a list of services with the ``icinga::checks::service::list`` *hiera* setting. ``check_service`` is the
script that will be in charge for that, which is also used by other Nagios scripts (i.e. ``check_slurm`` &
``check_gpfs``) to check specific services for these alarms.
Parameters
----------
===================== ========== =========================================================================
**Name** **Type** **Default**
--------------------- ---------- -------------------------------------------------------------------------
service_list Array ``'icinga::checks::service::list'``, defaults to ``'[]'``
===================== ========== =========================================================================
``service_list``
~~~~~~~~~~~~~~~~
The default value is an empty ``Array`` (``'[]'``). Hence, no ``systemctl`` services are checked.
This value can be overwritten with a list of services. In example::
icinga::checks::service::list:
- ntpd
- postfix
Facts
-----
When some specific facts are detected, it will trigger some actions.
===================================== =============== ==============================================
**Fact** **Value(s)** **Action description**
------------------------------------- --------------- ----------------------------------------------
===================================== =============== ==============================================
@@ -1,87 +0,0 @@
``profile::icinga::checks::slurm``
==========================================
This profile should be called when **Slurm** (server, cn, ui) is being configured.
Setup specific checks for Slurm nodes:
* It can check ``slurmd`` service. This check makes sense on computing nodes running ``slurmd``.
* It can check ``munge`` service. This check makes sense on any node with a configured **Slurm** client/server.
* It can check ``slurmctld`` service. This check makes sense on server nodes, will disable ``slurmd`` check.
* It can check ``slurmdbd`` service. This check makes sense on server nodes.
* It can check ``sinfo`` status, detecting miss-behaving nodes.
By default, since the most common node in a **Slurm** cluster is a computing node, this check will report about
``slurmd`` and ``munge`` status.
Parameters
----------
===================== ========== =========================================================================
**Name** **Type** **Default**
--------------------- ---------- -------------------------------------------------------------------------
skip_munge Boolean ``icinga::checks::options::slurm::skip_munge`` **``false``**
skip_slurmd Boolean ``icinga::checks::options::slurm::skip_slurmd``: **``false``**
check_slurmdbd Boolean ``icinga::checks::options::slurm::check_slurmdbd`` **``false``**
check_slurmctld Boolean ``icinga::checks::options::slurm::check_slurmctld`` **``false``**
ignore_draining Boolean ``icinga::checks::options::slurm::ignore_draining`` **``false``**
ignore_drained Boolean ``icinga::checks::options::slurm::ignore_drained`` **``false``**
check_nodes Boolean ``icinga::checks::options::slurm::check_nodes`` **``false``**
no_reason Boolean ``icinga::checks::options::slurm::no_reason`` **``true``**
no_timestamp Boolean ``icinga::checks::options::slurm::no_timestamp`` **``false``**
===================== ========== =========================================================================
``skip_munge``
~~~~~~~~~~~~~~~~~~~~~~
By default ``munge`` service is checked. Can be disabled by setting ``icinga::checks::options::slurm::skip_munge: false``.
``skip_slurmd``
~~~~~~~~~~~~~~~~~~~~~
By default ``slurmd`` service is checked. Can be disabled by setting ``icinga::checks::options::slurm::skip_slurmd: false``.
``check_slurmdbd``
~~~~~~~~~~~~~~~~~~~~~~~
By default ``slurmdbd`` service is disabled. Can be enabled by setting ``icinga::checks::options::slurm::check_slurmdbd: true``.
``check_slurmctld``
~~~~~~~~~~~~~~~~~~~~~~~~
By default ``slurmctld`` service is disabled. Can be enabled by setting ``icinga::checks::options::slurm::check_slurmctld: true``, in this case ``icinga::checks::options::slurm::skip_slurmd``
should be also set to ``true``.
`ignore_draining``
~~~~~~~~~~~~~~~~~~~~~~~~~
By default nodes in ``draining`` state are checked and will be reported as ``[WARNING]``. This can be disabled by setting ``icinga::checks::options::slurm::ignore_draining: true``.
When set to ``true``, ``draining`` nodes will be reported anyway but will be considered as ``[OK]``
``ignore_drained``
~~~~~~~~~~~~~~~~~~~~~~~~
By default nodes in ``drained`` state are checked and will be reported as ``[WARNING]``. This can be disabled by setting ``icinga::checks::options::slurm::ignore_drained: true``.
When set to ``true``, ``drained`` nodes will be reported anyway but will be considered as ``[OK]``
``no_reason``
~~~~~~~~~~~~~~~~~~~~~
By default **no** ``Reason`` is reported. This is because it will add extra text to the alarm output when nodes are ``drained``/``draining``/``down``/``failed``.
Printing ``Reason`` can be turned on by setting ``icinga::checks::options::slurm::no_reason: false``.
``no_timestamp``
~~~~~~~~~~~~~~~~~~~~~
By default ``Timestamp`` is being reported. Timestamp shows the date and time when a node was set ``drained``/``draining``/``down``/``failed``.
As this setting adds extra text in the alarm, it can be disabled by setting ``icinga::checks::options::slurm::no_reason: true``.
Facts
-----
When some specific facts are detected, it will trigger some actions.
===================================== =============== ==============================================
**Fact** **Value(s)** **Action description**
------------------------------------- --------------- ----------------------------------------------
===================================== =============== ==============================================
@@ -1,50 +0,0 @@
``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``.
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**
------------------------------------- --------------- ----------------------------------------------
===================================== =============== ==============================================
@@ -1,55 +0,0 @@
``profile::icinga::nrpe``
=========================
This profile is a function that configures ``nrpe`` and ``sudoers`` (whenever needed) for a specific command:
* Will create a ``/etc/nrpe.d/<filename>.cfg`` file for ``nrpe``
* Will create a ``/etc/sudoers.d/<filename>`` file for ``sudoers`` (if ``sudo`` is required)
Parameters
----------
====================== ========== =========================================================
**Name** **Type** **Default**
---------------------- ---------- ---------------------------------------------------------
command String
sudo Boolean ``false``
notifications_enabled Boolean ``true``
====================== ========== =========================================================
``command``
~~~~~~~~~~~
Full path for the command to be configured in the ``nrpe.d`` file. This will be translated
in the ``nrpe.d`` as::
# sudo = true
command[${title}]=/usr/bin/sudo ${command}
# sudo = false
command[${title}]=${command}
``sudo``
~~~~~~~~
Whether ``sudo`` is required or not for that command. By default is ``false``.
When set to ``true``, ``/usr/bin/sudo`` will be added to the ``nrpe`` command, and proper
``sudoers`` file will be configured. Example::
Defaults:nrpe !requiretty
nrpe ALL=(root) NOPASSWD: ${command}
``notifications_enables``
~~~~~~~~~~~~~~~~~~~~~~~~~
Currently this settings has no effect. Will be used when exporting Nagios resources to the PuppetDB.
Please ignore it in the meantime.
Facts
-----
When some specific facts are detected, it will trigger some actions.
===================================== =============== ==============================================
**Fact** **Value(s)** **Action description**
------------------------------------- --------------- ----------------------------------------------
===================================== =============== ==============================================