and i have the nrpe.cfg with
dont_blame_nrpe=1
but the arguments dont pass
what i'm missing ?
thanks
Code: Select all
define service{
use generic-service
host_name zeus
service_description Current Users 2
check_command check_nrpe!check_usersa!"-w2 -c3"
}
Code: Select all
command[check_usersa]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$Code: Select all
define service{
use generic-service
host_name zeus
service_description Current Users 2
check_command check_nrpe!check_usersa!-a '-w 2 -c 3'
}Code: Select all
command[check_usersa]=/usr/local/nagios/libexec/check_users $ARG1$Code: Select all
define service{
use generic-service
host_name zeus
service_description Current Users 2
check_command check_nrpe!check_usersa!2!3"
}Code: Select all
command[check_usersa]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$with this, that i wanna use i have this errorabrist wrote:You either need to push all of your arguments into one $ARGn$ with the "-a" switch in nrpe, or specify the $ARGn$ values separately in the check.
Or pass $ARGn$s independently:Code: Select all
define service{ use generic-service host_name zeus service_description Current Users 2 check_command check_nrpe!check_usersa!2!3" }Does that make sense?Code: Select all
command[check_usersa]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$
Code: Select all
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
Code: Select all
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$
}
yes thanksabrist wrote:Great! Shall we lock the thread up?