{"id":620,"date":"2016-04-29T19:51:56","date_gmt":"2016-04-29T14:21:56","guid":{"rendered":"http:\/\/www.middlewareprimer.com\/blog\/?p=620"},"modified":"2016-04-29T19:51:56","modified_gmt":"2016-04-29T14:21:56","slug":"cant-read-etcxinetd-dnrpe-no-file-directory","status":"publish","type":"post","link":"http:\/\/www.middlewareprimer.com\/blog\/2016\/04\/29\/cant-read-etcxinetd-dnrpe-no-file-directory\/","title":{"rendered":"can&#8217;t read \/etc\/xinetd.d\/nrpe: No such file or directory"},"content":{"rendered":"<p>can&#8217;t read \/etc\/xinetd.d\/nrpe: No such file or directory pops up during installation. Not at all sure why this file is not existing even I took the installation file from service repositories. It was checking for \/etc\/xinet.d\/nrpe file and this is not existing at all.<\/p>\n<p>One of the Nagios support link that explains this clearly is below,<\/p>\n<p><a href=\"https:\/\/support.nagios.com\/forum\/viewtopic.php?f=6&amp;t=31944\" target=\"_blank\">https:\/\/support.nagios.com\/forum\/viewtopic.php?f=6&amp;t=31944<\/a><\/p>\n<p>I took out a file from one of the other machines and then created a new file on the Linux server where I was facing problems. Following are the contents of the file that I have copied,<\/p>\n<p>service nrpe<br \/>\n{<br \/>\nflags\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = REUSE<br \/>\nsocket_type\u00a0\u00a0\u00a0\u00a0 = stream<br \/>\nport\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = 5666<br \/>\nwait\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = no<br \/>\nuser\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = nagios<br \/>\ngroup\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = nagios<br \/>\nserver\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = \/usr\/local\/nagios\/bin\/nrpe<br \/>\nserver_args\u00a0\u00a0\u00a0\u00a0 = -c \/usr\/local\/nagios\/etc\/nrpe.cfg \u2013inetd<br \/>\nlog_on_failure\u00a0 += USERID<br \/>\ndisable\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = no<br \/>\nonly_from\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = 127.0.0.1<br \/>\n}<\/p>\n<p>We have to edit them accordingly to our requirements (referring to only_from directive). After copying the file installation succeeded and could monitor the linux environment.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>can&#8217;t read \/etc\/xinetd.d\/nrpe: No such file or directory pops up during installation. Not at all sure why this file is not existing even I took the installation file from service repositories. It was checking for \/etc\/xinet.d\/nrpe file and this is not existing at all. One of the Nagios support link that explains this clearly is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[153],"tags":[118,175],"class_list":["post-620","post","type-post","status-publish","format-standard","hentry","category-nagios","tag-nagios","tag-nrpe-file"],"_links":{"self":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/comments?post=620"}],"version-history":[{"count":2,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/620\/revisions"}],"predecessor-version":[{"id":646,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/620\/revisions\/646"}],"wp:attachment":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/media?parent=620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/categories?post=620"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/tags?post=620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}