Page 1 of 1
Maximum number of arguments in a NRPE check?
Posted: Tue Jul 03, 2018 9:35 am
by Brettyoke49
Title says it all. I can't find the maximum number of arguments available in a NRPE check.
If nobody knows what the max is, can anyone confirm if 12 is usable? Is there some kind of placeholder for an "array" of arguments?
Re: Maximum number of arguments in a NRPE check?
Posted: Tue Jul 03, 2018 10:41 am
by scottwilkerson
you really only need 1 like this
Code: Select all
command[check_users]=/usr/local/nagios/libexec/check_users $ARG1$
but I can pass multiple arguments in the check_nrpe command like this (passing 2):
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 1.1.1.1 -c check_users -a '-w 5 -c 10'
Re: Maximum number of arguments in a NRPE check?
Posted: Tue Jul 03, 2018 11:28 am
by Brettyoke49
scottwilkerson wrote:you really only need 1 like this
Code: Select all
command[check_users]=/usr/local/nagios/libexec/check_users $ARG1$
I'm confused. I asked how many arguments a NRPE check can handle and you tell me I only need one argument???
Re: Maximum number of arguments in a NRPE check?
Posted: Tue Jul 03, 2018 11:38 am
by scottwilkerson
Sorry, by default it is 16.
I guess what I was answering is this question because you can pass a lot, withing the context of 1 arg
Brettyoke49 wrote:Is there some kind of placeholder for an "array" of arguments?