There are some typos in your setup that I assume were just not transcribed correctly, but we will run through them just in case (ignore if your actually match):
The command view should be:
Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
You receive this error because nrpe cannot decipher how the arguments are being passed to it.
There seems to be some inconsistencies with the way you use arguments. You can either:
1. Define the entirety of the command and argument in the nrpe.cfg file. For example, for the nrpe command:
Code: Select all
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /
You would the setup the check in XI as:
2. Define the command with arguments for each separate command argument. In this example, you nrpe.cfg command would be:
Code: Select all
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
You would the setup the check in XI as:
Code: Select all
$ARG1$ check_disk
$ARG2$ 20%
$ARG3$ 10%
$ARG4$ /
3. Finally, which I would label as the "most optimal" method, is to let XI pass the entirety of the arguments to nrpe, so your nrpe.cfg command would look like:
Code: Select all
command[check_disk]=/usr/lib/nagios/plugins/check_disk $ARG1$
Code: Select all
$ARG1$ check_disk
$ARG2$ -a '-w 20% -c 10% -p /'
Any of these three ways will work, but you need to choose a method for your argument usage and make sure that it is consistent.