<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On 2 Sep 2005, at 16:08, <A href="mailto:srunschke@abit.de">srunschke@abit.de</A> wrote:</DIV><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">If it is of any help, I would like to offer to escalate this issue</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">to the RedHat Support. Since we have a dozen support subscribtions</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">for RH Enterprise, I can easily create a ticket and let them solve</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">it for us ;-)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I just need some technical description of the problem so that</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">someone not into Nagios would be able to understand it. I'm not</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">sure I could word it properly myself.</DIV></BLOCKQUOTE></DIV><FONT class="Apple-style-span" color="#0000DD"><DIV><BR class="khtml-block-placeholder"></DIV>Sascha, </FONT><BR><BR><DIV>I would like to take you up on this offer.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I've managed to reduce the test case down to the included tar file, so there are no nagios plugins involved. Instructions are:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>gunzip and untar and cd</DIV><DIV><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>make</DIV><DIV>./run_tests 10</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>On my RHEL4 server (Red Hat Enterprise Linux version 4 Update 1, 2.6.9-11.EL) , this will fail anywhere between 40% to 70% of the time. Running the same on MacOS10.4.1 and Debian 3.1 gives me 100% success.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>In child_test.c, you can amend the command that is executed. These were the results I got (after 100 runs):</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> - /bin/date 100%</DIV><DIV> - /bin/cat /etc/hosts 100%</DIV><DIV> - /usr/bin/dig redhat.com 69%</DIV><DIV> - /bin/sleep 1 100%</DIV><DIV> - /usr/bin/nslookup redhat.com 90% (after 100 runs), 40% (after 10 runs)</DIV><DIV> - /bin/ping -c 1 localhost 100%</DIV><DIV> - /bin/ping -c 1 192.168.10.32 100%</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So it looks like only DNS resolution stuff is causing problems. Using Peter's trick of waiting for childtermd to be set by the SIGCHLD handler (commented in child_test.c) changes it to 100% success at all times. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Definitely looks like a Redhat problem. Can you escalate to them. I think a technical summary could be: "wait() sometimes fails if child executes nslookup/dig command".</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm happy for you to contact me if you need more information.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Ton</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><A href="http://www.altinity.com">http://www.altinity.com</A></DIV><DIV>T: +44 (0)870 787 9243</DIV><DIV>F: +44 (0)845 280 1725</DIV><DIV>Skype: tonvoon</DIV><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN><DIV>The contents of this email and any files transmitted with it are</DIV><DIV>confidential and intended solely for the use of the individuals to whom it</DIV><DIV>is addressed. If you are not the intended recipient or have received this</DIV><DIV>e-mail in error please notify the sender and destroy this e-mail</DIV><DIV>immediately. Any unauthorised copying, disclosure or distribution of the</DIV><DIV>material in this e-mail is strictly prohibited.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN> </DIV></DIV></BODY></HTML>