scripting webmail check for Exchange 2007
I'm using a Nagios server to perform active checks of an Exchange 2003 box. The check logs into a specific mailbox and looks for an email with a specific subject (the key). If it finds the key it returns an all clear. This check is working great for Exchange 2003 but fails for Exchange 2007 and 2010. I think it's just a syntax error on the website it goes to run the check but am finding few examples. Below is the command that works in Exchange 2003. Does anyone know what needs to be changed to get it to work in 2007/2010? gtc=`curl -s -k -u $user:$pass https://$1/exchange/$user/Inbox/?Cmd=contents&Page=1`
September 18th, 2012 2:36pm

How to Use Outlook Web Access Web Parts Using Outlook Web App Web Parts
Free Windows Admin Tool Kit Click here and download it now
September 18th, 2012 2:41pm

Shoot. Looks like the script doesn't work with forms-based authentication. Thx.
September 18th, 2012 3:48pm

Oddly, I wrote something that might help a few days ago. Needs cookies and javascript, though - I've no idea if curl handles those. http://www.leederbyshire.com/Blog/post/2012/09/17/How-to-log-into-OWA-2010-by-passing-credentials-in-the-URL-querystring.aspx There may be a way to do all this server-side; but since FBA is cookie-based auth, if curl doesn't do cookies, you'll have to come up with something else.Mobile OWA For Smartphone www.leederbyshire.com email a@t leederbyshire d.0.t c.0.m
Free Windows Admin Tool Kit Click here and download it now
September 19th, 2012 9:19am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics