<div>Check iptables</div>
<div>ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:nrpe <br><br><br>Check netstat<br>----------<br>[root@linux1 libexec]# netstat -at | grep nrpe<br>tcp 0 0 *:nrpe *:* LISTEN
<span></span> </div>
<div><br><br> </div>
<div><span class="gmail_quote">On 1/10/08, <b class="gmail_sendername">Mad Unix</b> <<a href="mailto:madunix@gmail.com">madunix@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d">try to reconfugure the xinetd service, </span></div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d">my cat /etc/xinetd.d/<span name="st">nrpe</span></span></div><span class="q">
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span></p>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"># default: on</span></div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d"># description: <span name="st">NRPE</span> (Nagios Remote Plugin Executor)</span></div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d">service <span name="st">nrpe</span></span></div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"><span name="st"></span></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d">{</span></div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> flags = REUSE</span></div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> socket_type = stream </span></div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> port = 5666 </span></div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> wait = no</span></div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> user = nagios</span></div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> group = nagios</span></div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> server = /usr/local/nagios/bin/<span name="st">nrpe</span></span></div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"><span name="st"></span></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> server_args = -c /usr/local/nagios/etc/<span name="st"> nrpe</span>.cfg --inetd</span>
</div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> log_on_failure += USERID</span></div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> disable = no</span></div></span>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> only_from = <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://127.0.0.1/" target="_blank">
x.x.x.x</a> </span></div>
<div><span style="FONT-SIZE: 11pt; COLOR: #1f497d"></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d">}</span></div>
<p> </p>
<div> </div>
<div>Madunix<br><br> </div>
<div><span class="e" id="q_117625f9936a57d5_3">
<div><span class="gmail_quote">On 1/10/08, <b class="gmail_sendername">Justin Hennessy</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:jhennessy@compit.com.au" target="_blank">jhennessy@compit.com.au
</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi All,<br><br>I am having an issue with the NRPE agent on linux servers (happens on<br>all flavours I have tried).
<br><br>I am using TCP Wrappers to implement it. When the server is rebooted the<br>port for NRPE (5666) isn't available until I manually restart it.<br><br>Here is the config I am using for the nrpe xinetd file:<br><br>
# default: on<br># description: NRPE (Nagios Remote Plugin Executor)<br>service nrpe<br>{<br> flags = REUSE<br> socket_type = stream<br> port = 5666<br> wait = no
<br> user = nagios<br> group = nagios<br> server = /usr/local/nagios/bin/nrpe<br> server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd<br> log_on_failure += USERID
<br> disable = no<br> only_from = xxx.xxx.xxx.xxx<br>}<br><br><br>Any ideas?<br><br>Thanks in advance.<br><br>Justin<br><br><br>-------------------------------------------------------------------------
<br>Check out the new SourceForge.net Marketplace.<br>It's the best place to buy or sell services for<br>just about anything Open Source.<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace" target="_blank">
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace</a><br>_______________________________________________<br>Nagios-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">
Nagios-users@lists.sourceforge.net </a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br><br clear="all"><br></span>
</div><span class="sg">-- <br>madunix </span></blockquote></div><br><br clear="all"><br>-- <br>madunix