For example, I have a custom command called check_storage_devices and I pass in the name of a disk, say vda4 or vda5. The remote host then checks if there is a disk called vda4 or vda5 on it by running the check_storage_devices command installed on the remote host.
However I noticed that if I want it to be a service, I define the command in the commands.cfg as something like this:
Code: Select all
command check_storage_devices {
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_storage_devices -a $ARG1$
Code: Select all
define service {
...
check_command check_storage_devices!vda5
Code: Select all
Return code of 255 for check of service 'check_storage_devices' on host 'storage-test-instance' was out of bounds.