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?
Maximum number of arguments in a NRPE check?
-
- Posts: 2
- Joined: Tue Jul 03, 2018 9:31 am
-
- 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?
you really only need 1 like this
but I can pass multiple arguments in the check_nrpe command like this (passing 2):
Code: Select all
command[check_users]=/usr/local/nagios/libexec/check_users $ARG1$
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 1.1.1.1 -c check_users -a '-w 5 -c 10'
-
- Posts: 2
- Joined: Tue Jul 03, 2018 9:31 am
Re: Maximum number of arguments in a NRPE check?
I'm confused. I asked how many arguments a NRPE check can handle and you tell me I only need one argument???scottwilkerson wrote:you really only need 1 like thisCode: Select all
command[check_users]=/usr/local/nagios/libexec/check_users $ARG1$
-
- 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?
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
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?