Here is
your reference on NRPE and how it works
Those are commands that are not defined on the remote host you are trying to monitor with nrpe. It's not saying 'nagios doesnt know what these commands are' it's saying 'nagios asked NRPE on the other host for check_total_users and the NRPE service on that other server doesnt know what this command is'
Nagios is running something along the lines of 'check_nrpe -H ip-or-hostname -c remotecommand-like-check_total_users'
The check_total_users / check_ftp / check_ssh needs to exist as a defined command that can be run in the nrpe config on that remote host you are checking.
For example, a remote system (let's say it is 192.168.123.59 for hostname 'superduperhost4') might have the following defined in its nrpe config:
Code: Select all
command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200
I would then have a check on the nagios server that is checking it with a definition like:
Code: Select all
define command {
command_name check_nrpe_check-procs
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_total_procs
}
and a service definition like
Code: Select all
define service{
use myservicetemplate
host_name superduperhost4 #this will make a service check use HOSTADDRESS 192.168.123.59 from the host definition
service_description nrpe-totalprocs-check
check_command check_nrpe_check-procs
}
It'd be normal to see that the command's aren't defined until you define them on the remote hosts NRPE (and in this case, if you are checking your local nagios instance, you'd need to set them up in your local nagios's NRPE config).