NRPE client issue on Power Linux environment

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
aditya.c.anand
Posts: 56
Joined: Mon Mar 20, 2017 7:16 am

NRPE client issue on Power Linux environment

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NRPE client issue on Power Linux environment

Post by cdienger »

Can you provide the nrpe.cfg as well as the full command you're trying to run?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
aditya.c.anand
Posts: 56
Joined: Mon Mar 20, 2017 7:16 am

Re: NRPE client issue on Power Linux environment

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NRPE client issue on Power Linux environment

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
aditya.c.anand
Posts: 56
Joined: Mon Mar 20, 2017 7:16 am

Re: NRPE client issue on Power Linux environment

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRPE client issue on Power Linux environment

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
aditya.c.anand
Posts: 56
Joined: Mon Mar 20, 2017 7:16 am

Re: NRPE client issue on Power Linux environment

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NRPE client issue on Power Linux environment

Post 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?
Locked