Re: New Nagios Build - unable to get NRPE working
Posted: Mon Mar 03, 2014 1:02 pm
Once again everyone.. thank you for all of your replies.. That server that I initially tried to install the NRPE client on is still down.. however I have several other servers that I want to start monitoring using NRPE. My problem is that most of the servers in our network are old and have varied versions of CentOS, Redhat, Oracle Linux , Fedora.. etc.. Seems that this will not be cut and dry for me.. So starting with one of the servers running CentOS 4.1.2 I followed this guide to install the NRPE Client. I found a mistake in the instructions at one point and worked through it.. in any case all seems to be working fine.. If there is another /better option for this I am open to it..
Right now the CPU Load is working but the check_disk command is not. I am getting the following error.
NRPE: Command 'check_disk' not defined
I am assuming I am missing some parameters in my command. Being a newbie at this I think I need to add the following.
define service{
use generic-service
host_name myserver
service_description Drive Space
check_command check_nrpe!check_disk
}
- This where I believe I need to add some disk parameters, I do not know the proper syntax.
would it be something like this?
check_nrpe!check_disk!-w 20% !-c 10% !-p /dev/hda1
Please advise.
Thank you
Jon
Right now the CPU Load is working but the check_disk command is not. I am getting the following error.
NRPE: Command 'check_disk' not defined
I am assuming I am missing some parameters in my command. Being a newbie at this I think I need to add the following.
define service{
use generic-service
host_name myserver
service_description Drive Space
check_command check_nrpe!check_disk
}
- This where I believe I need to add some disk parameters, I do not know the proper syntax.
would it be something like this?
check_nrpe!check_disk!-w 20% !-c 10% !-p /dev/hda1
Please advise.
Thank you
Jon