Page 1 of 3
Problem with NRPE
Posted: Mon Jul 30, 2012 9:11 am
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.
Re: Problem with NRPE
Posted: Mon Jul 30, 2012 9:33 am
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.
Re: Problem with NRPE
Posted: Mon Jul 30, 2012 9:57 am
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
Re: Problem with NRPE
Posted: Mon Jul 30, 2012 10:00 am
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
Re: Problem with NRPE
Posted: Mon Jul 30, 2012 10:07 am
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
Re: Problem with NRPE
Posted: Mon Jul 30, 2012 10:09 am
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.
Re: Problem with NRPE
Posted: Mon Jul 30, 2012 10:19 am
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?
Re: Problem with NRPE
Posted: Mon Jul 30, 2012 10:21 am
by nscott
On Ubuntu, I believe mysqld -> mysql
Re: Problem with NRPE
Posted: Mon Jul 30, 2012 10:36 am
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
Re: Problem with NRPE
Posted: Mon Jul 30, 2012 10:38 am
by benningtonr
also what is a good number for processes?
we have 269 and it says critical, but the box is not loaded.