NRPE AIX to Linux

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.
Locked
noodle48
Posts: 21
Joined: Thu Mar 08, 2012 11:45 am

NRPE AIX to Linux

Post by noodle48 »

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?
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: NRPE AIX to Linux

Post by nscott »

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
Locked