Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
On your remote server, are you running NRPE through xinetd or as a stand-alone daemon? If it's a stand-alone daemon the process will need to be restarted for the config file to be picked up appropriately.
cd /usr/lib/nagios/plugins
./check_nrpe -H 127.0.0.1
./check_nrpe -H 127.0.0.1 -c check_hda2
Do you see the expected results?
TwitsBlog Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
jolson wrote:On your remote server, are you running NRPE through xinetd or as a stand-alone daemon? If it's a stand-alone daemon the process will need to be restarted for the config file to be picked up appropriately.
How did you install NRPE? It shouldn't be running as root. I see you're not running it inside of xinetd. Your file paths may vary, but on a compile from our script, you can see how stuff is running like this:
hsmith wrote:How did you install NRPE? It shouldn't be running as root. I see you're not running it inside of xinetd. Your file paths may vary, but on a compile from our script, you can see how stuff is running like this:
# NRPE USER
# This determines the effective user that the NRPE daemon should run as.
# You can either supply a username or a UID.
#
# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
nrpe_user=nagios
# NRPE GROUP
# This determines the effective group that the NRPE daemon should run as.
# You can either supply a group name or a GID.
#
# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
nrpe_group=nagios
This is from your nrpe.cfg file.
Can you su to the nagios user and attempt to /usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sdc1