Hey lmiltchev, thanks for the input and sorry for such a delayed response. It's taken awhile to test everything thoroughly. I can definitely query things through the command line on the monitoring host with your set-up (which I happen to find preferable, notably keeping the arguments centrally located.)
However, I am still unable to retrieve information from the GUI. Status information reports '(No output returned from plugin)' from CPU Load (yet I have another service working but it has no arguments). Things are currently configured like this:
Monitoring Host
Code: Select all
define service{
use generic-service
host_name mortall
service_description CPU Load NRPE
check command check_nrpe!check_load!-a '-w 15,10,5 -c 30,20,10'
}
Remote Host, I've tried the following combinations
Code: Select all
command[check_load_nrpe]=/usr/lib/nagios/plugins/check_load $ARG1$
command[check_load_nrpe]=/usr/lib/nagios/plugins/check_load $ARG1$ $ARG1$
command[check_load_nrpe]=/usr/lib/nagios/plugins/check_load -w $ARG1$ -c $ARG1$
However, I also have, on the monitoring host, defined: check_command check_nrpe!check_apt!-a
Which, incidentally, reports just fine. Which indicates to me an argument issue.
The GUI does make this note:
Code: Select all
Note:
This plugin requires that you have the NRPE daemon running on the remote host.
You must also have configured the daemon to associate a specific plugin command
with the [command] option you are specifying here. Upon receipt of the
[command] argument, the NRPE daemon will run the appropriate plugin command and
send the plugin output and return code back to *this* plugin. This allows you
to execute plugins on remote hosts and 'fake' the results to make Nagios think
the plugin is being run locally.
I was considering putting a '-c [command-name]' somewhere, but it's a bit confusing as to where. The exclamation mark delimiters, I thought, covered this.
One other error that keeps popping up when I try to use the GUI:
Code: Select all
Error: Could not stat() command file '/var/lib/nagios3/rw/nagios.cmd'!
The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands.
An error occurred while attempting to commit your command for processing.