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
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
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
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
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
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