<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Oct 12, 2010, at 12:28 AM, <a href="mailto:diego.roccia@gmail.com">diego.roccia@gmail.com</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>If you run nrpe via xinetd, the standalone service has to be stoppedm if it's not, xinetd can't bind the port.<br>Regarding the plugin location, you can change it in nrpe.cfg<br><br>Sent from my BlackBerry® wireless device<br><br></div></blockquote></div><br><div>I followed this suggestion, shut down xinetd, ran nrpe as a stand-alone, also added the nagios server in hosts.allow, and got good results (although no host in control panel)</div><div><br></div><div><br></div><div><b>able to run remote service checks:</b></div><div><b><br></b></div><div><b><div><span class="Apple-style-span" style="font-weight: normal;">bash-3.1# !1021</span></div><div><span class="Apple-style-span" style="font-weight: normal;">/usr/local/nagios/libexec/check_nrpe -H 10.0.100.139 -c check_users</span></div><div><span class="Apple-style-span" style="font-weight: normal;">USERS OK - 1 users currently logged in |users=1;5;10;0</span></div><div><span class="Apple-style-span" style="font-weight: normal;">bash-3.1# !1013</span></div><div><span class="Apple-style-span" style="font-weight: normal;">/usr/local/nagios/libexec/check_nrpe -H 10.0.100.138 -c check_users</span></div><div><span class="Apple-style-span" style="font-weight: normal;">USERS OK - 1 users currently logged in |users=1;5;10;0</span></div><div><span class="Apple-style-span" style="font-weight: normal;"><br></span></div><div>able to telnet to 5666:</div><div><br></div><div><div><span class="Apple-style-span" style="font-weight: normal;">bash-3.1# telnet 10.0.100.138 5666</span></div><div><span class="Apple-style-span" style="font-weight: normal;">Trying 10.0.100.138...</span></div><div><span class="Apple-style-span" style="font-weight: normal;">Connected to 10.0.100.138 (10.0.100.138).</span></div><div><span class="Apple-style-span" style="font-weight: normal;">Escape character is '^]'.</span></div></div><div><br></div><div>checked the host.cfg file for this server and another server ( that is showing) to compare.. everything looks correct:</div><div><br></div><div>{not showing}</div><div><div><span class="Apple-style-span" style="font-weight: normal;">define host{</span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-weight: normal;">  </span></span><span class="Apple-style-span" style="font-weight: normal;">use linux-server ; Inherit default values from a template</span></div><div><span class="Apple-style-span" style="font-weight: normal;">        host_name web02 ; The name we're giving to this server</span></div><div><span class="Apple-style-span" style="font-weight: normal;">        alias web02 ; A longer name for the server</span></div><div><span class="Apple-style-span" style="font-weight: normal;">        address 10.0.100.139 ; IP address of the server</span></div><div><span class="Apple-style-span" style="font-weight: normal;">}</span></div><div><span class="Apple-style-span" style="font-weight: normal;"><br></span></div><div><span class="Apple-style-span" style="font-weight: normal;">define service{</span></div><div><span class="Apple-style-span" style="font-weight: normal;">        use generic-service</span></div><div><span class="Apple-style-span" style="font-weight: normal;">        host_name                       web02</span></div><div><span class="Apple-style-span" style="font-weight: normal;">        service_description             Home Page</span></div><div><span class="Apple-style-span" style="font-weight: normal;">        check_command                   check_http!ww2</span></div><div><span class="Apple-style-span" style="font-weight: normal;">}</span></div></div><div><span class="Apple-style-span" style="font-weight: normal;"><br></span></div><div>{showing}</div><div><br></div><div><div><span class="Apple-style-span" style="font-weight: normal;">define host{</span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-weight: normal;">    </span></span><span class="Apple-style-span" style="font-weight: normal;">use linux-server ; Inherit default values from a template</span></div><div><span class="Apple-style-span" style="font-weight: normal;">        host_name web03 ; The name we're giving to this server</span></div><div><span class="Apple-style-span" style="font-weight: normal;">        alias web03 ; A longer name for the server</span></div><div><span class="Apple-style-span" style="font-weight: normal;">        address 10.0.100.144 ; IP address of the server</span></div><div><span class="Apple-style-span" style="font-weight: normal;">}</span></div><div><span class="Apple-style-span" style="font-weight: normal;">define service{</span></div><div><span class="Apple-style-span" style="font-weight: normal;">        use generic-service</span></div><div><span class="Apple-style-span" style="font-weight: normal;">        host_name                       web03</span></div><div><span class="Apple-style-span" style="font-weight: normal;">        service_description             Home Page</span></div><div><span class="Apple-style-span" style="font-weight: normal;">        check_command                   check_http!ww2</span></div><div><span class="Apple-style-span" style="font-weight: normal;">}</span></div><div><br></div></div><div>tail /var/log/messages: (this part looks good)</div><div><br></div><div><div><span class="Apple-style-span" style="font-weight: normal;">Oct 12 15:50:33 sacdcweb02 nrpe[15883]: Starting up daemon</span></div><div><span class="Apple-style-span" style="font-weight: normal;">Oct 12 15:50:33 sacdcweb02 nrpe[15883]: Listening for connections on port 5666 </span></div><div><span class="Apple-style-span" style="font-weight: normal;">Oct 12 15:50:33 sacdcweb02 nrpe[15883]: Allowing connections from: 127.0.0.1,10.0.100.130</span></div></div><div><span class="Apple-style-span" style="font-weight: normal;"><br></span></div><div>but then I see this also in the logs</div><div><br></div></b></div><div>nrpe[11817]: Unable to open config file '/usr/local/nagios/etc/nrpe.cfg' for reading</div><div><br></div><div>when I do a "locate nrpe.cfg", its only found in one location:  /etc/nagios/nrpe.cfg   --- looking at that file below- looks normal to me, and where is the application pulling this other nrpe.cfg location from, and how to change it? ((Or does that really not matter in this issue - seems like it would - and I need to focus elsewhere>?))</div><div><br></div><div><div><br></div><div><br></div><div>log_facility=daemon</div><div><br></div><div><br></div><div>pid_file=/var/run/nrpe/nrpe.pid</div><div><br></div><div><br></div><div>server_port=5666</div><div><br></div><div><br></div><div>#server_address=127.0.0.1</div><div><br></div><div> </div></div><div><div>nrpe_user=nagios</div><div><br></div><div>nrpe_group=nagios  </div><div><br></div><div><br></div><div>allowed_hosts=127.0.0.1,10.0.100.130</div><div><br></div><div>dont_blame_nrpe=0</div></div><div><br></div><div><div># command_prefix=/usr/bin/sudo</div><div><br></div><div>  </div><div>debug=0 --> 1</div><div><br></div><div><br></div><div>command_timeout=60</div><div><br></div></div><div>connection_timeout=300</div><div><br></div><div><div><br></div><div>#allow_weak_random_seed=1</div><div> </div><div>#include=<somefile.cfg></div><div><br></div><div><br></div><div>include_dir=/etc/nrpe.d/</div></div><div><br></div></body></html>