Problem with NRPE
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Problem with NRPE
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.
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
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.
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Problem with NRPE
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
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
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
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
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Problem with NRPE
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
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
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
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?
He is using mysql on the server, how would I look to see what the service is called, versus mysqld?
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Problem with NRPE
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
This is my last problem with the ubuntu
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Problem with NRPE
also what is a good number for processes?
we have 269 and it says critical, but the box is not loaded.
we have 269 and it says critical, but the box is not loaded.