2.11. Add Templeton Status and Check TCP Wrapper Commands

  1. Open /etc/nagios/objects/hadoop-commands.cfg with a text editor.

  2. Add the following commands:

    define command{
            command_name    check_templeton_status
            command_line    $USER1$/check_wrapper.sh $USER1$/check_templeton_status.sh $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$
           }
    
    define command{
            command_name    check_tcp_wrapper
            command_line    $USER1$/check_wrapper.sh $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
           }

loading table of contents...