Having trouble getting this NRPE plugin to remotely execute. The documentation provided is somewhat confusing to me. Here are the configs I've got running...
On the Nagios server...
In services.cfg, I have:
service_description Check mail server disk space
In misccommands.cfg, I have:
command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
On the remote host:
allowed_hosts=<ip of the nagios server>
command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
I've started the nrpe manually in daemon mode (not using inetd or xinetd), and restarting Nagios returns this error when it tries to run the check_nrpe command (I get the same error trying to run it from command line):
Connection refused or timed out
I'm not sure what's wrong here. I've read and reread the README supplied but it's not getting me anywhere. I've already checked ownership and permissions on the plugin and those specs are the same as all the other plugins in my libexec/ directory. Please help!