<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: problem with nagios client config in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532576#M62029</link>
    <description>Nov 12 22:14:28  nrpe[17221]: Caught SIGHUP - restarting...&lt;BR /&gt;Nov 12 22:14:28  nrpe[17221]: Warning: Daemon is configured to accept command arguments from clients!&lt;BR /&gt;Nov 12 22:14:28  nrpe[17221]: Listening for connections on port 5666&lt;BR /&gt;Nov 12 22:14:28  nrpe[17221]: Allowing connections from: 127.0.0.1&lt;BR /&gt;Nov 12 22:15:08  nrpe[22596]: Host 172.16.128.54 is not allowed to talk to us!&lt;BR /&gt;Nov 12 22:15:47  nrpe[22598]: Host 172.16.128.54 is not allowed to talk to us!&lt;BR /&gt;Nov 12 22:15:57  nrpe[22600]: Host 172.16.128.54 is not allowed to talk to us!</description>
    <pubDate>Fri, 13 Nov 2009 05:40:14 GMT</pubDate>
    <dc:creator>Sunny Jaisinghani</dc:creator>
    <dc:date>2009-11-13T05:40:14Z</dc:date>
    <item>
      <title>problem with nagios client config</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532573#M62026</link>
      <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;I have configured a nagios client (Red Hat Enterprise Linux AS release 4 )&lt;BR /&gt;&lt;BR /&gt;when i run the command it gives me an error&lt;BR /&gt;&lt;BR /&gt;# /usr/local/nagios/libexec/check_nrpe -n -H &lt;CLIENT&gt;&lt;BR /&gt;CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.&lt;BR /&gt;&lt;BR /&gt;On remote(client) server, i get foll in messages&lt;BR /&gt;&lt;BR /&gt;Nov 11 07:53:29 nrpe[29524]: Host 172.16.128.54 is not allowed to talk to us!&lt;BR /&gt;Nov 11 07:54:45 nrpe[25475]: Host 172.16.128.54 is not allowed to talk to us!&lt;BR /&gt;Nov 11 07:55:23 nrpe[25643]: Host 172.16.128.54 is not allowed to talk to us!&lt;BR /&gt;&lt;BR /&gt;what am i missing here.....&lt;BR /&gt;&lt;BR /&gt;I have checked following things&lt;BR /&gt;&lt;BR /&gt;1. ping is successful between nagios server and nagios client&lt;BR /&gt;&lt;BR /&gt;2. [root@cleint ~]# netstat -an | grep 5666&lt;BR /&gt;tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN&lt;BR /&gt;[root@cleint ~]# netstat -lp | grep 5666&lt;BR /&gt;&lt;BR /&gt;3. [root@client ~]# telnet &lt;CLIENT ip=""&gt; 5666&lt;BR /&gt;Trying 10.18.24.35...&lt;BR /&gt;Connected to xxxxxxx (10.18.24.35).&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;Connection closed by foreign host.&lt;BR /&gt;&lt;BR /&gt;4. [root@server ~]# telnet &lt;CLIENT ip=""&gt; 5666&lt;BR /&gt;Trying 10.18.24.35...&lt;BR /&gt;Connected to xxxxxxx (10.18.24.35).&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;Connection closed by foreign host.&lt;BR /&gt;&lt;BR /&gt;5. [root@client]# iptables -L&lt;BR /&gt;Chain INPUT (policy ACCEPT)&lt;BR /&gt;target     prot opt source               destination&lt;BR /&gt;&lt;BR /&gt;Chain FORWARD (policy ACCEPT)&lt;BR /&gt;target     prot opt source               destination&lt;BR /&gt;&lt;BR /&gt;Chain OUTPUT (policy ACCEPT)&lt;BR /&gt;target     prot opt source               destination&lt;BR /&gt;&lt;BR /&gt;6. # ldd /usr/local/nagios/nrpe&lt;BR /&gt;        libssl.so.4 =&amp;gt; /lib/libssl.so.4 (0x00168000)&lt;BR /&gt;        libcrypto.so.4 =&amp;gt; /lib/libcrypto.so.4 (0x00cee000)&lt;BR /&gt;        libnsl.so.1 =&amp;gt; /lib/libnsl.so.1 (0x00c6e000)&lt;BR /&gt;        libwrap.so.0 =&amp;gt; /usr/lib/libwrap.so.0 (0x009fe000)&lt;BR /&gt;        libc.so.6 =&amp;gt; /lib/tls/libc.so.6 (0x00734000)&lt;BR /&gt;        libgssapi_krb5.so.2 =&amp;gt; /usr/lib/libgssapi_krb5.so.2 (0x00dd9000)&lt;BR /&gt;        libkrb5.so.3 =&amp;gt; /usr/lib/libkrb5.so.3 (0x00101000)&lt;BR /&gt;        libcom_err.so.2 =&amp;gt; /lib/libcom_err.so.2 (0x00cdf000)&lt;BR /&gt;        libk5crypto.so.3 =&amp;gt; /usr/lib/libk5crypto.so.3 (0x0019e000)&lt;BR /&gt;        libresolv.so.2 =&amp;gt; /lib/libresolv.so.2 (0x009c8000)&lt;BR /&gt;        libdl.so.2 =&amp;gt; /lib/libdl.so.2 (0x00861000)&lt;BR /&gt;        libz.so.1 =&amp;gt; /usr/lib/libz.so.1 (0x009b6000)&lt;BR /&gt;        /lib/ld-linux.so.2 (0x00716000)&lt;BR /&gt;&lt;BR /&gt;Also, please note, i was stuck up while configuring nagios plugins on the client. On searching a workaround i came across following post&lt;BR /&gt;&lt;BR /&gt;./configure appears to hang&lt;BR /&gt;If you find that the configure script appears to hang on this line:&lt;BR /&gt;checking for redhat spopen problem...&lt;BR /&gt;&lt;BR /&gt;Then you probably have a badly configured DNS server. This part of configure is testing for a pthread problem in Bind that is a kernel problem on some Red Hat derived versions of Linux (around kernel 2.6.9-11). It runs 10 x 100 nslookup calls to see if your kernel has this problem. If it does, then at least 1 of those calls will fail. Failure rate could be anywhere between 1% and 50%.&lt;BR /&gt;&lt;BR /&gt;To force the workaround and ignore the test, run ./configure with the --enable-redhat-pthread-workaround switch.&lt;BR /&gt;&lt;BR /&gt;You can run ./configure with --disable-redhat-pthread to ignore this test.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hence i configured nagios plugins with the option --enable-redhat-pthread-workaround&lt;BR /&gt;&lt;BR /&gt;Thanks for your help&lt;BR /&gt;&lt;BR /&gt;Sunny&lt;BR /&gt;&lt;/CLIENT&gt;&lt;/CLIENT&gt;&lt;/CLIENT&gt;</description>
      <pubDate>Thu, 12 Nov 2009 11:19:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532573#M62026</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-11-12T11:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem with nagios client config</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532574#M62027</link>
      <description>Hi Sunny,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Nov 11 07:55:23 nrpe[25643]: Host 172.16.128.54 is not allowed to talk to us!&lt;BR /&gt;&lt;BR /&gt;Have you configured to have your nrpe started through xinetd?&lt;BR /&gt;&lt;BR /&gt;Then probably you have an only_from clause in it that doesn't contain the IP of your Nagios Server.&lt;BR /&gt;You can add a list of allowed host or network IPs (CIDR notation honored). See "man xinetd.conf" and serach for "only_from" for details.&lt;BR /&gt;Don't forget to include the loopback and IP of the localhost to the list so that you can run check_nrpe checks locally for testing as well.&lt;BR /&gt;&lt;BR /&gt;After having edited /etc/xinetd.d/nrpe&lt;BR /&gt;send the xinetd a SIGHUP &lt;BR /&gt;(# pkill -1 xinetd)&lt;BR /&gt;and try check_nrpe with any of the check commands you have defined.&lt;BR /&gt;It's easiest to first start locally,&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;$ /usr/local/nagios/libexec/check_nrpe -H localhost -c check_load&lt;BR /&gt;&lt;BR /&gt;If that works run a check_nrpe check from your Nagios server, specifying hostname or IP of remote NRPE host after the -H.&lt;BR /&gt;&lt;BR /&gt;If already the local check fails or hangs&lt;BR /&gt;look what's wrong mostly in&lt;BR /&gt;&lt;BR /&gt;# grep nrpe /var/log/messages | tail&lt;BR /&gt;&lt;BR /&gt;You may also want to raise the verbosity of nrpe by setting debug=1 in nrpe.cfg&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Nov 2009 11:57:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532574#M62027</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2009-11-12T11:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem with nagios client config</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532575#M62028</link>
      <description>i started nrpe with the foll command&lt;BR /&gt;&lt;BR /&gt;/usr/local/nagios/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d&lt;BR /&gt;&lt;BR /&gt;After doing this, things were not working for me. on searching the web, and seeing the suggestions, i also configured nrpe under xinetd and restarted xinetd to no success.&lt;BR /&gt;&lt;BR /&gt;locally the check_xxx commands work&lt;BR /&gt;&lt;BR /&gt;@client&lt;BR /&gt;# /usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20&lt;BR /&gt;OK - load average: 3.01, 2.25, 0.97|load1=3.010;15.000;30.000;0; load5=2.250;10.000;25.000;0; load15=0.970;5.000;20.000;0;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;@server&lt;BR /&gt;# /usr/local/nagios/libexec/check_nrpe  -H client&lt;BR /&gt;CHECK_NRPE: Error - Could not complete SSL handshake.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# /usr/local/nagios/libexec/check_nrpe -n  -H client&lt;BR /&gt;CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server logs for error messages.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have started the debug mode</description>
      <pubDate>Fri, 13 Nov 2009 05:37:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532575#M62028</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-11-13T05:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem with nagios client config</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532576#M62029</link>
      <description>Nov 12 22:14:28  nrpe[17221]: Caught SIGHUP - restarting...&lt;BR /&gt;Nov 12 22:14:28  nrpe[17221]: Warning: Daemon is configured to accept command arguments from clients!&lt;BR /&gt;Nov 12 22:14:28  nrpe[17221]: Listening for connections on port 5666&lt;BR /&gt;Nov 12 22:14:28  nrpe[17221]: Allowing connections from: 127.0.0.1&lt;BR /&gt;Nov 12 22:15:08  nrpe[22596]: Host 172.16.128.54 is not allowed to talk to us!&lt;BR /&gt;Nov 12 22:15:47  nrpe[22598]: Host 172.16.128.54 is not allowed to talk to us!&lt;BR /&gt;Nov 12 22:15:57  nrpe[22600]: Host 172.16.128.54 is not allowed to talk to us!</description>
      <pubDate>Fri, 13 Nov 2009 05:40:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532576#M62029</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-11-13T05:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem with nagios client config</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532577#M62030</link>
      <description>This is how /etc/xinetd.d/nrpe looks like&lt;BR /&gt;&lt;BR /&gt;# default: on&lt;BR /&gt;# description: NRPE&lt;BR /&gt;service nrpe&lt;BR /&gt;{&lt;BR /&gt;flags = REUSE&lt;BR /&gt;socket_type = stream&lt;BR /&gt;wait = no&lt;BR /&gt;user = nagios&lt;BR /&gt;server = /usr/local/nagios/nrpe&lt;BR /&gt;server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd&lt;BR /&gt;log_on_failure += USERID&lt;BR /&gt;disable = no&lt;BR /&gt;only_from = 172.16.128.54,127.0.0.1,10.18.24.35&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Server IP:172.16.128.54&lt;BR /&gt;Client IP:10.18.24.35</description>
      <pubDate>Fri, 13 Nov 2009 05:42:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532577#M62030</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-11-13T05:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: problem with nagios client config</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532578#M62031</link>
      <description>Hm, the first way you had started it as a standalone daemon with the -d option.&lt;BR /&gt;&lt;BR /&gt;Are you sure you have no tcpwrapper in effect?&lt;BR /&gt;&lt;BR /&gt;If you for instance run an nmap scan against the port from your Nagios server does it show the port as "open" or do you get a "closed" (or even "filtered" (like when routing doesn't work or a firewall drops the packets)?&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;$ nmap -P0 -p 5666 munsaz|grep -A1 ^PORT&lt;BR /&gt;PORT     STATE SERVICE&lt;BR /&gt;5666/tcp open  unknown&lt;BR /&gt;&lt;BR /&gt;However, when you start it through xinetd and when your /etc/xinetd.d/nrpe is applied,&lt;BR /&gt;then I'm not sure if this line is syntacticly correct:&lt;BR /&gt;&lt;BR /&gt;nly_from = 172.16.128.54,127.0.0.1,10.18.24.35&lt;BR /&gt;&lt;BR /&gt;I have the list elements (i.e. IP addresses) always delimited by a mere whitespace character but never commas.&lt;BR /&gt;What happens when you substitute the commas by space and restart your xinetd (or signal it HUP)?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Nov 2009 12:51:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532578#M62031</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2009-11-13T12:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem with nagios client config</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532579#M62032</link>
      <description>What do i derive from this?&lt;BR /&gt;&lt;BR /&gt;[root@server ~]# nmap -P0 -p 5666 client|grep -A1 ^PORT&lt;BR /&gt;PORT     STATE SERVICE&lt;BR /&gt;5666/tcp open  unknown&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I replaced the comma in /etc/xinetd.d/nrpe with white space and restarted nrpe ... but it did not make any difference.&lt;BR /&gt;&lt;BR /&gt;Should i first kill the process &lt;BR /&gt;nagios   17221     1  0 Nov11 ?        00:00:01 /usr/local/nagios/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d&lt;BR /&gt;&lt;BR /&gt;and then restart xinetd&lt;BR /&gt;&lt;BR /&gt;Thanks for your efforts&lt;BR /&gt;&lt;BR /&gt;Sunny</description>
      <pubDate>Mon, 16 Nov 2009 11:21:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532579#M62032</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-11-16T11:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem with nagios client config</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532580#M62033</link>
      <description>&amp;gt; Should i first kill the process&lt;BR /&gt;nagios 17221 1 0 Nov11 ? 00:00:01 /usr/local/nagios/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d&lt;BR /&gt;&lt;BR /&gt;&amp;gt; and then restart xinetd&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sunny, it looks you are confusing the possible modes of operating the nrpe here.&lt;BR /&gt;If you fire it up with the "-d" option&lt;BR /&gt;(as the process is listed in your process table)&lt;BR /&gt;this means that it is run in daemon mode and doesn't require to be started through the internet super daemon (x)inetd.&lt;BR /&gt;As long as this process is running it doesn't matter whatever you configure in either /etc/inetd.conf (classic inetd) or /etc/xinetd.d/nrpe (xinetd) or how often you restart the (x)inetd.&lt;BR /&gt;Probably, since the port 5666 is already in use by your PID 17221 you just have received an error message from (x)inetd in /var/log/messages that it couldn't start the nrpe service.&lt;BR /&gt;&lt;BR /&gt;So you need to decide whether you want to run nrpe standalone in which case you most likely have to start nrpe through some init script like /etc/init.d/nrpe restart (or on RHEL "service nrpe restart"), &lt;BR /&gt;or if you want it to be started through xinetd.&lt;BR /&gt;In the latter case you need to change the option from "-d" to "-i" (stands for inetd run), and you should have a line like this in the nrpe file of your xinetd's config:&lt;BR /&gt;&lt;BR /&gt;$ grep server_args /etc/xinetd.d/nrpe &lt;BR /&gt;        server_args     = -c /etc/nagios/nrpe.cfg -i&lt;BR /&gt;&lt;BR /&gt;When you decide for the xinetd operation the advantage is that you can always make changes to your nrpe's config file /etc/nagios/nrpe.cfg (e.g. add new commands)&lt;BR /&gt;without being required to restart xinetd or care for anything other to be restarted since xinetd will restart the nrpe daemon on your behalf whenever a new connection is targeting port 5666 and at the time will reread /etc/nagios/nrpe.cfg&lt;BR /&gt;&lt;BR /&gt;However, when you go the xinetd way&lt;BR /&gt;you definetly must first kill the init started nrpe process (i.e. "kill 17221" or under RHEL "service nrpe stop").&lt;BR /&gt;Then you also should run "chkconfig nrpe off" and recheck with "chkconfig --list nrpe".&lt;BR /&gt;Only after this should you "service xinetd reload".&lt;BR /&gt;&lt;BR /&gt;If on the other hand you decide to run nrpe standalone you must make sure that you have this line in xinetd's nrpe config file:&lt;BR /&gt;&lt;BR /&gt;$ grep disable /etc/xinetd.d/nrpe &lt;BR /&gt;        disable         = yes&lt;BR /&gt;&lt;BR /&gt;and make sure to have&lt;BR /&gt;&lt;BR /&gt;# chkconfig --level 345 nrpe on&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this wasn't all too confusing.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Nov 2009 13:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532580#M62033</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2009-11-16T13:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: problem with nagios client config</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532581#M62034</link>
      <description>It was not confusing :-)&lt;BR /&gt;&lt;BR /&gt;I want to run nrpe in standalone manner as it is running in all the clients.&lt;BR /&gt;So i will disabled nrpe through xinetd.&lt;BR /&gt;&lt;BR /&gt;BUt, Please note i was doing the same thing before. SInce it wasn't working for me i configured nrpe in xinetd.&lt;BR /&gt;&lt;BR /&gt;NOw going back to standalone mode of nrpe, i m still at the same error/issue.&lt;BR /&gt;&lt;BR /&gt;PLease suggest further.&lt;BR /&gt;&lt;BR /&gt;Sunny</description>
      <pubDate>Mon, 16 Nov 2009 15:21:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532581#M62034</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-11-16T15:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: problem with nagios client config</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532582#M62035</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;Ok, now that I know that you are running nrpe in daemon mode you have to be aware that the nrpe.cfg is its main configuration file, and that unlike when run under (x)inetd, all entries therein do apply.&lt;BR /&gt;&lt;BR /&gt;So, please check what your allowed_hosts line reads.&lt;BR /&gt;(as I only run my nrpe hosts via (x)inted in my nrpe.cfg files this is commented out)&lt;BR /&gt;&lt;BR /&gt;Here's what my entry (including the explanitory comments) typically looks like:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ grep -B12 -A1 allowed_hosts /etc/nagios/nrpe.cfg &lt;BR /&gt;&lt;BR /&gt;# ALLOWED HOST ADDRESSES&lt;BR /&gt;# This is an optional comma-delimited list of IP address or hostnames &lt;BR /&gt;# that are allowed to talk to the NRPE daemon.&lt;BR /&gt;#&lt;BR /&gt;# Note: The daemon only does rudimentary checking of the client's IP&lt;BR /&gt;# address.  I would highly recommend adding entries in your /etc/hosts.allow&lt;BR /&gt;# file to allow only the specified host to connect to the port&lt;BR /&gt;# you are running this daemon on.&lt;BR /&gt;#&lt;BR /&gt;# NOTE: This option is ignored if NRPE is running under either inetd or xinetd&lt;BR /&gt;&lt;BR /&gt;#allowed_hosts=127.0.0.1,192.168.0.2&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As you can see, here (opposed to the similar thing in /etc/xinetd.d/nrpe) the allowed hosts lists is comma separated.&lt;BR /&gt;&lt;BR /&gt;Please, make sure that the list contains at least the IP addresses of localhost (127.0.0.1), the IP address which equals the nagios substituted $HOSTADDRESS$ of this nrpe host when the server runs a check on it, and last but most importantly the IP address of your Nagios server.&lt;BR /&gt;&lt;BR /&gt;After you have applied any changes to the file restart the nrpe,&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;# service nrpe restart&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;# service nrpe stop &amp;amp;&amp;amp; service nrpe start&lt;BR /&gt;&lt;BR /&gt;You may want to parse the PID to make sure that it has changed before and after the restarting.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;# pgrep -fl -P1 nrpe&lt;BR /&gt;&lt;BR /&gt;You may also have a look at the nrpe host's syslogd logfile to see if during the restart it encountered any problems.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;# grep nrpe /var/log/messages | tail -20&lt;BR /&gt;&lt;BR /&gt;Then try to run an nrpe check locally first.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;$ /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_load&lt;BR /&gt;&lt;BR /&gt;(note, your path to the plug-ins dir may vary&lt;BR /&gt;e.g.&lt;BR /&gt;/usr/lib/nagios/plugins/check_nrpe&lt;BR /&gt;or&lt;BR /&gt;/usr/lib64/nagios/plugins/check_nrpe&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Did this local check work?</description>
      <pubDate>Tue, 17 Nov 2009 11:05:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532582#M62035</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2009-11-17T11:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: problem with nagios client config</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532583#M62036</link>
      <description>I changed nrpe.cfg as said. Now it has 3 IP addresses. loopback, server and client&lt;BR /&gt;&lt;BR /&gt;[root@client etc]# grep allowed nrpe.cfg&lt;BR /&gt;# that are allowed to talk to the NRPE daemon.&lt;BR /&gt;allowed_hosts=127.0.0.1,172.16.128.54,10.18.24.35&lt;BR /&gt;&lt;BR /&gt;I sent a SIGHUP to nrpe PID. Logs from syslog&lt;BR /&gt;&lt;BR /&gt;Nov 17 05:27:27 client nrpe[4885]: Host 172.16.128.54 is not allowed to talk to us!&lt;BR /&gt;Nov 17 05:29:33 client nrpe[17221]: Caught SIGHUP - restarting...&lt;BR /&gt;Nov 17 05:29:33 client nrpe[17221]: Warning: Daemon is configured to accept command arguments from clients!&lt;BR /&gt;Nov 17 05:29:33 client nrpe[17221]: Listening for connections on port 5666&lt;BR /&gt;Nov 17 05:29:33 client nrpe[17221]: Allowing connections from: 127.0.0.1,172.16.128.54,10.18.24.35&lt;BR /&gt;Nov 17 05:29:56 client nrpe[11456]: Error: Could not complete SSL handshake. 1&lt;BR /&gt;Nov 17 05:29:58 client nrpe[11458]: Error: Could not complete SSL handshake. 1&lt;BR /&gt;&lt;BR /&gt;local check fails&lt;BR /&gt;&lt;BR /&gt;[root@client etc]# /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1&lt;BR /&gt;Connection refused by host&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Nov 2009 13:02:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532583#M62036</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-11-17T13:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem with nagios client config</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532584#M62037</link>
      <description>&amp;gt; Nov 17 05:29:33 client nrpe[17221]: Listening for connections on port 5666&lt;BR /&gt;&amp;gt; Nov 17 05:29:33 client nrpe[17221]: Allowing connections from: 127.0.0.1,172.16.128.54,10.18.24.35&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;At least it is now accepting connections from the said IP addresses.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Nov 17 05:29:33 client nrpe[17221]: Warning: Daemon is configured to accept command arguments from clients!&lt;BR /&gt;&lt;BR /&gt;This warning reminds you that you most likely have configured your nrpe to accept command args which can pose a security risk.&lt;BR /&gt;If you don't need to define nrpe commands that use arguments (and this is almost never necessary) then you should better deactivate them and set this directive to 0:&lt;BR /&gt;&lt;BR /&gt;$ grep ^dont_blame /etc/nagios/nrpe.cfg &lt;BR /&gt;dont_blame_nrpe=0&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Nov 17 05:29:56 client nrpe[11456]: Error: Could not complete SSL handshake. 1&lt;BR /&gt;&lt;BR /&gt;Now, you only have an SSL issue.&lt;BR /&gt;&lt;BR /&gt;You need to know with what options your nrpe daemon was started.&lt;BR /&gt;&lt;BR /&gt;Either look it up in the process table:&lt;BR /&gt;&lt;BR /&gt;what does a&lt;BR /&gt;&lt;BR /&gt;$ pgrep -fl nrpe&lt;BR /&gt;&lt;BR /&gt;for instance show?&lt;BR /&gt;&lt;BR /&gt;Or look into the init script that starts it.&lt;BR /&gt;&lt;BR /&gt;In mine, which was part of a Dag Wieers nagios-nrpe RPM package the start block looks like this:&lt;BR /&gt;&lt;BR /&gt;prog="nrpe"&lt;BR /&gt;desc="Nagios NRPE daemon"&lt;BR /&gt;&lt;BR /&gt;start() {&lt;BR /&gt;        echo -n $"Starting $desc ($prog): "&lt;BR /&gt;        daemon $prog -c "$CONFIG" -d&lt;BR /&gt;        RETVAL=$?&lt;BR /&gt;        echo&lt;BR /&gt;        [ $RETVAL -eq 0 ] &amp;amp;&amp;amp; touch /var/lock/subsys/$prog&lt;BR /&gt;        return $RETVAL&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So there should be a process like:&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Btw., have you installed from a prebuilt RPM or compiled NRPE yourself?&lt;BR /&gt;If the latter applies, have you compiled in SSL support?&lt;BR /&gt;&lt;BR /&gt;Provided your nrpe binary has compiled-in SSL support and was started as assumed above (i.e. without the "-n" optione) then you must use a check_nrpe client that likewise has built-in SSL support (remember the possible platform difference and thus check_nrpe binaries between remote nrpe host and your nagios server),&lt;BR /&gt;and it also must be invoked without the "-n" option or vice versa.</description>
      <pubDate>Tue, 17 Nov 2009 13:34:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532584#M62037</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2009-11-17T13:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: problem with nagios client config</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532585#M62038</link>
      <description>Yes Ralph... I had compiled NRPE myself.&lt;BR /&gt;&lt;BR /&gt;i restarted nrpe daemon with -n option and it has resolved my problem.&lt;BR /&gt;&lt;BR /&gt;I had tried all these option before also and i wonder how i missed to see this. Probably i was confused in trying so many options.&lt;BR /&gt;&lt;BR /&gt;[root@server ~]# /usr/local/nagios/libexec/check_nrpe -n  -H client&lt;BR /&gt;NRPE v2.12&lt;BR /&gt; &lt;BR /&gt;Thanks for helping me clean up the mess in my brain :-)&lt;BR /&gt;Appreciate your efforts towards good, meaningful and detailed replies.&lt;BR /&gt;&lt;BR /&gt;Sunny</description>
      <pubDate>Tue, 17 Nov 2009 14:06:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-nagios-client-config/m-p/4532585#M62038</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-11-17T14:06:38Z</dc:date>
    </item>
  </channel>
</rss>

