I need help in understanding how nagios remote server accept arguments. It
seems to me that the plug-ins have different methods of accepting args from
the nagios host. Sometimes the args are delimited by "!" and sometimes by "
". Look at the two examples below.
# NAGIOS HOST: Define a service to check "hard drive"
service_description Disk Free
^^^^ args delimited by "!"
But look how I had to pass in arg2 and arg3 to get the command to work.
command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG2$ -c
$ARG3$ -u MB -e -A
This second plugin also works, but there is a space as a delimiter instead
# Define a service to check "processes"
^^^^ args delimited by space
And here arg1 and arg2 are passed.
# REMOTE SERVER
command[check_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a