I have Nagios Core running on a RHEL 6.3 server with clients on both Linux and AIX 5.3. I have the nrpe able to talk to each other with no problem but when I try to run a custom command I get errors. Below is my problem in more detailed:
AIX Server:
Command I want to run:
/usr/local/nagios/libexec/check_procs -w 1 -c 1 -a 'command'
Output:
PROCS OK: 1 process with args 'command'
NRPE.cfg
command[check_command]=/usr/local/nagios/libexec/check_procs -w 1 -c 1 -a 'command'
Nagios Server:
./check_nrpe -H (Host IP) -c check_command-n
Output:
check_procs: Warning Process Count must be an integer!
Usage:check_procs -w <range> -c <range> [-m metric] [-s state] [-p ppid]
[-u user] [-r rss] [-z vsz] [-P %cpu] [-a argument-array]
[-C command] [-t timeout] [-v]
Do I need to have this command also defined in the Nagios nrpe.cfg file?? Please help! Also, is there a better command to check for running process then check_procs?
NRPE AIX to Linux
Re: NRPE AIX to Linux
In the nrpe.cfg on the AIX box, are you using the dont_blame_nrpe=1 ? You shouldn't have to edit to the nrpe.cfg on the local Nagios server.
Nicholas Scott
Former Nagios employee
Former Nagios employee