NRPE
-
digitalbennu
- Posts: 20
- Joined: Fri Apr 19, 2013 10:46 am
NRPE
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
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
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NRPE
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
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
-
digitalbennu
- Posts: 20
- Joined: Fri Apr 19, 2013 10:46 am
Re: NRPE
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?
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?
-
digitalbennu
- Posts: 20
- Joined: Fri Apr 19, 2013 10:46 am
Re: NRPE
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
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
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 95Be sure to check out our Knowledgebase for helpful articles and solutions!
-
digitalbennu
- Posts: 20
- Joined: Fri Apr 19, 2013 10:46 am
Re: NRPE
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?
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?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NRPE
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/?
Then run the install script:
If so, enter that folder and navigate to subcomponents/nagiosplugins/?
Code: Select all
cd /tmp/macosx/subcomponents/nagiosplugins/Code: Select all
./fullinstall-
digitalbennu
- Posts: 20
- Joined: Fri Apr 19, 2013 10:46 am
Re: NRPE
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
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
You do not have the required permissions to view the files attached to this post.
Last edited by slansing on Thu May 16, 2013 9:52 am, edited 1 time in total.
Reason: Please do not double post.
Reason: Please do not double post.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NRPE
They are not reporting to Nagios XI or are you not able to run them locally like so?:
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."
Code: Select all
./check_cpu_stats.sh
./check_osx_mem.sh -w 85 -c 95-
digitalbennu
- Posts: 20
- Joined: Fri Apr 19, 2013 10:46 am
Re: NRPE
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
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