-   Linux - Server (
-   -   multipe nrpe commands in nagios (

divyashree 11-18-2012 09:17 PM

multipe nrpe commands in nagios
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$

define command{
        command_name check_nrpe
        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.

divyashree 11-18-2012 10:26 PM

In command line manually running nrpe commands for both remote hosts is working fine from nagios server.

divyashree 11-18-2012 11:09 PM

Yes, I did it using on-demand macros in commands.cfg.

All times are GMT -5. The time now is 10:51 PM.