From f46f5ccbde344a475550e74f2a97cbbc1f35bec9 Mon Sep 17 00:00:00 2001 From: Ludovic Poujol Date: Wed, 12 Dec 2018 14:58:12 +0100 Subject: [PATCH] nagios-nrpe: check_process now return the error code (making the check more usefull than /bin/true) --- CHANGELOG.md | 1 + nagios-nrpe/files/plugins/check_process | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6ef84cc..a133f47d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ The **patch** part changes incrementally at each release. ### Fixed * nginx: Munin url config is now a template to insert the server-status prefix * redis: In instance mode, ensure to replace the nrpe check_redis with the instance check script +* nagios-nrpe: check_process now return the error code (making the check more usefull than /bin/true) ### Security diff --git a/nagios-nrpe/files/plugins/check_process b/nagios-nrpe/files/plugins/check_process index 780ef233..46ef34dd 100755 --- a/nagios-nrpe/files/plugins/check_process +++ b/nagios-nrpe/files/plugins/check_process @@ -5,3 +5,5 @@ for proc in cron rsyslogd ntpd munin-node; do sudo /usr/lib/nagios//plugins/check_procs -C $proc -c 1: rc=$(($rc|$?)) done + +exit $rc