Page 1 of 1

RPE: Unable to read output

Posted: Fri Oct 19, 2018 8:55 am
by Johnsmit
Hi,

I am unable to execute the Check_init_service remotely. when i rum from local machine its running whereas from remote machine using NRPE i cannot.

On local Machine
./check_init_service crond
Redirecting to /bin/systemctl status crond.service
* crond.service - Command Scheduler
Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2018-10-16 14:38:56 EDT; 2 days ago


from remote machine

/usr/local/nagios/libexec/check_nrpe -H IP address -t 30 -c check_init_service -a 'sendmail'
NRPE: Unable to read output


Any help will be appreciated

Re: RPE: Unable to read output

Posted: Fri Oct 19, 2018 11:08 am
by benjaminsmith
Hi @Johnsmit

This type error can be caused by an incorrect plugin path. Please verify that the plugin path on the remote machine matches the path in the config file, nrpe.cfg.

The default path for plugins is:
/usr/local/nagios/libexec/

Then compare with the path for the command directive in nrpe.cfg:
command[check_users]=/usr/local/nagios/libexec/check_users $ARG1$

We have a knowledgebase article on troubleshooting this type of error at:
https://support.nagios.com/kb/article/n ... t-620.html

Let me know this resolves the issue.