Maximum number of arguments in a NRPE check?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Brettyoke49
Posts: 2
Joined: Tue Jul 03, 2018 9:31 am

Maximum number of arguments in a NRPE check?

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Maximum number of arguments in a NRPE check?

Post 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'
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Brettyoke49
Posts: 2
Joined: Tue Jul 03, 2018 9:31 am

Re: Maximum number of arguments in a NRPE check?

Post 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???
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Maximum number of arguments in a NRPE check?

Post 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?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked