{"id":6360,"date":"2021-05-06T10:36:17","date_gmt":"2021-05-06T05:06:17","guid":{"rendered":"https:\/\/www.skynats.com\/?p=6360"},"modified":"2024-12-17T12:23:57","modified_gmt":"2024-12-17T06:53:57","slug":"nrpe","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/nrpe\/","title":{"rendered":"NRPE &#8211; How to fix No Output Returned From Plugin"},"content":{"rendered":"\n<p>The NRPE now you can execute Nagios plugins remotely on the Linux\/Unix remote machine. In addition to this, you can also communicate with a few windows agent addons in order to executive scripts and check metrics on remote Windows machines.<\/p>\n\n\n\n<p>Our technical team support will fix any sort of Nagios queries under our&nbsp;<a href=\"https:\/\/www.skynats.com\/linux-server-management\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#05709e\" class=\"has-inline-color\">server management<\/span><\/a> plan. You can also take assistance from our technical team support 24\/7 for fixing the error or any sort of installation and migration.<\/p>\n\n\n\n<p>NRPE: No Output Returned From Plugin<\/p>\n\n\n\n<p>causes of the error.<\/p>\n\n\n\n<p>The error is due to incorrect permissions<\/p>\n\n\n\n<p>Due to the missing plugin<\/p>\n\n\n\n<p>Mismatch of Arguments between Nagios XI and nrpe.cfg<\/p>\n\n\n\n<p><strong>Resolving the error.<\/strong><\/p>\n\n\n\n<p><strong>Incorrect permissions<\/strong><\/p>\n\n\n\n<p>The solution to permissions on the check_nrpe binary on the Nagios XI server:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -la \/usr\/local\/nagios\/libexec\/check_nrpe<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>The permissions should resemble:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-rwxrwxr-x. 1 nagios nagios 75444 Nov 21 01:38 check_nrpe<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>If not, change ownership to user\/group \u201cnagios\u201d and fix up the permissions:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chown nagios:nagios \/usr\/local\/nagios\/libexec\/check_nrpe\nchmod u+rwx \/usr\/local\/nagios\/libexec\/check_nrpe\nchmod u+rx \/usr\/local\/nagios\/libexec\/check_nrpe<\/code><\/pre>\n\n\n\n<p><strong>Missing Plugin<\/strong><\/p>\n\n\n\n<p>In case of plugin file missing that leads to the error, will experience a secondary configuration issue.<\/p>\n\n\n\n<p>This used to occur when the plugins referenced by command directive in nrpe.cfg is either missing from the libexec folder or an incorrect command directive name.<\/p>\n\n\n\n<p>It won&#8217;t define the nrpe.cfg file on the remote host while passing through the NRPE from the Nagios XI server.<\/p>\n\n\n\n<p>To troubleshoot the error you need the name of the command then request the NRPE to execute.<\/p>\n\n\n\n<p>For instance, ensure that the remote host has defined the command nrpe.cfg :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>command&#91;check_foo]=\/usr\/local\/nagios\/libexec\/check_foo.sh $ARG1$<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Later, verify if the spelling of check_foo in $ARG1$ matches that of the command directive name command[check_foo].<\/p>\n\n\n\n<p>Try to ensure the plugins execute on the remote host.<\/p>\n\n\n\n<p>For example name of the plugins.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/local\/nagios\/libexec\/check_foo.sh<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Executive the following commands on the remote host.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -la \/usr\/local\/nagios\/libexec\/check_foo.sh<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>If it does not exist, then the output will be&nbsp;<\/p>\n\n\n\n<p>ls: cannot access \/usr\/local\/nagios\/libexec\/check_foo.sh: No such file or directory<\/p>\n\n\n\n<p>If this is the problem, we have to copy the plugin to the \/usr\/local\/nagios\/libexec\/ folder.<\/p>\n\n\n\n<p>Ensure the filename check_foo.sh has the correct file extension.<\/p>\n\n\n\n<p><strong>Mismatch of Arguments between Nagios XI and nrpe.cfg<\/strong><\/p>\n\n\n\n<p>Usually, a secondary issue is an argument usage mismatch between the remote host\u2019s nrpe.cfg command directive and the arguments passed by Nagios XI through check_nrpe.<\/p>\n\n\n\n<p>Once you pass the arguments its usage should be consistent between the Nagios XI service check the declared arguments in the command directive in the remote host&#8217;s nrpe.cfg.<\/p>\n\n\n\n<p>Additionally, check the remote host\u2019s nrpe.cfg for the dont_blame_nrpe directive.<\/p>\n\n\n\n<p>For example, consider this command executed on the Nagios XI server:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/local\/nagios\/libexec\/check_nrpe -H 10.25.13.30 -t 30 -c check_users -a \u2018-w 5 -c 10\u2019<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>To identify the setting NRPE server has defined, we log into the remote host as the root user and execute:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -e ^dont \/usr\/local\/nagios\/etc\/nrpe.cfg<\/code><\/pre>\n\n\n\n<p>Output&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dont_blame_nrpe=1<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>In brief, the cause of the error may be due to various reasons, follow the steps to resolve this error. If you need any assistance, consult our <a href=\"https:\/\/www.skynats.com\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#036792\" class=\"has-inline-color\">technical team<\/span><\/a> support to resolve the error on your behalf.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The NRPE now you can execute Nagios plugins remotely on the Linux\/Unix remote machine. In addition to this, you can also communicate with a few windows agent addons in order to executive scripts and check metrics on remote Windows machines. Our technical team support will fix any sort of Nagios queries under our&nbsp;server management plan. [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[485],"class_list":["post-6360","post","type-post","status-publish","format-standard","hentry","category-blog","tag-how-to-fix-nrpe-no-output-returned-from-plugin"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>NRPE - How to fix No Output Returned From Plugin | Skynats<\/title>\n<meta name=\"description\" content=\"The NRPE now you can execute Nagios plugins remotely on the Linux\/Unix remote machine. In addition to this, you can also communicate with\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.skynats.com\/blog\/nrpe\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NRPE - How to fix No Output Returned From Plugin\" \/>\n<meta property=\"og:description\" content=\"The NRPE now you can execute Nagios plugins remotely on the Linux\/Unix remote machine. In addition to this, you can also communicate with\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/nrpe\/\" \/>\n<meta property=\"og:site_name\" content=\"Server Management Services | Cloud Management | Skynats\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/skynats\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-06T05:06:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-17T06:53:57+00:00\" \/>\n<meta name=\"author\" content=\"Pooja V\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:site\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pooja V\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nrpe\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nrpe\\\/\"},\"author\":{\"name\":\"Pooja V\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/030d5856dd5166055eecc07218d2455e\"},\"headline\":\"NRPE &#8211; How to fix No Output Returned From Plugin\",\"datePublished\":\"2021-05-06T05:06:17+00:00\",\"dateModified\":\"2024-12-17T06:53:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nrpe\\\/\"},\"wordCount\":505,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"keywords\":[\"how to fix nrpe no output returned from plugin\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nrpe\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nrpe\\\/\",\"name\":\"NRPE - How to fix No Output Returned From Plugin | Skynats\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"datePublished\":\"2021-05-06T05:06:17+00:00\",\"dateModified\":\"2024-12-17T06:53:57+00:00\",\"description\":\"The NRPE now you can execute Nagios plugins remotely on the Linux\\\/Unix remote machine. In addition to this, you can also communicate with\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nrpe\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nrpe\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nrpe\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"NRPE &#8211; How to fix No Output Returned From Plugin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"name\":\"Server Management Services | Cloud Management | Skynats\",\"description\":\"Server Management and Cloud Management\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\",\"name\":\"Skynats Technologies\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"contentUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"width\":989,\"height\":367,\"caption\":\"Skynats Technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/skynats\",\"https:\\\/\\\/x.com\\\/skynatstech\",\"https:\\\/\\\/www.instagram.com\\\/skynatstech\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/skynats-technologies\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCvTAjrFJ4_E2MJKwlDHomlg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/030d5856dd5166055eecc07218d2455e\",\"name\":\"Pooja V\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g\",\"caption\":\"Pooja V\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"NRPE - How to fix No Output Returned From Plugin | Skynats","description":"The NRPE now you can execute Nagios plugins remotely on the Linux\/Unix remote machine. In addition to this, you can also communicate with","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.skynats.com\/blog\/nrpe\/","og_locale":"en_US","og_type":"article","og_title":"NRPE - How to fix No Output Returned From Plugin","og_description":"The NRPE now you can execute Nagios plugins remotely on the Linux\/Unix remote machine. In addition to this, you can also communicate with","og_url":"https:\/\/www.skynats.com\/blog\/nrpe\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2021-05-06T05:06:17+00:00","article_modified_time":"2024-12-17T06:53:57+00:00","author":"Pooja V","twitter_card":"summary_large_image","twitter_creator":"@skynatstech","twitter_site":"@skynatstech","twitter_misc":{"Written by":"Pooja V","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.skynats.com\/blog\/nrpe\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/nrpe\/"},"author":{"name":"Pooja V","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/030d5856dd5166055eecc07218d2455e"},"headline":"NRPE &#8211; How to fix No Output Returned From Plugin","datePublished":"2021-05-06T05:06:17+00:00","dateModified":"2024-12-17T06:53:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/nrpe\/"},"wordCount":505,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"keywords":["how to fix nrpe no output returned from plugin"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/nrpe\/","url":"https:\/\/www.skynats.com\/blog\/nrpe\/","name":"NRPE - How to fix No Output Returned From Plugin | Skynats","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"datePublished":"2021-05-06T05:06:17+00:00","dateModified":"2024-12-17T06:53:57+00:00","description":"The NRPE now you can execute Nagios plugins remotely on the Linux\/Unix remote machine. In addition to this, you can also communicate with","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/nrpe\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/nrpe\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/nrpe\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.skynats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"NRPE &#8211; How to fix No Output Returned From Plugin"}]},{"@type":"WebSite","@id":"https:\/\/www.skynats.com\/blog\/#website","url":"https:\/\/www.skynats.com\/blog\/","name":"Server Management Services | Cloud Management | Skynats","description":"Server Management and Cloud Management","publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.skynats.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.skynats.com\/blog\/#organization","name":"Skynats Technologies","url":"https:\/\/www.skynats.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","contentUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","width":989,"height":367,"caption":"Skynats Technologies"},"image":{"@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/skynats","https:\/\/x.com\/skynatstech","https:\/\/www.instagram.com\/skynatstech\/","https:\/\/www.linkedin.com\/company\/skynats-technologies","https:\/\/www.youtube.com\/channel\/UCvTAjrFJ4_E2MJKwlDHomlg"]},{"@type":"Person","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/030d5856dd5166055eecc07218d2455e","name":"Pooja V","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g","caption":"Pooja V"}}]}},"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=6360"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6360\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=6360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=6360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=6360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}