Page 1 of 2

NRPE

Posted: Wed May 15, 2013 1:30 pm
by digitalbennu
Installed the client on a Mac 10.8.3 O/S X server which is a Mac Mini 2GHz Intel Core i7 with 16GB of memory.

Not sure what is going on but:
CPU Stats
Memory Usage

All are coming up as NRPE: Unable to read output.

I also have a process called "FM Web Publishing" that is showing the same error but I suspect it might be because I have not gotten the right process yet.

Thanks,
Dave

Re: NRPE

Posted: Wed May 15, 2013 2:09 pm
by slansing
Have you made sure that all of these packages are installed and updated?:

1- OS/X Development tools (Xcode) installed on OS/X system either from the App store or
https://developer.apple.com/
2- Command Line Tools for Xcode
https://developer.apple.com/downloads/index.action
3- OS/X Server Admin Tools to manage the OS/X system
http://support.apple.com/downloads/#ser ... in%20tools

Re: NRPE

Posted: Wed May 15, 2013 2:58 pm
by digitalbennu
I have installed X-code 4.6.2 and it looks like version 4.6.1 of the CLT. Server Admin tools come standard on a server and are the latest edition.

FYI: The first link takes you to the description of the Xcode. You need to follow second link for both Xcode and CLT.

I have noticed there is a newer version of the CLT. Do I need to reinstall the Nagios client after I deploy the newest CLT?

Re: NRPE

Posted: Wed May 15, 2013 3:13 pm
by digitalbennu
Updated the CLT. There was no change in the status.
Disk Usage
Load
Ping
Total Processes
and Users

are all reporting without issue. Its only

CPU Stats
Memory Usage
and in this case a service FM Web Publishing

that report the "NRPE: Unable to read output"

Dave

Re: NRPE

Posted: Wed May 15, 2013 3:46 pm
by lmiltchev
Can you run these checks locally (on the client machine)?

Code: Select all

cd /usr/local/nagios/libexec
./check_cpu_stats.sh
./check_osx_mem.sh -w 85 -c 95

Re: NRPE

Posted: Wed May 15, 2013 4:31 pm
by digitalbennu
Results listed below:
secure1:~ admin$ cd /usr/local/nagios/libexec/
secure1:libexec admin$ ./check_cpu_stat.sh
-bash: ./check_cpu_stat.sh: No such file or directory
secure1:libexec admin$ ./check_osx_mem.sh -w 85 -c 95
-bash: ./check_osx_mem.sh: /bin/bash^M: bad interpreter: No such file or directory

Does this mean the install got messed up with the old CLT?

Re: NRPE

Posted: Wed May 15, 2013 4:50 pm
by slansing
It seems as though the plugins were not installed on the system for some reason, do you still have the NRPE tarball extracted in the /tmp/macosx folder?

If so, enter that folder and navigate to subcomponents/nagiosplugins/?

Code: Select all

cd /tmp/macosx/subcomponents/nagiosplugins/
Then run the install script:

Code: Select all

./fullinstall

Re: NRPE

Posted: Wed May 15, 2013 5:47 pm
by digitalbennu
Done...I then restarted the Nagios process on the machine but no change. I checked for the scripts in the folder missing is the check_cpu_stats.sh present but not working I guess is check_osx_mem.sh

Attaching the output of the nagiosplugin reinstall.

following those same instructions as super user i was able to get check_cpu_stat.sh to show but both are still not reporting after a restart of npre

Dave

Re: NRPE

Posted: Thu May 16, 2013 10:11 am
by slansing
They are not reporting to Nagios XI or are you not able to run them locally like so?:

Code: Select all

./check_cpu_stats.sh
./check_osx_mem.sh -w 85 -c 95
If they are returning valid responses locally, have you verified that port 5666 is open? This is the port that traffic travels over with the NRPE protocol "by default."

Re: NRPE

Posted: Thu May 16, 2013 11:12 am
by digitalbennu
ok....Sort of frustrating because the other stats are responding correctly. I have removed and re-installed the client.

I ran both commands (again) below are the results:
secure1:libexec admin$ ./check_cpu_stats.sh
-bash: ./check_cpu_stats.sh: Permission denied
secure1:libexec admin$ ./check_cpu_stats.sh
-bash: ./check_cpu_stats.sh: Permission denied
secure1:libexec admin$

Not responding: CPU Stats and Memory Usage
Responding: Disk Usage, Load, Ping, Total Processes and Users.


Any ideas?
Dave