(Nagios)NRPE不将parameter passing给检查
自从现在几个小时以来,我一直试图创build自己的NRPE检查,但仍然失败。 我想使用2个检查: check_load , check_disk 我的问题是,NRPE不会将检查参数转发到nrpe.cfg指定的检查。 这是我的objects-config,它定义了两个远程检查: define service{ use local-service host_name localhost service_description Disk-Space check_command check_nrpe!check_disk!20%!10% } define service{ use local-service host_name localhost service_description CPU-Load check_command check_nrpe!check_load!0.15,0.10,0.05!0.15,0.10,0.05 } 另外,这是我对check_nrpe commands.cfg : # define nrpe command define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$ } 最后,这是我的nrpe.cfg的必要部分: command[check_load]=/usr/local/nagios/libexec/check_load -r -w $ARG1$ […]