I have configured nrpe in 2 linux hosts. One is configured with SSL Handshake enabled and another is with SSL disabled.
Now in my server commands.cfg is configured like this which by default use SSL handshake, but for which ssl is disable one extra agument is requied (-n) with check_nrpe command i.e.
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
How will I add both types of nrpe commands in commands.cfg for different hosts.
I added both in different lines and it throws error;
CHECK_NRPE: Error receiving data from daemon.