From 1eb5a47c711de5347dc7d994b3c20138defc2ec6 Mon Sep 17 00:00:00 2001 From: Tom David--Broglio Date: Mon, 18 Dec 2023 19:15:05 +0100 Subject: [PATCH] nagios: add dockerd check in nrpe check template --- CHANGELOG.md | 1 + nagios-nrpe/templates/evolix.cfg.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2941791..12a49ee4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ The **patch** part changes is incremented if multiple releases happen the same m * mysql: disable performance schema for Debian 8 * nagios: rename var `nagios_nrpe_process_processes` into `nagios_nrpe_processes` and check systemd-timesyncd instead of ntpd in Debian 12 * nagios: cleaning nrpe check template +* nagios: add dockerd check in nrpe check template * proftpd: in SFTP vhost, enable SSH keys login, enable ed25549 host key for Debian >= 11 * squid: config directory seems to have changed from /etc/squid3 to /etc/squid in Debian 8 * unbound: Add config file to allow configuration reload on Debian 11 and lower diff --git a/nagios-nrpe/templates/evolix.cfg.j2 b/nagios-nrpe/templates/evolix.cfg.j2 index 94e8a1de..66ecc51a 100644 --- a/nagios-nrpe/templates/evolix.cfg.j2 +++ b/nagios-nrpe/templates/evolix.cfg.j2 @@ -60,6 +60,7 @@ command[check_influxdb]=/usr/lib/nagios/plugins/check_http -I 127.0.0.1 -u /heal command[check_dhcpd]=/usr/lib/nagios/plugins/check_procs -c1:1 -C dhcpd -t 60 command[check_ipmi_sensors]=sudo /usr/lib/nagios/plugins/check_ipmi_sensor command[check_raid_status]=/usr/lib/nagios/plugins/check_raid +command[check_dockerd]=/usr/lib/nagios/plugins/check_tcp -H /var/run/docker.sock --escape -s "GET /_ping HTTP/1.1\nHost: http\n\n" -e OK # Local checks (not packaged) command[check_mem]={{ nagios_plugins_directory }}/check_mem -f -C -w 20 -c 10