I see in a lot of the Nagios documentation references to check_nrpe_1arg.

Can anyone explain exactly what this is, or does? I see nothing in the Nagios documentation, or anywhere else on the web, that comes right out and says "check_nrpe_1arg does __". At best, it's "you need check_nrpe_1arg here", but without explaining what or why.

Thanks!

link|improve this question
I've never seen that before. Have some links? – VxJasonxV Oct 26 '10 at 0:12
@VxJasonxV, for numerous links Google check_nrpe_1arg – John Gardeniers Oct 26 '10 at 1:11
Three steps ahead of you :). Note the timestamps on both this comment and my answer. – VxJasonxV Oct 26 '10 at 21:39
feedback

1 Answer

Based off a quick cursory search, check_nrpe_1arg is nothing special compared to check_nrpe, it has a bit of a backstory too.

check_nrpe by default does not accept command line arguments to be sent, just the command_name to run on the remote NRPE server host. In order to get NRPE to accept arguments beyond that (if memory serves), you have to enable a compile-time definition, AS WELL AS configure it in check_nrpe as well as the NRPE server nrpe.cfg file.

check_nrpe_1arg appears to be a mnemonic that is configured into the core NAGIOS commands.cfg file; specifically, telling the installer that this command will accept only 1 argument (the name of the command to execute on the remote host) and will not honor any additional arguments.

It's a weird way to do it, given the default behavior of NAGIOS, but it gained traction nevertheless.

The quickest answer to this:
check_nrpe_1arg does exactly what it is configured to do in commands.cfg on the core NAGIOS server. In this context, it provides the command name to execute on the remote NRPE server, and nothing additional will be accepted.

[edit]
Also, it appears to have originated out of the default configs in "Untangle" (a Linux based firewall/routing software package), that or Debian, it's hard to tell without following a handful of links around.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown