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