<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>CHECK NRPE time out after 50 seconds</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.MsoToc1, li.MsoToc1, div.MsoToc1
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:Arial;
        font-weight:bold;}
p.MsoToc2, li.MsoToc2, div.MsoToc2
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:Arial;
        font-weight:bold;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I wrote a small script to pipe the state
and output to.  If the output said “CHECK_NRPE: Socket timeout after
50 seconds”, then exit(1).  <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In the checkcommand is where you set up
the pipe. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>define checkcommand {<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>            command_name            check_nrpe_ignore<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>            command_line               /your/path/to/check_nrpe
–H $HOSTADDRESS –c nrpe_command –a (if you have args) |
/your/path/to/nrpe/ignore/script $SERVICESTATE$<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>            }<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The other option is to turn up your nrpe
timeout, but that’s not a very good solution, as it just means it will
take longer to timeout.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-Lori<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net] <b><span style='font-weight:
bold'>On Behalf Of </span></b>mohamed.azizi@belgacom.be<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, October 03, 2005
1:20 AM<br>
<b><span style='font-weight:bold'>To:</span></b>
nagios-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Nagios-users] CHECK NRPE
time out after 50 seconds</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p><font size=2 color=blue face=Verdana><span style='font-size:10.0pt;
font-family:Verdana;color:blue'>Dear colleagues ,</span></font> <o:p></o:p></p>

<p><font size=2 color=blue face=Verdana><span style='font-size:10.0pt;
font-family:Verdana;color:blue'>I am using nagios 1.2 on linux  server to
check process on both servers which runs on linux.</span></font> <br>
<font size=2 color=blue face=Verdana><span style='font-size:10.0pt;font-family:
Verdana;color:blue'>When we have lot of load  on the servers , Nagios
receives check nrpe time out after 50 seconds.</span></font> <br>
<font size=2 color=blue face=Verdana><span style='font-size:10.0pt;font-family:
Verdana;color:blue'>After 3 times , this service is put on critical status
.Normally , when  a check is on CRITICAL , Nagios launchs  a scripts
to restart the system</span></font><o:p></o:p></p>

<p><font size=2 color=blue face=Verdana><span style='font-size:10.0pt;
font-family:Verdana;color:blue'>and we have a lot of restart on each servers
due to the timeout of checknrpe.</span></font> <br>
<font size=2 color=blue face=Verdana><span style='font-size:10.0pt;font-family:
Verdana;color:blue'>How can I avoid this kind of problem.I have increased the
timer od NRPE from 30 seconds to 50 seconds but without succes.</span></font><o:p></o:p></p>

<p><font size=2 color=blue face=Verdana><span style='font-size:10.0pt;
font-family:Verdana;color:blue'>Can we configure nagios to have only warning
state for a checknrpe timeout</span></font> <o:p></o:p></p>

<p><font size=2 color=blue face=Verdana><span style='font-size:10.0pt;
font-family:Verdana;color:blue'>Thanks for your support</span></font> <o:p></o:p></p>

<p><font size=2 color=blue face=Verdana><span style='font-size:10.0pt;
font-family:Verdana;color:blue'>Mohamed</span></font> <o:p></o:p></p>

</div>

</div>

</body>

</html>