[Nagios-users] check_http can't follow redirect properly, no cookies!

2006-08-17 Thread Hari Sekhon
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

Re: [Nagios-users] check_http can't follow redirect properly, no cookies!

2006-08-17 Thread Ton Voon
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

Re: [Nagios-users] check_http can't follow redirect properly, no cookies!

2006-08-17 Thread Hari Sekhon
Ton Voon wrote: 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

Re: [Nagios-users] check_http can't follow redirect properly, no cookies!

2006-08-17 Thread David Price
Hari Sekhon wrote: Ton Voon wrote: 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

Re: [Nagios-users] check_http can't follow redirect properly, no cookies!

2006-08-17 Thread Hari Sekhon
David Price wrote: Hari Sekhon wrote: Ton Voon wrote: 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

Re: [Nagios-users] check_http can't follow redirect properly, no cookies!

2006-08-17 Thread Steve Shipway
Check out the WebInject Nagios plugin. I have it setup to check several pages in a secure website and it handles cookies. It could save you the hassle of creating your our script. We use webinject here for precisely this reason, and it works well. It also supports MRTG format output