Projet

Général

Profil

Evolution #2509

[nagios-nrpe-server] Add an override for unit file

Ajouté par Benoît S. il y a 2 mois.

Statut:
Nouveau
Priorité:
Haut
Assigné à:
-
Catégorie:
nagios-nrpe
Début:
12/01/2019
Echéance:
% réalisé:

0%


Description

I propose to add Restart=always because nagios-nrpe-server need to be always running.
The unit file uses OOMScoreAdjust=-500 to not to kill the service by OOMkill but it is sometimes useless as NRPE cannot fork:

Failed at step EXEC spawning /bin/rm: Cannot allocate memory

Adding Restart=always will keep relaunching the process if it fails due to memory allocation. By the time OOMkiller kills another process to free the RAM.

/etc/systemd/system/nagios-nrpe-server.service.d/override.conf:

[Service]
Restart=always

Formats disponibles : Atom PDF