Code: Select all
define service {
check_command check_londiste
host_name host01,host02
service_description londiste
use generic-service
}
Code: Select all
define command {
command_name check_londiste
command_line $USER1$/check_nrpe -u -H $HOSTADDRESS$ -c check_londiste
}
I have this nrpe check on client side, that is in /etc/nagios/nrpe.d/check_londiste.cfg,
Code: Select all
command[check_londiste]=/usr/bin/sudo /usr/lib/nagios/plugins/check_londiste
Code: Select all
./check_nrpe -u -H host01 -c check_londiste
Code: Select all
./check_nrpe -u -H host01 -c check_londiste -a $ARG1$ $ARG2$