2023-05-12 12:35:49 +02:00
|
|
|
#!/usr/bin/bash
|
|
|
|
|
|
|
|
if ! test -f /usr/lib/nagios/plugins/check_nrpe; then
|
|
|
|
echo '/usr/lib/nagios/plugins/check_nrpe is missing, please install nagios-nrpe-plugin package.'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-05-12 12:38:40 +02:00
|
|
|
/usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 -c "check_$1"
|
2023-05-12 12:35:49 +02:00
|
|
|
|
|
|
|
|