Hi Team,
We've installed NRPE agent on CentOS client machine. Now the Nagios XI monitors Disk Usage, Load, Ping, Swap Usage, Total Processes and Users. But it failed to monitor CPU stats, Memory usage, Open Files and Yum updates. It returns with "NRPE: Unable to read output".
While going through one of the Nagios support document, for this particular error, it asked to check the commands. Please check the below command details and request for a support to sort this out.
CPU stats: check_nrpe!check_cpu_stats!-a '-w 85 -c 95'
Memory Usage: check_nrpe!check_mem!-a '-w 20 -c 10'
Open Files: check_nrpe!check_open_files!-a '-w 30 -c 50'
Yum Updates: check_nrpe!check_yum!
Please guide us through to solve it.
Thanks
RHEL instance monitoring issue
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: RHEL instance monitoring issue
Is this RHEL or CentOS, you mention both... What version?
Did you use our Agent install instructions found here?
http://library.nagios.com/library/produ ... inux-agent
Did you use our Agent install instructions found here?
http://library.nagios.com/library/produ ... inux-agent
Re: RHEL instance monitoring issue
Make sure you can hit NRPE first, which would indicate its running and available (ie. config isnt hosed,)
If that responds like above, then you can narrow it down to trying a manual command from the nagios server, but it looks like youre passing variables to NRPE, which means that you need to make sure "dont_blame_nrpe=1" in the nrpe.cfg.
You can try this to see if the general nrpe.cfg is ok, instead of the config on the nagios server, since this command should be hard coded by default:
Then you can try one of your variables:
This would assume that your nrpe.cfg line on the machine youre trying to monitor looks like this:
The way you have the config posted above, it would have to be more like:
If none of these help, post the actual line of the nrpe.cfg, someone may be able to point out an issue.
Code: Select all
# pwd
/usr/local/nagios/libexec
# ./check_nrpe -H $YOUR_HOST_HERE$
NRPE v2.12You can try this to see if the general nrpe.cfg is ok, instead of the config on the nagios server, since this command should be hard coded by default:
Code: Select all
# ./check_nrpe -H $YOUR_HOST_HERE$ -c check_users
USERS OK - 0 users currently logged in |users=0;5;10;0Code: Select all
./check_nrpe -H $YOUR_HOST_HERE$ -c check_cpu_stats -a 85 95Code: Select all
command[check_cpu_stats]=/usr/local/nagios/libexec/$Your_Plugin_Name_Here$ -w $ARG1$ -c $ARG2$Code: Select all
command[check_cpu_stats]=/usr/local/nagios/libexec/$Your_Plugin_Name_Here$ $ARG1$--
Griffin Wakem
Griffin Wakem