summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-04-28 21:46:35 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-04-28 21:46:35 +0100
commit453435d15d8970207f2c34aca8ba9240ae64cbf6 (patch)
treec21f6e696108847a2d8156589f7253ea05589b0e
parentRelax check_crm (diff)
downloadconfig-453435d15d8970207f2c34aca8ba9240ae64cbf6.tar.bz2
config-453435d15d8970207f2c34aca8ba9240ae64cbf6.tar.xz
config-453435d15d8970207f2c34aca8ba9240ae64cbf6.zip
Don't use xargs for checks, it breaks exit status
-rw-r--r--nagios/nrpe.cfg2
1 files changed, 1 insertions, 1 deletions
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$