<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">If you want more flexibility in your interaction with the web page and you know a bit of perl, you can create your own plugin using <div> * <a href="http://search.cpan.org/dist/Nagios-Plugin-WWW-Mechanize/">http://search.cpan.org/dist/Nagios-Plugin-WWW-Mechanize/</a><div><br></div><div>Ton</div><div><br><div><div>On 29 Apr 2010, at 10:44, alexandre fedi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">Hi Jens,<br><br>I don't know if this wiil answer your question, but for check of a webservice<span id="result_box" class="medium_text"><span title="je ne sais pas si cela répondra à votre question, mais pour tester des Webservices, j'avais trouvé ce programme qui avait bien fonctionné." onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'" style="background-color: rgb(255, 255, 255); ">, I found this program that was working with Nagios (successfully tested) :<br><br><a href="http://www.webinject.org/plugin.html">http://www.webinject.org/plugin.html</a><br><br>Good luck.<br><br>Regards,<br><br>Alexandre Fedi<br><br><br></span></span><br><hr id="stopSpelling">From:<span class="Apple-converted-space"> </span><a href="mailto:jens.hyllegaard@softdesign.dk">jens.hyllegaard@softdesign.dk</a><br>To:<span class="Apple-converted-space"> </span><a href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</a><br>Date: Thu, 29 Apr 2010 11:20:17 +0200<br>Subject: [Nagiosplug-help] Using check_http with file to post<br><br><div class="ecxSection1"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">Hi.</span></div><p class="ecxMsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US"> </span></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">I want to do a check of a webservice we have. I need to post a xml file and analyze the result. I have managed to set all the parameters correctly, but I’m having trouble with posting the xml part. The biggest problem is that I need to have either newline or CR in the data that I send. And Check_Http only allows me to use a string, and it does not parse it, so \n won’t work. I have thought about piping the data into the command, but have not managed to get that to work either.</span></div><p class="ecxMsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US"> </span></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US">Does anybody have an idea on how to do this?</span></div><div style="margin-top: 0px; margin-right: 0cm; margin-bottom: 5pt; margin-left: 0cm; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif; color: black; "> </span><br class="webkit-block-placeholder"></div><p class="ecxMsoNormal" style="margin-top: 0px; margin-right: 0cm; margin-bottom: 5pt; margin-left: 0cm; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="font-size: 10pt; font-family: Arial, sans-serif; color: black; ">Regards</span></p><div style="margin-top: 0px; margin-right: 0cm; margin-bottom: 5pt; margin-left: 0cm; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="font-size: 10pt; font-family: Arial, sans-serif; color: black; "> </span><br class="webkit-block-placeholder"></div><p class="ecxMsoNormal" style="margin-top: 0px; margin-right: 0cm; margin-bottom: 5pt; margin-left: 0cm; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="font-size: 10pt; font-family: Arial, sans-serif; color: black; ">Jens</span><span style="font-size: 10pt; font-family: Arial, sans-serif; color: red; "></span></p></div></div></span></blockquote></div></div></div><br></body></html>