Problem with NRPE

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Problem with NRPE

Post by benningtonr »

Apache Web Server Critical 26d 23h 14m 10s 5/5 2012-07-30 10:05:58 NRPE: Unable to read output

MySQL Server Critical 26d 23h 11m 45s 5/5 2012-07-30 10:05:19 NRPE: Unable to read output

This is on an Ubuntu 64bit server, I didn't set this up or the monitoring of it, but the other monitor checks are working fine on the same box.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem with NRPE

Post by scottwilkerson »

In order to troubleshoot this we will need to verify what command each of these services is using, then verify that the command exists in either the nrpe.cfg or common.cfg on the remote machine as well as the corresponding plugin.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Problem with NRPE

Post by benningtonr »

ok, I am not sure where to start on this one Scott.
Can you tell me what you want to see and where it is located, or a command to run to see the information.

Thank you
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem with NRPE

Post by scottwilkerson »

Well, first the commands for each of these, you can find the on the service detail page -> Configure Tab -> Re-configure this service

It will be under "Monitor the service with this command... (Advanced users only)"

Then, also the /usr/local/nagios/etc/nrpe.cfg from the remote machine
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Problem with NRPE

Post by benningtonr »

I talked with the admin of the ubuntu server, and he does not have a nagios folder. I assume there is some steps he missed when setting this upo to be monitored.
Can you direct me to the procedures pdf for installing what is needed on the ubuntu server.


Here is the commands:

Apache:
check_nrpe!check_init_service!-a 'httpd'

SQL:
check_nrpe!check_init_service!-a 'mysqld'

Thank you
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem with NRPE

Post by mguthrie »

httpd doesn't exist on Ubuntu machines, you'd want "apache2" instead. Mysql might be named something else as well. You can check the names of the init scripts by looking at the script names in /etc/init.d.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Problem with NRPE

Post by benningtonr »

Ok, i changed httpd with apache2,. and it is green now.
He is using mysql on the server, how would I look to see what the service is called, versus mysqld?
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Problem with NRPE

Post by nscott »

On Ubuntu, I believe mysqld -> mysql
Nicholas Scott
Former Nagios employee
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Problem with NRPE

Post by benningtonr »

CPU Stats Unknown 26d 19h 50m 43s 5/5 2012-07-30 11:34:43 UNKNOWN: iostat not found or is not executable by the nagios user.

This is my last problem with the ubuntu
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Problem with NRPE

Post by benningtonr »

also what is a good number for processes?

we have 269 and it says critical, but the box is not loaded.
Locked