From 453435d15d8970207f2c34aca8ba9240ae64cbf6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 28 Apr 2021 21:46:35 +0100 Subject: Don't use xargs for checks, it breaks exit status --- nagios/nrpe.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nagios/nrpe.cfg b/nagios/nrpe.cfg index 964d7a1..38894f1 100644 --- a/nagios/nrpe.cfg +++ b/nagios/nrpe.cfg @@ -21,6 +21,6 @@ command[check_file_exists]=/usr/lib64/nagios/plugins/check_file_age -f $ARG1$ -w command[check_haproxy]=/usr/lib64/nagios/plugins/check_haproxy_stats -s /run/haproxy.stats command[check_time]=/usr/lib64/nagios/plugins/check_ntp_time -H uk.pool.ntp.org command[check_swap]=/usr/lib64/nagios/plugins/check_swap $ARG1$ -command[check_sensors]=xargs < /etc/nagios/nrpe.sensors /usr/lib64/nagios/plugins/check_lm_sensors --sanitize +command[check_sensors]=/usr/lib64/nagios/plugins/check_lm_sensors --sanitize $$(cat /etc/nagios/nrpe.sensors) command[check_crm]=/usr/lib64/nagios/plugins/check_crm -w -f1 command[check_service]=/usr/lib64/nagios/plugins/check_service -s $ARG1$ -- cgit v1.2.3