nagios server - commands.cfg
define command {
command_name check_nrpe_remote_command_3
command_line $USER1$/check_nrpe -H $ARG1$ -c $ARG2$ -a $ARG3$ $ARG4$ $ARG5$
}
define service{
use bigdata-service ; Name of service template to use
host_name localhost
service_description OPS_gitlab_xxx
check_command check_nrpe_remote_command_3!127.0.0.1!check_http!gitlab.xxx.xxx.com!80!/
notifications_enabled 1
}
client remote - nrpe.cfg
command[check_http]=/usr/local/nagios/libexec/check_http -H $ARG1$ -p $ARG2$ -u $ARG3$