RHEL instance monitoring issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
wipro-cloud-services
Posts: 58
Joined: Thu Nov 11, 2010 4:42 am

RHEL instance monitoring issue

Post by wipro-cloud-services »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: RHEL instance monitoring issue

Post by scottwilkerson »

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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
gwakem
Posts: 238
Joined: Mon Jan 23, 2012 2:02 pm
Location: Asheville, NC

Re: RHEL instance monitoring issue

Post by gwakem »

Make sure you can hit NRPE first, which would indicate its running and available (ie. config isnt hosed,)

Code: Select all

# pwd
/usr/local/nagios/libexec
# ./check_nrpe -H $YOUR_HOST_HERE$
NRPE v2.12
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:

Code: Select all

# ./check_nrpe -H $YOUR_HOST_HERE$ -c check_users 
USERS OK - 0 users currently logged in |users=0;5;10;0
Then you can try one of your variables:

Code: Select all

./check_nrpe -H $YOUR_HOST_HERE$ -c check_cpu_stats -a 85 95
This would assume that your nrpe.cfg line on the machine youre trying to monitor looks like this:

Code: Select all

command[check_cpu_stats]=/usr/local/nagios/libexec/$Your_Plugin_Name_Here$ -w $ARG1$ -c $ARG2$
The way you have the config posted above, it would have to be more like:

Code: Select all

command[check_cpu_stats]=/usr/local/nagios/libexec/$Your_Plugin_Name_Here$ $ARG1$
If none of these help, post the actual line of the nrpe.cfg, someone may be able to point out an issue.
--
Griffin Wakem
Locked