Page 1 of 1

NRPE client issue on Power Linux environment

Posted: Tue Feb 19, 2019 9:53 am
by aditya.c.anand
Hello Team,

We have a new Power linux server in our environment where the Nagios client "NRPE" is not working as expected when we are verifying the check from our Nagios server.
When were running it locally , all scripts are working fine but this is not responding via our Nagios server.

Below is the error we are receiving , even though the commands are defined in the nrpe.cfg file on the client machine:
NRPE : Command Not Found

NOTE: We have already added our Nagios server name under nrpe.cfg file at allowed host .

Kindly suggest how to fix the issue , or let us know, if there is any separate client that supports for power linux environment.

Please let us know, if you require any more information.

Regards,
Aditya Anand

Re: NRPE client issue on Power Linux environment

Posted: Tue Feb 19, 2019 11:59 am
by cdienger
Can you provide the nrpe.cfg as well as the full command you're trying to run?

Re: NRPE client issue on Power Linux environment

Posted: Wed Feb 20, 2019 9:49 am
by aditya.c.anand
Hello Team,

Please find the attached nrpe.cfg file.

Command:
[nagios@ker-l-appmon01p ~]$ /usr/local/nagios/libexec/check_nrpe -H ker-l-pgssrv01t -t 60 -c check_cpu_stats -a '-w 90,40,30 -c 95,60,40'
NRPE: Command 'check_cpu_stats!-w 90,40,30 -c 95,60,40' not defined

Please help

Re: NRPE client issue on Power Linux environment

Posted: Wed Feb 20, 2019 10:53 am
by cdienger
There is a config for check_cpu_stats on line 316 but is is commented out. Edit the file and remove the # at the beginning of the line then restart the agent and test again.

Re: NRPE client issue on Power Linux environment

Posted: Tue Feb 26, 2019 10:33 am
by aditya.c.anand
Hello Team,

None of the checks are working. Below is the example:

-bash-4.2$ /usr/local/nagios/libexec/check_nrpe -H ker-l-pgssrv01t -c /usr/local/nagios/libexec/check_total_procs_count.sh -a '2000 3000'
NRPE: Command '/usr/local/nagios/libexec/check_total_procs_count.sh!2000 3000' not defined

The above service check is not commented out as it is properly defined under nrpe.cfg file on the client machine.
Kindly suggest if any explicit nrpe client version is available or anything needs to be changed on the existing one to support power linux machines.

Also please confirm , will nagios client is compatible with power linux environment (Linux installed on AIX hardware).

Regards,
Aditya Anand

Re: NRPE client issue on Power Linux environment

Posted: Tue Feb 26, 2019 1:21 pm
by scottwilkerson
What follows the -c in the command is the name of the command from the nrpe.cfg file on the client

example in this line in the nrpe.cfg the command name is check_users

Code: Select all

command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10

Re: NRPE client issue on Power Linux environment

Posted: Tue Mar 19, 2019 9:52 am
by aditya.c.anand
Hello Team,

We tried via normal way also to monitor the power linux machine, but still no luck :

-bash-4.2$ /usr/local/nagios/libexec/check_nrpe -H ker-l-pgssrv01t -c check_total_procs_count -a '2000 3000'
NRPE: Command 'check_total_procs_count!2000 3000' not defined
-bash-4.2$

-c is used to provide the script that we want to execute on the target server.

Will nagios be able to monitor power linux machine via NRPE or there is any other way to monitor the same?

Please let me know if we can set a webex session to resolve the issue.

Regards,
Aditya Anand

Re: NRPE client issue on Power Linux environment

Posted: Tue Mar 19, 2019 12:13 pm
by ssax
I believe you will only see this error if you did NOT compile NRPE with arguments support:
- That's why you see the command AND the arguments smooshed together as a single command name
-- If it was compiled with argument support it would only be looking for check_total_procs_count not check_total_procs_count!2000 3000

Code: Select all

NRPE: Command 'check_total_procs_count!2000 3000' not defined
Did you compile NRPE from source or install via another method?