Need help?

Our experts have had an average response time of 13.52 minutes in October 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

NRPE No Output Returned From Plugin – How to fix

by | Apr 15, 2021

Stuck with, NRPE No Output Returned From Plugin? We can help you.

With NRPE, we can remotely execute Nagios plugins on remote Linux/Unix machines.

In addition, it can communicate with a few Windows agent addons. Hence we can execute scripts and check metrics on remote Windows machines as well.

As part of our Server Management Services, we assist our customers with several Nagios queries.

Today, let us see how to fix the error NRPE: No Output Returned From Plugin.

 

NRPE No Output Returned From Plugin

The major causes of this error include:

  • Incorrect permissions
  • Missing plugin
  • Mismatch of Arguments between Nagios XI and nrpe.cfg

 

How to solve this?

Moving ahead, our Support Techs provide solutions to each cause.

  • Incorrect permissions

A common solution is to check the permissions on the check_nrpe binary on the Nagios XI server:

ls -la /usr/local/nagios/libexec/check_nrpe

The permissions should resemble:

-rwxrwxr-x. 1 nagios nagios 75444 Nov 21 01:38 check_nrpe

If not, we change ownership to user/group “nagios” and fix up the permissions:

chown nagios:nagios /usr/local/nagios/libexec/check_nrpe
chmod u+rwx /usr/local/nagios/libexec/check_nrpe
chmod u+rx /usr/local/nagios/libexec/check_nrpe

 

  • Missing Plugin

In the case of a missing plugin file, in order to receive this error, we usually have to experience a secondary configuration issue.

This occurs when the plugin referenced by the command directive in nrpe.cfg is either missing from the libexec folder or an incorrect command directive name.

This also implies that the command name passed through NRPE from the Nagios XI server does not define in the nrpe.cfg file on the remote host.

In order to troubleshoot, we need the name of the command we request NRPE to execute.

For instance, ensure the command is defined in nrpe.cfg on our remote host:

command[check_foo]=/usr/local/nagios/libexec/check_foo.sh $ARG1$

Then, verify if the spelling of check_foo in $ARG1$ matches that of the command directive name command[check_foo].

Next, ensure the plugin to execute on the remote host actually exists.

For example, here, the name of the plugin is:

/usr/local/nagios/libexec/check_foo.sh

We execute the following command on the remote host to see if it exists:

ls -la /usr/local/nagios/libexec/check_foo.sh

If it does not exist, then our output will be like this:

ls: cannot access /usr/local/nagios/libexec/check_foo.sh: No such file or directory

If this is the problem, we have to copy the plugin to the /usr/local/nagios/libexec/ folder.

We ensure the filename check_foo.sh has the correct file extension.

 

  • Mismatch of Arguments between Nagios XI and nrpe.cfg

Usually, a secondary issue is an argument usage mismatch between the remote host’s nrpe.cfg command directive and the arguments passed by Nagios XI through check_nrpe.

If we pass arguments, the argument usage should be consistent between the Nagios XI service check and the arguments declared in the command directive in the remote host’s nrpe.cfg.

Additionally, check the remote host’s nrpe.cfg for the dont_blame_nrpe directive.

For example, consider this command executed on the Nagios XI server:

/usr/local/nagios/libexec/check_nrpe -H 10.25.13.30 -t 30 -c check_users -a ‘-w 5 -c 10’

To identify the setting NRPE server has defined, we log into the remote host as the root user and execute:

grep -e ^dont /usr/local/nagios/etc/nrpe.cfg

The expected output will be like this:

dont_blame_nrpe=1

[Need help with the resolution? We’d be happy to assist]

 

Conclusion

In short, there are multiple reasons that may lead us to this error. However, we saw effective solutions to each of them.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Reviews

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF