check_http can't follow redirect properly, no cookies!

Ton Voon ton.voon at altinity.com
Thu Aug 17 16:13:34 CEST 2006


No cookies in check_http, I'm afraid. It would be a nightmare enhance  
it to hold sessions.

If you are good with perl, look at WWW::Mechanize. This allows you to  
store cookies and interact with a website as if you were a browser.  
We use this to login to monitor a betting site and retrieve funds  
information.

On 17 Aug 2006, at 12:18, Hari Sekhon wrote:

> Hi,
>    I've got check_http doing a login which works fine and I'm using  
> the
> --onredirect=follow to make sure I can fetch the secured page it's
> redirected to.
>
> The problem is that when the page is fetched it is fetched without the
> previously supplied credentials and therefore I get a login page  
> instead
> of the page within the secure area.
>
> I really really need to get the page in the secure area. Does anybody
> know how to make it store and use the credentials for the redirect.  
> It's
> obviously not using it's cookie and I've looked through the --help but
> it makes not mention of cookies...
>

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060817/e0cfc522/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list