Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
I can query the nagios system with the check NRPE command
You are running these commands from the nagios server to the NRPE server correct? Not the way you stated above?
Did you make sure to restart xinetd after making your changes?
I would also try removing the -w and -c from the arguments section of the nrpe.cfg since you are passing them in your arguments from core.
Yes, sorry for the confusion. I am running those commands from the machines with the full Nagios installation. I am querying the server with the NRPE plugin installed. I did restart xinetd after making changes.
I removed the section from the nrpe.cfg that allowed me to specify the command arguments. It is still giving me the unknown arguments error. However, I tried it with the following arguments before changing it and it gave me a different message.
root@<server>:/usr/local/nagios/libexec# ./check_nrpe -H ftb.<host>.com -c check_disk -a "-w 5 -c 2 -p /home"
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
Does that mean that it is accepting the arguments?
define service{
use generic-service ; Name of servi$
host_name ftb.<host>.com
service_description Home Partition
check_command check_nrpe!check_disk!30!20!/home/
}
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a "$ARG2$ $ARG3$ $ARG4$"
And then in the service definition make sure that all the required flags for those arguments are in place, it looks like you are passing warning and critical thresholds so you will want to change the service definition like so:
Some of the plugins I have to use the local ones on the Nagios server, for example checking the ping. Others, I have to pass the command via the check_nrpe plugin. Getting the hang of it.