<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0mm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-mailStijl17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></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=NL link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello list members,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>We have been using the Nagios plugin ‘check_http’ for some years now without any problems but yesterday I found something strange with one of our checks involving a page that contains a PDF document. Sometimes this check reports an error and at other times the result is OK. The page is static and some content is delivered in all cases but the text I’m looking for with the ‘-s’ option is not always found. So I did some tests, including the ‘-v’ option and saving the output to a file. If I run this check 4 times I get 4 different output files. If I retrieve the same page with ‘wget’, the output is identical all the time.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>We run two Nagios hosts (prod on RHEL6 with check_http v1.4.15 and test on RHEL5 with v1.104) and both behave the same.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>As a further test, I placed the PDF file on my test Nagios host and ran the check again. If I run ‘check_http’ against the local server, the output file differs from the original PDF file, but the output is consistent during all test. If I run the check from my other Nagios server the output file differs. I also tested this the other way around and again, output is consistent if the page is retrieved from the local server. Is doesn’t matter whether I use hostname, FQDN or IP-address.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Next I ran a test against an external PDF document:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>check_http -H www.netways.de -u '/uploads/media/Ton_Voon_An_Active_Check_on_the_Status_of_the_Nagios_Plugins01_02.pdf' -v > test.txt<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I get a different ‘test.txt’ on every run.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Has anybody else experienced this problem? Is there a way to get around this problem and retrieve the complete PDF document in all cases using ‘check_http’?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Many thanks in advance for all help.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Kind regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Gerrit van Ham<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>