[Nagiosplug-help] Using check_http with file to post

Ton Voon ton.voon at opsera.com
Thu Apr 29 13:32:02 CEST 2010


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
   * http://search.cpan.org/dist/Nagios-Plugin-WWW-Mechanize/

Ton

On 29 Apr 2010, at 10:44, alexandre fedi wrote:

> Hi Jens,
>
> I don't know if this wiil answer your question, but for check of a  
> webservice, I found this program that was working with Nagios  
> (successfully tested) :
>
> http://www.webinject.org/plugin.html
>
> Good luck.
>
> Regards,
>
> Alexandre Fedi
>
>
>
> From: jens.hyllegaard at softdesign.dk
> To: nagiosplug-help at lists.sourceforge.net
> Date: Thu, 29 Apr 2010 11:20:17 +0200
> Subject: [Nagiosplug-help] Using check_http with file to post
>
> Hi.
>
> 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.
>
> Does anybody have an idea on how to do this?
>
> Regards
>
> Jens

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20100429/62b5841a/attachment.html>


More information about the Help mailing list