Page 1 of 1

NRPE: Command xxxx not defined

Posted: Sun Sep 27, 2020 12:28 pm
by ksorbo
I am getting the Command not defined error when accessing remote client

It certainly has something to do with arguments because check_apt command works correctly.

ALL other checks return STATUS Unknown

I have followed the guide at https://support.nagios.com/kb/article.php?id=515 to install the NRPE from source on my nagios server. When I test NRPE locally, I get version
NRPE v3.2.1

if I run

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <remoteip> -c check_users -a -w 5 -c 10
it returns
Usage:
check_users -w <users> -c <users>

if I run

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <remoteip> -c check_users -a '-w 5 -c 10'
it returns the number of users logged on.

Not sure what else to do.

Re: NRPE: Command xxxx not defined

Posted: Tue Sep 29, 2020 4:10 pm
by gormank
I always us the single quoted arguments syntax like in your example.
/usr/local/nagios/libexec/check_nrpe -H <remoteip> -c check_users -a '-w 5 -c 10'
You say the command above works, so what's the check_nrpe, command syntax and output that doesn't work?