nrpe/files/nrpe/check_process
2024-12-16 19:24:54 +01:00

8 lines
148 B
Bash
Executable File

#!/bin/bash
rc=0
for proc in cron rsyslogd ntpd munin-node; do
sudo /usr/lib/nagios/plugins/check_procs -C $proc -c 1:
rc=$(($rc|$?))
done