From c0ef7a62e6738cb1bbaf5d371fbfed6510aed17d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o=20-=20Le=20Filament?= <theo@le-filament.com>
Date: Thu, 27 Mar 2025 16:44:21 +0100
Subject: [PATCH] feat: PSI metrics

---
 templates/nrpe.cfg.j2 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/templates/nrpe.cfg.j2 b/templates/nrpe.cfg.j2
index c4ae4f8..7e99292 100644
--- a/templates/nrpe.cfg.j2
+++ b/templates/nrpe.cfg.j2
@@ -23,6 +23,9 @@ command[check_raid_{{ device }}]=/usr/lib/nagios/custom-plugins/check_mdstat.sh
 {% endif %}
 command[check_load]=/usr/lib/nagios/plugins/check_load -r -w .85,.80,.75 -c .99,.95,.90
 command[check_mem]=/usr/lib/nagios/custom-plugins/check_mem.pl -f -C -w 20 -c 5
+command[check_psi_cpu]=/usr/lib/nagios/custom-plugins/check_psi.py --ressource cpu --metric some --warning 'some:20,10,10,5' --critical 'some:40,30,20,10'
+command[check_psi_io]=/usr/lib/nagios/custom-plugins/check_psi.py --ressource io --metric some,full --warning 'some:25,20,15,10;full:20,15,10,5' --critical 'some:50,40,30,20;full:40,30,20,10'
+command[check_psi_memory]=/usr/lib/nagios/custom-plugins/check_psi.py --ressource memory --metric some,full --warning 'some:25,20,15,10;full:20,15,10,5' --critical 'some:50,40,30,20;full:40,30,20,10'
 {% if inventory_hostname in groups.docker | default([]) %}
 command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w {{ ((group_names | length - 6) * 20 + 370) | int | abs }} -c {{ ((group_names | length - 6) * 20 + 410) | int | abs }}
 {% else %}
-- 
GitLab