There are two pieces to this addon:
-
nrped
: This program runs as a background process on the remote host and processes command execution requests from the check_nrpe plugin on the Nagios host. Upon receiving a plugin request from an authorized host, it will execute the command line associated with the command name it received and send the program output and return code back to thecheck_nrpe
plugin -
check_nrpe
: This is a plugin that is run on the Nagios host and is used to contact thenrped
process on remote hosts. The plugin requests that a plugin be executed on the remote host and wait for thenrped
process to execute the plugin and return the result. The plugin then uses the output and return code from the plugin execution on the remote host for its own output and return code.
NOTE:
It's a ongoing project, however it works. There are some features missing, like SSL support that will be done with the time. git pull are, as usual, welcome :o)
Compiling it:
you will need go and make
make