--- nrpe-2.12/contrib/README.nrpe_check_control.p0 2003-10-24 12:00:40 +1100 +++ nrpe-2.12/contrib/README.nrpe_check_control 2008-05-05 02:36:47 +1100 @@ -4,9 +4,9 @@ NOTES: The service definition below assumes you have a command called "check_tcp" already setup in your config files. -The command definition below assumes that the $USER1$ macro is used to define the location -of your Nagios plugins (i.e. "/usr/local/nagios/libexec") and that the nrpe_check_control -service is located in that directory. +The command definition below assumes that the $USER2$ macro is used to define the location +of your Nagios event handlerds directory (i.e. "/usr/lib/nagios/eventhandlers") and that +the nrpe_check_control service is located in that directory. @@ -18,12 +18,12 @@ define service { description NRPE ... event_handler nrpe_check_control - check_command check_tcp!-p 5666 - } + check_command check_tcp!-p 65534 + } define command { command_name nrpe_check_control - command_line $USER1$/nrpe_check_control $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ "$HOSTNAME$" + command_line $USER2$/nrpe_check_control $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ "$HOSTNAME$" } --- nrpe-2.12/sample-config/nrpe.cfg.in.p0 2007-11-24 03:31:23 +1000 +++ nrpe-2.12/sample-config/nrpe.cfg.in 2008-05-05 02:39:01 +1100 @@ -41,7 +41,7 @@ server_port=@nrpe_port@ # and you do not want nrpe to bind on all interfaces. # NOTE: This option is ignored if NRPE is running under either inetd or xinetd -#server_address=127.0.0.1 +server_address=127.0.0.1 @@ -172,6 +172,7 @@ connection_timeout=300 #include_dir= #include_dir= +include_dir=/etc/nagios/nrpe-commands # COMMAND DEFINITIONS @@ -188,7 +189,7 @@ connection_timeout=300 # # Note: Any plugins that are used in the command lines must reside # on the machine that this daemon is running on! The examples below -# assume that you have plugins installed in a /usr/local/nagios/libexec +# assume that you have plugins installed in a /usr/lib/nagios/plugins # directory. Also note that you will have to modify the definitions below # to match the argument format the plugins expect. Remember, these are # examples only!